You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2014/04/01 19:05:26 UTC
[jira] [Closed] (TAP5-1759) Property expressions: exception when
calling static method
[ https://issues.apache.org/jira/browse/TAP5-1759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1759.
--------------------------------------
Resolution: Invalid
Despite the fact that static method invocation did work in 5.2, it was never intended: property expressions are intended to be about instance methods, not static methods. It is very easy to provide a shim method on your component to invoke the static method.
> Property expressions: exception when calling static method
> ----------------------------------------------------------
>
> Key: TAP5-1759
> URL: https://issues.apache.org/jira/browse/TAP5-1759
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Denis Stepanov
> Assignee: Howard M. Lewis Ship
>
> Exception when calling static method valueOf on the enum instance:
> java.lang.IncompatibleClassChangeError: Expecting non-static method com.MyEnum.valueOf(Ljava/lang/String;)Lcom/MyEnum;
> Static method call used to work in 5.2, this should throw an exception on page init or be a valid method call
--
This message was sent by Atlassian JIRA
(v6.2#6252)