dev@glassfish.java.net

[gf-dev] Re: JSP-39: EL expressions of primitive types causes NPE

From: Eirik Bjørsnøs <eirbjo_at_gmail.com>
Date: Thu, 22 May 2014 15:27:00 +0200

It's been some months since JSP-39 was fixed, and I've seen some fixes
getting applied after that.

Could we please get a release of JSP 2.3.3 to Maven Central? I know a lot
of people are waiting for this to be fixed.

Thanks,
Eirik.


On Tue, Feb 25, 2014 at 12:00 AM, Kin-man Chung <kinman.chung_at_oracle.com>wrote:

> Thanks for reporting the bug and providing a patch for it. I have applied
> the patch to the trunk of jsp.java.net source (revision 1462). A version
> of the maven artifacts for the fix will be published in maven central and
> be integrated into glassfish soon.
>
>
> On 2/21/14, 8:52 AM, Eirik Bjørsnøs wrote:
>
>> Hi!
>>
>> I've just filed: https://java.net/jira/browse/JSP-39
>>
>> This issue causes JSPs like this to fail with a NPE:
>>
>> <c:if test="${doesNotExist}">
>> Nope
>> </c:if>
>>
>> The bug is caused by Glassfish's Jasper not taking into account the
>> type coercion change introduced in EL 3.0 for non-primitive types
>> (now they're returned as null instead of false).
>>
>> This is a showstopper for us upgrading to Jetty 9.1.x.
>>
>> The "same" bug is already fixed in Tomcat 8 with a minor change. I've
>> attached a patch for Glassfish JSP which fixes the NPE issue.
>>
>> Any chance someone from the Glassfish team can take a look at this?
>>
>> Thanks,
>> Eirik.
>>
>
>