Elis Edlund created JASSIST-219:
-----------------------------------
Summary: Generic signature is lost after using ProxyFactory to enchant
another class.
Key: JASSIST-219
URL:
https://issues.jboss.org/browse/JASSIST-219
Project: Javassist
Issue Type: Bug
Affects Versions: 3.18.1-GA, 3.18.0-GA, 3.17.1-GA, 3.16.1-GA
Environment: Windows 7
java 1.5 1.6 1.7
Reporter: Elis Edlund
Assignee: Shigeru Chiba
Its not possible to get any generic information out of a class that have been
'enchanted' with ProxyFactory.
example output before and after an 'enchantment' (produced with
method.toGenericString())
------Enchant Object------
stringMethod sigature enchantedObject: public final java.util.List
IssueMissingGenericTypeInfoForEnchantedClassTest$MyObject_$$_javassist_0.getStringList()
numberMethod sigature enchantedObject: public final java.util.List
IssueMissingGenericTypeInfoForEnchantedClassTest$MyObject_$$_javassist_0.getNumberList()
stringMethod sigature myObject : public java.util.List<java.lang.String>
IssueMissingGenericTypeInfoForEnchantedClassTest$MyObject.getStringList()
numberMethod sigature myObject : public java.util.List<? extends
java.lang.Number>
IssueMissingGenericTypeInfoForEnchantedClassTest$MyObject.getNumberList()
------Enchant Interface------
stringMethod sigature enchantedInterface: public final java.util.List
IssueMissingGenericTypeInfoForEnchantedClassTest$MyInterface_$$_javassist_1.getStringList()
numberMethod sigature enchantedInterface: public final java.util.List
IssueMissingGenericTypeInfoForEnchantedClassTest$MyInterface_$$_javassist_1.getNumberList()
stringMethod sigature myInterface : public abstract
java.util.List<java.lang.String>
IssueMissingGenericTypeInfoForEnchantedClassTest$MyInterface.getStringList()
numberMethod sigature myInterface : public abstract java.util.List<? extends
java.lang.Number>
IssueMissingGenericTypeInfoForEnchantedClassTest$MyInterface.getNumberList()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira