Merge branch 'bytecode' into refactoring

This commit is contained in:
JanUlrich 2016-04-06 14:23:26 +02:00
commit 3a8f1252a4
3 changed files with 18 additions and 1 deletions

View File

@ -234,7 +234,7 @@ public class GenericTypeVar extends ObjectType
@Override
public org.apache.commons.bcel6.generic.Type getBytecodeType(ClassGenerator cg, TypeinferenceResultSet rs) {
// TODO Bytecode
return null;
return org.apache.commons.bcel6.generic.Type.getType(getSignatureType(null));// new org.apache.commons.bcel6.generic.ObjectType("Object");
}

View File

@ -0,0 +1,3 @@
class Id {
<GPM, FNF extends GPM> Fun1<? extends GPM, ? super FNF> op = (x) -> x;
}

View 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);
}
}