[jboss-jira] [JBoss JIRA] (JASSIST-218) Class referenced in generic method parameter not listed in getRefClasses()

Rich DiCroce (JIRA) issues at jboss.org
Tue Mar 11 12:17:10 EDT 2014


Rich DiCroce created JASSIST-218:
------------------------------------

             Summary: Class referenced in generic method parameter not listed in getRefClasses()
                 Key: JASSIST-218
                 URL: https://issues.jboss.org/browse/JASSIST-218
             Project: Javassist
          Issue Type: Bug
    Affects Versions: 3.18.1-GA
            Reporter: Rich DiCroce
            Assignee: Shigeru Chiba


Consider the following class, assuming that SomeEnum is an Enum in the same package:
{code}
package test;

import java.util.Map;

import javassist.ClassPool;

public class Test {

	public static void main(String[] args) throws Exception {
		for (Object clazz : ClassPool.getDefault().get(Test.class.getName()).getRefClasses()) {
			System.out.println(clazz);
		}
	}
	
	public void foo(Map<SomeEnum, String> someParam) {
		
	}
	
}
{code}

SomeEnum will not be listed in the console output, despite the fact that the method foo references it as a generic parameter to Map for someParam.

--
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