[jboss-jira] [JBoss JIRA] (JASSIST-219) Generic signature is lost after using ProxyFactory to enchant another class.
Elis Edlund (JIRA)
issues at jboss.org
Wed Mar 12 03:59:10 EDT 2014
[ https://issues.jboss.org/browse/JASSIST-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elis Edlund updated JASSIST-219:
--------------------------------
Attachment: IssueMissingGenericTypeInfoForEnchantedClassTest.java
really simple class to reproduce the problem.
> 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.16.1-GA, 3.17.1-GA, 3.18.0-GA, 3.18.1-GA
> Environment: Windows 7
> java 1.5 1.6 1.7
> Reporter: Elis Edlund
> Assignee: Shigeru Chiba
> Labels: generics, missing
> Attachments: IssueMissingGenericTypeInfoForEnchantedClassTest.java
>
>
> 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
More information about the jboss-jira
mailing list