forked from JavaTX/JavaCompilerCore
Vector Test Fehler beheben
This commit is contained in:
parent
166aa5e506
commit
b7bb0fa1c4
@ -62,7 +62,7 @@ public class CompilationEnvironment {
|
|||||||
}
|
}
|
||||||
//URLClassLoader loader = new URLClassLoader(new URL[0], cl);
|
//URLClassLoader loader = new URLClassLoader(new URL[0], cl);
|
||||||
//librarys = Arrays.asList(loader.getURLs());
|
//librarys = Arrays.asList(loader.getURLs());
|
||||||
|
|
||||||
this.sourceFiles = sourceFiles;
|
this.sourceFiles = sourceFiles;
|
||||||
this.packageCrawler = new PackageCrawler(librarys);
|
this.packageCrawler = new PackageCrawler(librarys);
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,12 @@ public class SyntaxTreeGenerator{
|
|||||||
modifiers += newModifier;
|
modifiers += newModifier;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
JavaClassName name = reg.getName(ctx.Identifier().getText());
|
String className = this.pkgName + (this.pkgName.length()>0?".":"") + ctx.Identifier().getText();
|
||||||
|
JavaClassName name = reg.getName(className);
|
||||||
|
if(! name.toString().equals(className)){
|
||||||
|
throw new TypeinferenceException("Name " + className + " bereits vorhanden in " + reg.getName(className).toString()
|
||||||
|
,ctx.getStart());
|
||||||
|
}
|
||||||
GenericsRegistry generics = createGenerics(ctx.typeParameters(), name, "", reg, new GenericsRegistry(globalGenerics));
|
GenericsRegistry generics = createGenerics(ctx.typeParameters(), name, "", reg, new GenericsRegistry(globalGenerics));
|
||||||
Token offset = ctx.getStart();
|
Token offset = ctx.getStart();
|
||||||
GenericDeclarationList genericClassParameters;
|
GenericDeclarationList genericClassParameters;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
|
|
||||||
class Vector{
|
class MyVector{
|
||||||
|
|
||||||
id(x){
|
id(x){
|
||||||
return id2(x);
|
return id2(x);
|
||||||
|
Loading…
Reference in New Issue
Block a user