[java decompiler] corrects test data

master
Roman Shevchenko 7 years ago
parent 0bb1f6801c
commit 730bf5dfcd
  1. 2
      test/org/jetbrains/java/decompiler/SingleClassesTest.java
  2. BIN
      testData/classes/pkg/TestSuperInner$Inner.class
  3. BIN
      testData/classes/pkg/TestSuperInner$Inner2.class
  4. BIN
      testData/classes/pkg/TestSuperInner.class
  5. BIN
      testData/classes/pkg/TestSuperInner2$Inner2.class
  6. BIN
      testData/classes/pkg/TestSuperInner2.class
  7. BIN
      testData/classes/pkg/TestSuperInnerBase$Inner.class
  8. BIN
      testData/classes/pkg/TestSuperInnerBase.class
  9. 19
      testData/results/TestSuperInner.dec
  10. 17
      testData/results/TestSuperInner2.dec
  11. 9
      testData/src/pkg/TestSuperInner.java
  12. 4
      testData/src/pkg/TestSuperInner2.java
  13. 7
      testData/src/pkg/TestSuperInnerBase.java

@ -105,7 +105,7 @@ public class SingleClassesTest {
@Test public void testPop2OneLongPop2() { doTest("pkg/TestPop2OneLongPop2"); }
@Test public void testPop2TwoIntPop2() { doTest("pkg/TestPop2TwoIntPop2"); }
@Test public void testPop2TwoIntTwoPop() { doTest("pkg/TestPop2TwoIntTwoPop"); }
@Test public void testSuperInner2() { doTest("pkg/TestSuperInner2", "pkg/TestSuperInner"); }
@Test public void testSuperInner() { doTest("pkg/TestSuperInner", "pkg/TestSuperInnerBase"); }
// TODO: fix all below
//@Test public void testPackageInfo() { doTest("pkg/package-info"); }

@ -0,0 +1,19 @@
package pkg;
class TestSuperInner extends TestSuperInnerBase {
protected abstract class Inner2 extends TestSuperInnerBase.Inner {
protected Inner2() {
super();// 4
}
}
}
class 'pkg/TestSuperInner$Inner2' {
method '<init> (Lpkg/TestSuperInner;)V' {
7 5
a 6
}
}
Lines mapping:
4 <-> 6

@ -1,17 +0,0 @@
class TestSuperInner2 extends TestSuperInner {
protected class Inner2 extends TestSuperInner.Inner {
protected Inner2() {
super();// 2
}
}
}
class 'TestSuperInner2$Inner2' {
method '<init> (LTestSuperInner2;)V' {
7 3
a 4
}
}
Lines mapping:
2 <-> 4

@ -1,6 +1,5 @@
public class TestSuperInner {
protected abstract class Inner {
protected Inner() {
}
}
package pkg;
class TestSuperInner extends TestSuperInnerBase {
protected abstract class Inner2 extends Inner { }
}

@ -1,4 +0,0 @@
class TestSuperInner2 extends TestSuperInner {
protected class Inner2 extends Inner {
}
}

@ -0,0 +1,7 @@
package pkg;
class TestSuperInnerBase {
protected abstract class Inner {
protected Inner() { }
}
}
Loading…
Cancel
Save