[EL_SPEC-14] null string value is converted to "" Created: 04/Jul/13  Updated: 07/Oct/13  Resolved: 07/Oct/13

Status: Resolved
Project: el-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: jasonzhang2002gmailcom Assignee: Unassigned
Resolution: Works as designed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

glassfish 4.0, el 3.0


Tags: empty, jsf2_2, string

 Description   

null string from JSF is converted to empty string.
I traced to code com.sun.el.lang.ELSupport 350. Should this decision be left to EL client?



 Comments   
Comment by Kim Haase [ 07/Oct/13 ]

I believe this bug corresponds to https://java.net/jira/browse/JAVAEETUTORIAL-249. The zip file attached to that issue reproduces the problem on EE 7. I will attach another zip file to that issue to show that the problem is new in EL 3.0, because when the test example is run in an EE 6 environment, it runs correctly.

Comment by kchung [ 07/Oct/13 ]

EL 3.0 spec (1.23.2 Coerce A to String) clearly says

If A is null: return ""

So this is behaving according to the spec.

Generated at Sun Feb 14 23:39:26 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.