Putting kotlin-jdk-annotations.jar into lib directory instead of lib/alt.

This commit is contained in:
Evgeny Gerashchenko
2012-07-23 17:19:26 +04:00
parent 46737dfb11
commit fb8d5d3903
5 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -386,7 +386,7 @@
<target name="jdkAnnotations"> <target name="jdkAnnotations">
<cleandir dir="${output}/classes/stdlib"/> <cleandir dir="${output}/classes/stdlib"/>
<jar destfile="${kotlin-home}/lib/alt/kotlin-jdk-annotations.jar"> <jar destfile="${kotlin-home}/lib/kotlin-jdk-annotations.jar">
<fileset dir="${basedir}/jdk-annotations"/> <fileset dir="${basedir}/jdk-annotations"/>
<manifest> <manifest>
@@ -148,6 +148,19 @@ public class TopDownAnalyzer {
} }
context.debug("Exit"); 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); context.printDebugOutput(System.out);
} }
@@ -335,6 +335,7 @@ public class JetStandardClasses {
} }
} }
STANDARD_CLASSES_NAMESPACE.initialize(writableScope); STANDARD_CLASSES_NAMESPACE.initialize(writableScope);
writableScope.changeLockLevel(WritableScope.LockLevel.READING);
} }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -66,7 +66,7 @@ public class ForTestPackJdkAnnotations {
if (ForTestCompileSomething.ACTUALLY_COMPILE) { if (ForTestCompileSomething.ACTUALLY_COMPILE) {
return getJarFile(); 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()) { if (!jdkAnnotations.exists()) {
throw new RuntimeException("Kotlin JDK annotations jar not found; please run 'ant dist' to build it"); throw new RuntimeException("Kotlin JDK annotations jar not found; please run 'ant dist' to build it");
} }
@@ -96,7 +96,7 @@ public class PathUtil {
@Nullable @Nullable
public static File getJdkAnnotationsPath() { public static File getJdkAnnotationsPath() {
return getFilePackedIntoLib("alt/" + JDK_ANNOTATIONS_JAR); return getFilePackedIntoLib(JDK_ANNOTATIONS_JAR);
} }
@NotNull @NotNull