diff --git a/build.xml b/build.xml index 81e93c2de42..407bb3ff38d 100644 --- a/build.xml +++ b/build.xml @@ -386,7 +386,7 @@ - + diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/TopDownAnalyzer.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/TopDownAnalyzer.java index d2be06c6289..57470a843df 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/TopDownAnalyzer.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/TopDownAnalyzer.java @@ -148,6 +148,19 @@ public class TopDownAnalyzer { } context.debug("Exit"); + for (DeclarationDescriptor descriptor : outerScope.getAllDescriptors()) { + if (descriptor instanceof NamespaceDescriptor) { + JetScope scope = ((NamespaceDescriptor) descriptor).getMemberScope(); + for (DeclarationDescriptor member : scope.getAllDescriptors()) { + if (member instanceof ClassDescriptor) { + if (scope.getClassifier(member.getName()) != member) { + System.out.println("Different members with same name " + member.getName()); + } + } + } + } + } + context.printDebugOutput(System.out); } diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/JetStandardClasses.java b/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/JetStandardClasses.java index c8eda59f6f2..b882b54a294 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/JetStandardClasses.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/JetStandardClasses.java @@ -335,6 +335,7 @@ public class JetStandardClasses { } } STANDARD_CLASSES_NAMESPACE.initialize(writableScope); + writableScope.changeLockLevel(WritableScope.LockLevel.READING); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestPackJdkAnnotations.java b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestPackJdkAnnotations.java index c883a864d77..75dbb61bdf5 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestPackJdkAnnotations.java +++ b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestPackJdkAnnotations.java @@ -66,7 +66,7 @@ public class ForTestPackJdkAnnotations { if (ForTestCompileSomething.ACTUALLY_COMPILE) { return getJarFile(); } - final File jdkAnnotations = new File("dist/kotlinc/lib/alt/kotlin-jdk-annotations.jar"); + final File jdkAnnotations = new File("dist/kotlinc/lib/kotlin-jdk-annotations.jar"); if (!jdkAnnotations.exists()) { throw new RuntimeException("Kotlin JDK annotations jar not found; please run 'ant dist' to build it"); } diff --git a/compiler/util/src/org/jetbrains/jet/utils/PathUtil.java b/compiler/util/src/org/jetbrains/jet/utils/PathUtil.java index 45d528f24da..f25a7e1c58a 100644 --- a/compiler/util/src/org/jetbrains/jet/utils/PathUtil.java +++ b/compiler/util/src/org/jetbrains/jet/utils/PathUtil.java @@ -96,7 +96,7 @@ public class PathUtil { @Nullable public static File getJdkAnnotationsPath() { - return getFilePackedIntoLib("alt/" + JDK_ANNOTATIONS_JAR); + return getFilePackedIntoLib(JDK_ANNOTATIONS_JAR); } @NotNull