diff --git a/compiler/android-tests/tests/org/jetbrains/jet/compiler/android/CodegenTestsOnAndroidGenerator.java b/compiler/android-tests/tests/org/jetbrains/jet/compiler/android/CodegenTestsOnAndroidGenerator.java index 7e1d3e47257..a07c0edd09d 100644 --- a/compiler/android-tests/tests/org/jetbrains/jet/compiler/android/CodegenTestsOnAndroidGenerator.java +++ b/compiler/android-tests/tests/org/jetbrains/jet/compiler/android/CodegenTestsOnAndroidGenerator.java @@ -155,7 +155,7 @@ public class CodegenTestsOnAndroidGenerator extends UsefulTestCase { } private static ClassFileFactory getFactoryFromText(String filePath, String text, JetCoreEnvironment jetEnvironment) { - JetFile psiFile = JetPsiFactory.createFile(jetEnvironment.getProject(), text); + JetFile psiFile = JetTestUtils.createFile("dummy.jet", text, jetEnvironment.getProject()); ClassFileFactory factory; try { factory = GenerationUtils.compileFileGetClassFileFactoryForTest(psiFile);