forked from JavaTX/JavaCompilerCore
Merge branch 'bytecode' into refactoring
This commit is contained in:
commit
3a8f1252a4
@ -234,7 +234,7 @@ public class GenericTypeVar extends ObjectType
|
|||||||
@Override
|
@Override
|
||||||
public org.apache.commons.bcel6.generic.Type getBytecodeType(ClassGenerator cg, TypeinferenceResultSet rs) {
|
public org.apache.commons.bcel6.generic.Type getBytecodeType(ClassGenerator cg, TypeinferenceResultSet rs) {
|
||||||
// TODO Bytecode
|
// TODO Bytecode
|
||||||
return null;
|
return org.apache.commons.bcel6.generic.Type.getType(getSignatureType(null));// new org.apache.commons.bcel6.generic.ObjectType("Object");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
3
test/bytecode/IdentityField.jav
Normal file
3
test/bytecode/IdentityField.jav
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
class Id {
|
||||||
|
<GPM, FNF extends GPM> Fun1<? extends GPM, ? super FNF> op = (x) -> x;
|
||||||
|
}
|
14
test/bytecode/IdentityFieldTest.java
Normal file
14
test/bytecode/IdentityFieldTest.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package bytecode;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class IdentityFieldTest {
|
||||||
|
public final static String rootDirectory = System.getProperty("user.dir")+"/test/bytecode/";
|
||||||
|
public final static String testFile = "IdentityField.jav";
|
||||||
|
public final static String outputFile = "IdentityField.class";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
SingleClassTester.compileToBytecode(rootDirectory+testFile, rootDirectory+outputFile);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user