tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2449) PropertyConduitSource can't see Java 8 default methods
Date Wed, 13 Jul 2016 14:57:20 GMT

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

Hudson commented on TAP5-2449:
------------------------------

FAILURE: Integrated in tapestry-trunk-freestyle #1582 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/1582/])
TAP5-2449: PropertyConduitSource can't see Java 8 default methods (jochen.kemnade: rev 91af872e168718b6a719154674fb802b85d7ba20)
* beanmodel/src/main/java/org/apache/tapestry5/ioc/internal/services/PropertyAccessImpl.java
* tapestry-ioc/src/test/java/com/example/TestInterface.java
* tapestry-ioc/src/test/groovy/ioc/specs/PropertyAccessImplSpec.groovy


> PropertyConduitSource can't see Java 8 default methods
> ------------------------------------------------------
>
>                 Key: TAP5-2449
>                 URL: https://issues.apache.org/jira/browse/TAP5-2449
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: quurks
>              Labels: desired_for_5.5
>             Fix For: 5.5.0
>
>
> *Stets to reproduce:*
> Class with 
> {code}
> public class TestDefaultMethod {
>     @Property private TestData testData = new TestData();
>     public static interface TestInterface {
>         public default String getTestString() {
>             return "Alpha";
>         }
>     }
>     public static class TestData implements TestInterface {
>     }
> }
> {code}
> Template with 
> {code}
> ${testData.testString}
> {code}
> *Expected*:
> "Alpha" is put in the website
> *Actual*:
>    Exception type: org.apache.tapestry5.ioc.util.UnknownValueException
>           Message: Class com.example.pages.TestDefaultMethod$TestData does not contain
a property (or public field) named 'testString'.
>   availableValues: AvailableValues\[Properties (and public fields): class]
> It works with
> {code}
> ${testData.getTestString()}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message