[jboss-jira] [JBoss JIRA] (JASSIST-244) ProxyFactory will not invoke MethodHandler on method declared in parent classes.
Elis Edlund (JIRA)
issues at jboss.org
Fri Aug 7 04:07:02 EDT 2015
[ https://issues.jboss.org/browse/JASSIST-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096462#comment-13096462 ]
Elis Edlund commented on JASSIST-244:
-------------------------------------
Tried your build and it solves this issue! BIG Thanks.
The built jar is however compiled with java 1.8 instead of java 1.6 which 3.19.0-GA is.
(compared the .class files J2SE 8 = 52 (0x34 hex), J2SE 6.0 = 50 (0x32 hex))
This means that I couldn't verify if it works with older java versions as its not possible to use the built jar with java version older than 1.8
However according to the pom+build.xml it seems that the target should be 1.6 so I'm looking forward for a official release
> ProxyFactory will not invoke MethodHandler on method declared in parent classes.
> --------------------------------------------------------------------------------
>
> Key: JASSIST-244
> URL: https://issues.jboss.org/browse/JASSIST-244
> Project: Javassist
> Issue Type: Bug
> Affects Versions: 3.18.0-GA, 3.19.0-GA
> Environment: Windows 7, Java 1.7 and 1.8
> Reporter: Elis Edlund
> Assignee: Shigeru Chiba
> Priority: Blocker
> Fix For: 3.21.0-GA
>
> Attachments: IssueMethodsInParentShouldCallTheMethodHandler.java
>
>
> ProxyFactory factory = new ProxyFactory();
> factory.setSuperclass(Extended.class);
> Extended enchantedObject = (Extended) factory.create(null, null, METHOD_HANDLER);
> Does not work as intended with version newer than 3.17.0-GA
> invoking methods on the created object will go through the METHOD_HANDLER long as the method does not belong to a parent class of 'Extended'. if the method is comes from a parent class of 'Extended' the METHOD_HANDLER will not be used at all (which it was in previous versions)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list