[ 
https://issues.apache.org/jira/browse/TAP5-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061715#comment-13061715
 ] 

Hudson commented on TAP5-1227:
------------------------------

Integrated in tapestry-trunk-freestyle #414 (See 
[https://builds.apache.org/job/tapestry-trunk-freestyle/414/])
    TAP5-1227: Binding a parameter whose type is primitive to null results in a 
difficult to understand NullPointerException
TAP5-1227: Add PlasticUtils.isPrimitive()

hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1144110
Files : 
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/components/ShowInt.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/NullBindingToPrimitive.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/NullBindingToPrimitive.tml
* 
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/transform/ParameterWorker.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ParameterTests.groovy

hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1144109
Files : 
* 
/tapestry/tapestry5/trunk/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy
* 
/tapestry/tapestry5/trunk/plastic/src/main/java/org/apache/tapestry5/plastic/PlasticUtils.java


> Binding a parameter whose type is primitive to null results in a difficult to 
> understand NullPointerException
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1227
>                 URL: https://issues.apache.org/jira/browse/TAP5-1227
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.3
>
>
> NPE is appropriate, but a blank message is not.  The message should be 
> something like:
> "Parameter com.example.components.Layout.section is primitive type int and 
> may not be bound to null. You should convert this parameter to type 
> java.lang.Integer."
> Possibly we could get some similar effect by automatically forcing allowNull 
> to false for  primitive type parameters.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to