Generics als RefType entfernen
This commit is contained in:
parent
7b9a00a7e6
commit
1b99f74f39
@ -63,9 +63,9 @@ public class BytecodeTypeFactory {
|
|||||||
/**
|
/**
|
||||||
* @see https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-ReferenceTypeSignature
|
* @see https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-ReferenceTypeSignature
|
||||||
*/
|
*/
|
||||||
private static String generateReferenceTypeSignature(RefType t){
|
private static String generateTypeSignature(RefType t){
|
||||||
if(t instanceof RefType)return generateReferenceTypeSignature((RefType)t);
|
if(t.isGenericType())return generateReferenceTypeSignature(t);
|
||||||
throw new NotImplementedException();
|
return generateGenericTypeSignature(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String generateReferenceTypeSignature(RefType t){
|
private static String generateReferenceTypeSignature(RefType t){
|
||||||
@ -80,7 +80,7 @@ public class BytecodeTypeFactory {
|
|||||||
return ret + ";";
|
return ret + ";";
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String generateReferenceTypeSignature(GenericTypeVar t){
|
private static String generateGenericTypeSignature(RefType t){
|
||||||
String ret = "T" + t.get_Name();
|
String ret = "T" + t.get_Name();
|
||||||
return ret + ";";
|
return ret + ";";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user