forked from JavaTX/JavaCompilerCore
Fehler beheben
This commit is contained in:
parent
932b277dcc
commit
a7e1a5e2c2
@ -93,8 +93,8 @@ public class TypeInsertFactory {
|
||||
}
|
||||
if(! inside)newGenerics.add(new GenericInsertPair(additionalTPH, null));
|
||||
}
|
||||
|
||||
ret.add(createGenericInsert(newGenerics, cl, m));
|
||||
if(newGenerics.size() > 0)
|
||||
ret.add(createGenericInsert(newGenerics, cl, m));
|
||||
|
||||
//return ret;
|
||||
return new TypeInsert(insertPoint, ret);
|
||||
|
@ -1,8 +1,6 @@
|
||||
|
||||
class mathStruc<A> {
|
||||
|
||||
a = new mathStruc<String>();
|
||||
|
||||
mathStruc(A a) { }
|
||||
|
||||
A model(){ A a; return a; }
|
||||
|
@ -34,7 +34,7 @@ public class JavaTXCompilerTest extends JavaTXCompiler {
|
||||
@Test
|
||||
public void test() throws IOException, java.lang.ClassNotFoundException {
|
||||
//filesToTest.add(new File(rootDirectory+"Faculty.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"mathStruc.jav"));
|
||||
filesToTest.add(new File(rootDirectory+"mathStruc.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"Lambda.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"Lambda2.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"Lambda3.jav"));
|
||||
@ -42,7 +42,7 @@ public class JavaTXCompilerTest extends JavaTXCompiler {
|
||||
//filesToTest.add(new File(rootDirectory+"Generics.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"MethodsEasy.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"Matrix.jav"));
|
||||
filesToTest.add(new File(rootDirectory+"Import.jav"));
|
||||
//filesToTest.add(new File(rootDirectory+"Import.jav"));
|
||||
for(File f : filesToTest){
|
||||
SourceFile sf = this.parse(f);
|
||||
System.out.println(ASTTypePrinter.print(this.sourceFiles.get(sourceFiles.size()-1)));
|
||||
|
Loading…
Reference in New Issue
Block a user