You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2005/12/06 23:20:08 UTC

DO NOT REPLY [Bug 36149] - map keys are not consistently coerced

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36149>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36149


pierre.delisle@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From pierre.delisle@sun.com  2005-12-06 23:20 -------
Nick,

With the following statement:

  <c:set target="${franchiseShortName}" property="${330707}" value="SLP" />

The value ${330707} evaluates to an integer. However, the target
type for 'property' is a String. So the integer is converted to 
a String transparently.

This is why to retrieve the value, one must use the following
expression:

  franchiseShortName['330707']

Now, if you try

  franchiseShortName[330707]

this does not work because 330707 evaluates to an integer
that is boxed into an Integer, which does not result
as the key for any entry into the map.

And if you try

  franchiseShortName.330707

This fails because 330707 is not a valid Java identifier.

Hope this helps,

    -- Pierre

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org