My favorites | Sign in
GWT
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 387: Cookies documentation lacking
3 people starred this issue and may be notified of changes. Back to list
 
Reported by moor...@gmail.com, Nov 10, 2006
GWT Release:

1.2.11 rc1

Detailed description:
It'd sure be nice if the documentation for
com.google.gwt.user.client.Cookies said what would happen if the cookie
doesn't exist.

Workaround if you have one:
I looked at the source, and apparently it returns null.

Links to the relevant GWT Developer Forum posts:

Nov 15, 2006
#1 gwt.team...@gmail.com
(No comment was entered for this change.)
Owner: gwt.team.bruce
Labels: -Type-Defect Type-Enhancement
Feb 1, 2007
#2 gwt.team...@gmail.com
(No comment was entered for this change.)
Labels: Category-Other
Apr 20, 2007
#3 gwt.team...@gmail.com
Emily, I suppose you're addressing this at the same time as your other cookie
enhancements.
Owner: gwt.team.ecc
Cc: gwt.team.bruce
Apr 20, 2007
#4 gwt.team...@gmail.com
(No comment was entered for this change.)
Labels: Milestone-1_4_RC
Apr 27, 2007
#5 gwt.team...@gmail.com
This has already been committed as r979. Joel, will you please sanity-check this very
simple doc clarification? Here's the new doc for Cookies.getCookie():

  /**
   * Gets the cookie associated with the given name.
   * 
   * @param name the name of the cookie to be retrieved
   * @return the cookie's value, or <code>null</code> if the cookie doesn't exist
   */
  public static String getCookie(String name)

I merely added the ", or ..." clause. I'm 99.999% sure that's true.


Status: ReviewPending
Labels: ReviewBy-jgw
Apr 27, 2007
#6 gwt.team...@gmail.com
Forgot to actually add jgw.
Owner: gwt.team.bruce
Cc: -gwt.team.bruce gwt.team.ecc gwt.team.jgw
May 24, 2007
#7 gwt.team...@gmail.com
Verified that the documentation was added.

ensureCookies() always creates a new HashMap if it decides to load cookies from the
browser state.  The loadCookies() native function doesn't spontaneously create random
entries in the map.
Status: FixedNotReleased
May 29, 2007
#8 gwt.team...@gmail.com
Changing to Fixed status with GWT 1.4 RC release
Status: Fixed
Apr 25, 2008
#9 sumitcha...@google.com
 
Owner: bruce
Apr 29, 2008
#10 jgw+personal@google.com
 
Cc: -gwt.team.jgw j...@google.com
May 2, 2008
#11 sumitcha...@google.com
 
Cc: -gwt.team.ecc e...@google.com
Feb 8, 2011
#13 rjrjr@google.com
(No comment was entered for this change.)
Labels: -Milestone-1_4_RC Milestone-1_4-RC
Sign in to add a comment

Powered by Google Project Hosting