Bug 7544 - EL, based on the current spec, is improperly converting primitive integer values to Strings
Summary: EL, based on the current spec, is improperly converting primitive integer val...
Status: RESOLVED INVALID
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-27 22:09 UTC by Ryan Lubke
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Lubke 2002-03-27 22:09:30 UTC
Section A.7.1 of the PD spec, states the following rules to coerce A to a String:

  - If A is a String: return A
  - otherwise, if A is null: return "".
  - otherwise, if A.toString throws exception, error
  - otherwise, return A.toString.

Now if I pass, say, ${1} which, from what I understand, will be interpreted
as a primitive integer, the action should throw an Exception a it's not possible
to call toString() in a primitive.