You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2015/02/11 16:50:12 UTC

[jira] [Commented] (TAP5-2449) PropertyConduitSource cant see Java 8 default methods

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

Jochen Kemnade commented on TAP5-2449:
--------------------------------------

The problem is actually {{org.apache.tapestry5.ioc.internal.services.PropertyAccessImpl.buildAdapter}} in the {{beanmodel}} project. I can make it create a property adapter for {{testString}} by just removing the condition from the {{addPropertiesFromExtendedInterfaces}} call but I'm not entirely sure if that's the correct fix.

> PropertyConduitSource cant 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
>
> *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)