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

Hudson commented on TAP5-2786:
------------------------------

FAILURE: Integrated in Jenkins build Tapestry » 
tapestry-java-11-temurin-freestyle #35 (See 
[https://ci-builds.apache.org/job/Tapestry/job/tapestry-java-11-temurin-freestyle/35/])
TAP5-2786: don't override final method in subclass (thiago: rev 
6661642ca1d662bb084d5addb6dae082ae830898)
* (add) 
plastic/src/main/java/org/apache/tapestry5/plastic/MethodAlreadyExistsException.java
* (add) 
tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/SubclassWithFinalCachedMethodDemo.tml
* (edit) 
tapestry-core/src/main/java/org/apache/tapestry5/internal/transform/PropertyWorker.java
* (edit) 
tapestry-core/src/main/java/org/apache/tapestry5/internal/transform/CachedWorker.java
* (edit) 
plastic/src/main/java/org/apache/tapestry5/internal/plastic/PlasticFieldImpl.java
* (add) 
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/SubclassWithFinalCachedMethodDemo.java
* (add) 
tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/components/SuperclassWithFinalCachedMethod.tml
* (add) 
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/components/SubclassWithFinalCachedMethod.java
* (add) 
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/components/SuperclassWithFinalCachedMethod.java


> Attempt to override final method in subclass when in multiple classloader mode
> ------------------------------------------------------------------------------
>
>                 Key: TAP5-2786
>                 URL: https://issues.apache.org/jira/browse/TAP5-2786
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.8.7
>            Reporter: Thiago Henrique De Paula Figueiredo
>            Assignee: Thiago Henrique De Paula Figueiredo
>            Priority: Minor
>             Fix For: 5.9.0
>
>
> With this code:
> Select.java
> {code:java}
> @Cached(watch = "clientId")
> protected final List<?> getList() {
>     return createList();
> }
> protected List<?> createList() {
>     return list_;
> }{code}
> SelectDigest.java
> {code:java}
> public class SelectDigest extends Select {
>     @Override
>     protected List<?> createList() {
>         ....
>     }
> }{code}
> This exception happens:
> java.lang.IncompatibleClassChangeError
> *class root_package.components.SelectDigest overrides final method 
> root_package.components.Select.getList()Ljava/util/List;*
>  
> If I remove the {{final}} modifier from the superclass' {{getList()}} method, 
> the problem doesn't work.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to