TypeCoercer should "promote" coercions to primitive types into coercions to the 
corresponding wrapper type
----------------------------------------------------------------------------------------------------------

                 Key: TAP5-1383
                 URL: https://issues.apache.org/jira/browse/TAP5-1383
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-ioc
    Affects Versions: 5.2.4
            Reporter: Howard M. Lewis Ship


Got bit by this.

Adding a coercion from Foo.class to boolean.class is accepted, but then passing 
a Foo as the test parameter of an If causes an implicit type coercion to 
Boolean (the wrapper class). The Foo-->boolean was ignored in favor of 
Object-->String, String-->Boolean.

TypeCoercer should either forbid coercions to primitive types, or record the 
coercion as coercion to the wrapper type.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to