Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.4
Description
Stets to reproduce:
Class with
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 { } }
Template with
${testData.testString}
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
${testData.getTestString()}
Attachments
Issue Links
- is related to
-
TAP5-2032 GenericsUtils does not handle generics properly when extracting the actual type
- Closed