diff --git a/compiler/frontend/builtins/jet/.kotlin_class_names b/compiler/frontend/builtins/jet/.kotlin_class_names index 045b44f859b..403d64543c4 100644 Binary files a/compiler/frontend/builtins/jet/.kotlin_class_names and b/compiler/frontend/builtins/jet/.kotlin_class_names differ diff --git a/compiler/frontend/builtins/jet/.kotlin_package b/compiler/frontend/builtins/jet/.kotlin_package index 4f5cbd858a3..8c736d5d0e4 100644 Binary files a/compiler/frontend/builtins/jet/.kotlin_package and b/compiler/frontend/builtins/jet/.kotlin_package differ diff --git a/compiler/frontend/builtins/jet/Nothing.kotlin_class b/compiler/frontend/builtins/jet/Nothing.kotlin_class index a3c038ba10f..7510be6ae4e 100644 --- a/compiler/frontend/builtins/jet/Nothing.kotlin_class +++ b/compiler/frontend/builtins/jet/Nothing.kotlin_class @@ -1,2 +1,3 @@ - ÇR Â0B + Ç2 +R Â0B r \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/AbstractLazyResolveTest.java b/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/AbstractLazyResolveTest.java index eff3cd5df36..e5088be1dca 100644 --- a/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/AbstractLazyResolveTest.java +++ b/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/AbstractLazyResolveTest.java @@ -71,7 +71,7 @@ public abstract class AbstractLazyResolveTest extends JetLiteFixture { } }); - KotlinCodeAnalyzer resolveSession = LazyResolveTestUtil.resolveLazilyWithSession(files, getEnvironment()); + KotlinCodeAnalyzer resolveSession = LazyResolveTestUtil.resolveLazilyWithSession(files, getEnvironment(), true); NamespaceDescriptor actual = resolveSession.getPackageDescriptor(Name.identifier("test")); Assert.assertNotNull("Package 'test' was not found", actual); diff --git a/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/LazyResolveTestUtil.java b/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/LazyResolveTestUtil.java index db94115e40e..74a63978ac2 100644 --- a/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/LazyResolveTestUtil.java +++ b/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/LazyResolveTestUtil.java @@ -87,7 +87,7 @@ public class LazyResolveTestUtil { return module; } - public static KotlinCodeAnalyzer resolveLazilyWithSession(List files, JetCoreEnvironment environment) { + public static KotlinCodeAnalyzer resolveLazilyWithSession(List files, JetCoreEnvironment environment, final boolean addBuiltIns) { JetTestUtils.newTrace(environment); ModuleDescriptorImpl javaModule = AnalyzerFacadeForJVM.createJavaModule(""); @@ -117,7 +117,7 @@ public class LazyResolveTestUtil { @NotNull WritableScope namespaceMemberScope ) { FqName fqName = DescriptorUtils.getFQName(namespaceDescriptor).toSafe(); - if (new FqName("jet").equals(fqName)) { + if (KotlinBuiltIns.BUILT_INS_PACKAGE_FQ_NAME.equals(fqName) && addBuiltIns) { namespaceMemberScope.importScope(KotlinBuiltIns.getInstance().getBuiltInsScope()); } if (psiClassFinder.findPsiPackage(fqName) != null) { @@ -135,7 +135,11 @@ public class LazyResolveTestUtil { } public static ModuleDescriptor resolveLazily(List files, JetCoreEnvironment environment) { - return resolveLazilyWithSession(files, environment).getRootModuleDescriptor(); + return resolveLazily(files, environment, true); + } + + public static ModuleDescriptor resolveLazily(List files, JetCoreEnvironment environment, boolean addBuiltIns) { + return resolveLazilyWithSession(files, environment, addBuiltIns).getRootModuleDescriptor(); } @NotNull diff --git a/generators/org/jetbrains/jet/generators/builtins/BuiltInsSerializer.java b/generators/org/jetbrains/jet/generators/builtins/BuiltInsSerializer.java index abee53776a0..a586531a06c 100644 --- a/generators/org/jetbrains/jet/generators/builtins/BuiltInsSerializer.java +++ b/generators/org/jetbrains/jet/generators/builtins/BuiltInsSerializer.java @@ -38,7 +38,7 @@ public class BuiltInsSerializer { JetCoreEnvironment environment = new JetCoreEnvironment(rootDisposable, configuration); List files = JetTestUtils.loadToJetFiles(environment, sourceFiles); - ModuleDescriptor module = LazyResolveTestUtil.resolveLazily(files, environment); + ModuleDescriptor module = LazyResolveTestUtil.resolveLazily(files, environment, false); FqName fqName = FqName.topLevel(Name.identifier(KotlinBuiltIns.BUILT_INS_PACKAGE_NAME_STRING)); NamespaceDescriptor namespace = module.getNamespace(fqName);