You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jerome Alberto (Created) (JIRA)" <ji...@apache.org> on 2012/03/21 09:29:42 UTC

[jira] [Created] (TAP5-1881) TypeCoercion from Number to Boolean fails every 256 times

TypeCoercion from Number to Boolean fails every 256 times
---------------------------------------------------------

                 Key: TAP5-1881
                 URL: https://issues.apache.org/jira/browse/TAP5-1881
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-ioc
    Affects Versions: 5.3.2
            Reporter: Jerome Alberto


At the moment the coercion from Number to Boolean is implemented as

public Boolean coerce(Number input)
{
    return input.byteValue() != 0;
}

It should be

public Boolean coerce(Number input)
{
    return input.longValue() != 0;
}

All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1881) TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256

Posted by "Howard M. Lewis Ship (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-1881:
---------------------------------------

    Priority: Critical  (was: Major)
     Summary: TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256  (was: TypeCoercion from Number to Boolean fails every 256 times)
    
> TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>              Labels: tapestry5
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1881) TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256

Posted by "Howard M. Lewis Ship (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-1881:
---------------------------------------

    Priority: Critical  (was: Major)
     Summary: TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256  (was: TypeCoercion from Number to Boolean fails every 256 times)
    
> TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>              Labels: tapestry5
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1881) TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235038#comment-13235038 ] 

Hudson commented on TAP5-1881:
------------------------------

Integrated in tapestry-5.3-freestyle #16 (See [https://builds.apache.org/job/tapestry-5.3-freestyle/16/])
    TAP5-1881: TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256 (Revision 1303548)

     Result = SUCCESS
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1303548
Files : 
* /tapestry/tapestry5/branches/5.3/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java
* /tapestry/tapestry5/branches/5.3/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/services/TypeCoercerImplTest.java

                
> TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>              Labels: tapestry5
>             Fix For: 5.3.3, 5.4
>
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (TAP5-1881) TypeCoercion from Number to Boolean fails every 256 times

Posted by "Howard M. Lewis Ship (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-1881:
------------------------------------------

    Assignee: Howard M. Lewis Ship
    
> TypeCoercion from Number to Boolean fails every 256 times
> ---------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>              Labels: tapestry5
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (TAP5-1881) TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256

Posted by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1881.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.4
                   5.3.3

Nice catch!
                
> TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>              Labels: tapestry5
>             Fix For: 5.3.3, 5.4
>
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (TAP5-1881) TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256

Posted by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1881.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.4
                   5.3.3

Nice catch!
                
> TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>              Labels: tapestry5
>             Fix For: 5.3.3, 5.4
>
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1881) TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235023#comment-13235023 ] 

Hudson commented on TAP5-1881:
------------------------------

Integrated in tapestry-trunk-freestyle #692 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/692/])
    TAP5-1881: TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256 (Revision 1303549)

     Result = SUCCESS
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1303549
Files : 
* /tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java
* /tapestry/tapestry5/trunk/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/services/TypeCoercerImplTest.java

                
> TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>              Labels: tapestry5
>             Fix For: 5.3.3, 5.4
>
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1881) TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235023#comment-13235023 ] 

Hudson commented on TAP5-1881:
------------------------------

Integrated in tapestry-trunk-freestyle #692 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/692/])
    TAP5-1881: TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256 (Revision 1303549)

     Result = SUCCESS
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1303549
Files : 
* /tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java
* /tapestry/tapestry5/trunk/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/services/TypeCoercerImplTest.java

                
> TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>              Labels: tapestry5
>             Fix For: 5.3.3, 5.4
>
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (TAP5-1881) TypeCoercion from Number to Boolean fails every 256 times

Posted by "Howard M. Lewis Ship (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-1881:
------------------------------------------

    Assignee: Howard M. Lewis Ship
    
> TypeCoercion from Number to Boolean fails every 256 times
> ---------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>              Labels: tapestry5
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1881) TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235038#comment-13235038 ] 

Hudson commented on TAP5-1881:
------------------------------

Integrated in tapestry-5.3-freestyle #16 (See [https://builds.apache.org/job/tapestry-5.3-freestyle/16/])
    TAP5-1881: TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256 (Revision 1303548)

     Result = SUCCESS
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1303548
Files : 
* /tapestry/tapestry5/branches/5.3/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java
* /tapestry/tapestry5/branches/5.3/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/services/TypeCoercerImplTest.java

                
> TypeCoercion from Number to Boolean returns false for any number that is an even multiple of 256
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1881
>                 URL: https://issues.apache.org/jira/browse/TAP5-1881
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3.2
>            Reporter: Jerome Alberto
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>              Labels: tapestry5
>             Fix For: 5.3.3, 5.4
>
>
> At the moment the coercion from Number to Boolean is implemented as
> public Boolean coerce(Number input)
> {
>     return input.byteValue() != 0;
> }
> It should be
> public Boolean coerce(Number input)
> {
>     return input.longValue() != 0;
> }
> All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira