Merge branch 'bigRefactoring' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into bytecode2

This commit is contained in:
Fayez Abu Alia 2018-01-31 16:47:18 +01:00
commit c61dd5411e
3 changed files with 5 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public class GatherNames {
public static Map<String, Integer> getImports(Java8Parser.CompilationUnitContext ctx, PackageCrawler packages) throws ClassNotFoundException {
Map<String, Integer> ret = new HashMap<>();
ClassLoader classLoader = ClassLoader.getSystemClassLoader();
ret.putAll(packages.getClassNames("java.lang"));
//ret.putAll(packages.getClassNames("java.lang"));
for(Java8Parser.ImportDeclarationContext importDeclCtx : ctx.importDeclaration()){
if(importDeclCtx.singleTypeImportDeclaration() != null){
Class cl = classLoader.loadClass(importDeclCtx.singleTypeImportDeclaration().typeName().getText());

View File

@ -1,3 +1,5 @@
import java.lang.Integer;
class LamAssign {
m () {

View File

@ -1,3 +1,5 @@
import java.lang.Integer;
class Faculty {
Integer mul(Integer x, Integer y) {