mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
[java-decompiler] IDEA-346312 adapt patch 009
- update copyright - fix problems with annotations - fix tests - disable loading environment for tests and prod - disable `private class` until next fixes GitOrigin-RevId: d0d7177af604f787bf1c7114393f5cadb5197cc8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
de2a3f906a
commit
69624819aa
@@ -69,7 +69,8 @@ class IdeaDecompilerTest : LightJavaCodeInsightFixtureTestCase() {
|
||||
val visitor = MyFileVisitor(psiManager)
|
||||
Registry.get("decompiler.dump.original.lines").withValue(true) {
|
||||
VfsUtilCore.visitChildrenRecursively(getTestFile("${JavaTestUtil.getJavaTestDataPath()}/psi/cls/mirror"), visitor)
|
||||
VfsUtilCore.visitChildrenRecursively(getTestFile("${PluginPathManager.getPluginHomePath("java-decompiler")}/engine/testData/classes"), visitor)
|
||||
//todo open after private class is fixed
|
||||
//VfsUtilCore.visitChildrenRecursively(getTestFile("${PluginPathManager.getPluginHomePath("java-decompiler")}/engine/testData/classes"), visitor)
|
||||
VfsUtilCore.visitChildrenRecursively(getTestFile("${IdeaTestUtil.getMockJdk18Path().path}/jre/lib/rt.jar!/java/lang"), visitor)
|
||||
}
|
||||
}
|
||||
@@ -169,8 +170,8 @@ class IdeaDecompilerTest : LightJavaCodeInsightFixtureTestCase() {
|
||||
val mapping = file.getUserData(LineNumbersMapping.LINE_NUMBERS_MAPPING_KEY)!!
|
||||
assertEquals(11, mapping.bytecodeToSource(3))
|
||||
assertEquals(3, mapping.sourceToBytecode(11))
|
||||
assertEquals(23, mapping.bytecodeToSource(13))
|
||||
assertEquals(13, mapping.sourceToBytecode(23))
|
||||
assertEquals(21, mapping.bytecodeToSource(13))
|
||||
assertEquals(13, mapping.sourceToBytecode(21))
|
||||
assertEquals(-1, mapping.bytecodeToSource(1000))
|
||||
assertEquals(-1, mapping.sourceToBytecode(1000))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user