Generics als RefType entfernen

This commit is contained in:
JanUlrich 2016-12-16 13:26:28 +01:00
parent 7b9a00a7e6
commit 1b99f74f39

View File

@ -63,9 +63,9 @@ public class BytecodeTypeFactory {
/**
* @see https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-ReferenceTypeSignature
*/
private static String generateReferenceTypeSignature(RefType t){
if(t instanceof RefType)return generateReferenceTypeSignature((RefType)t);
throw new NotImplementedException();
private static String generateTypeSignature(RefType t){
if(t.isGenericType())return generateReferenceTypeSignature(t);
return generateGenericTypeSignature(t);
}
private static String generateReferenceTypeSignature(RefType t){
@ -80,7 +80,7 @@ public class BytecodeTypeFactory {
return ret + ";";
}
private static String generateReferenceTypeSignature(GenericTypeVar t){
private static String generateGenericTypeSignature(RefType t){
String ret = "T" + t.get_Name();
return ret + ";";
}