]
Elis Edlund edited comment on JASSIST-244 at 8/6/15 4:44 AM:
-------------------------------------------------------------
Will this issue be resolved anytime soon? We have several hundreds thousands lines of
java code that we want to move to use java 8 but cannot because we are in to deep on
depending on the above with works on fine on older javassists+java 1.7
was (Author: elis.edlund):
Will this issue be resolved anytime soon? We have several hundreds thousands of java code
that we want to move to use java 8 but cannot because we are in to deep on depending on
the above with works on fine on older javassists+java 1.7
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
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)