From 48e2d2eec253fbe0aacbfb45ec5ac78bab18e85e Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Wed, 31 Jan 2018 16:15:07 +0100 Subject: [PATCH 1/2] Tests fixen --- test/bytecode/LamAssign.jav | 2 ++ test/javFiles/Faculty.jav | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/bytecode/LamAssign.jav b/test/bytecode/LamAssign.jav index 3df81780..1e0ee3d8 100644 --- a/test/bytecode/LamAssign.jav +++ b/test/bytecode/LamAssign.jav @@ -1,3 +1,5 @@ +import java.lang.Integer; + class LamAssign { m () { diff --git a/test/javFiles/Faculty.jav b/test/javFiles/Faculty.jav index c7cbf407..50bd7e78 100644 --- a/test/javFiles/Faculty.jav +++ b/test/javFiles/Faculty.jav @@ -1,3 +1,5 @@ +import java.lang.Integer; + class Faculty { Integer mul(Integer x, Integer y) { From 2f994cdfa83d0e46987d0075a2d2cf8ed65f1d65 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Wed, 31 Jan 2018 16:42:25 +0100 Subject: [PATCH 2/2] =?UTF-8?q?java.lang.=20nicht=20standardm=C3=A4=C3=9Fi?= =?UTF-8?q?g=20importieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/de/dhbwstuttgart/parser/scope/GatherNames.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/dhbwstuttgart/parser/scope/GatherNames.java b/src/de/dhbwstuttgart/parser/scope/GatherNames.java index cd508cde..69481508 100644 --- a/src/de/dhbwstuttgart/parser/scope/GatherNames.java +++ b/src/de/dhbwstuttgart/parser/scope/GatherNames.java @@ -72,7 +72,7 @@ public class GatherNames { public static Map getImports(Java8Parser.CompilationUnitContext ctx, PackageCrawler packages) throws ClassNotFoundException { Map 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());