decompiler: fixed inner class constructor signature decompilation

This commit is contained in:
Egor.Ushakov
2015-01-20 18:39:21 +03:00
parent c254ddd8f2
commit 02e235dcee
7 changed files with 137 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,70 @@
public class TestInnerSignature<A, B, C> {
A a;
B b;
C c;
public TestInnerSignature(A var1, B var2, C var3) {
this.a = var1;// 23
this.b = var2;// 24
this.c = var3;// 25
}
public static class InnerStatic<A, B, C> {
A a;
B b;
C c;
public InnerStatic(A var1, B var2, C var3) {
this.a = var1;// 46
this.b = var2;// 47
this.c = var3;// 48
}
}
public class Inner {
A a;
B b;
C c;
public Inner(A var1, B var2, C var3) {
this.a = var2;// 34
this.b = var3;// 35
this.c = var4;// 36
}
}
}
class 'TestInnerSignature' {
method '<init> (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V' {
6 6
b 7
10 8
}
}
class 'TestInnerSignature$InnerStatic' {
method '<init> (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V' {
6 17
b 18
10 19
}
}
class 'TestInnerSignature$Inner' {
method '<init> (LTestInnerSignature;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V' {
b 29
10 30
16 31
}
}
Lines mapping:
23 <-> 7
24 <-> 8
25 <-> 9
34 <-> 30
35 <-> 31
36 <-> 32
46 <-> 18
47 <-> 19
48 <-> 20

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
public class TestInnerSignature<A,B,C> {
A a;
B b;
C c;
public TestInnerSignature(A a,B b,C c) {
this.a = a;
this.b = b;
this.c = c;
}
public class Inner {
A a;
B b;
C c;
public Inner(A a, B b, C c) {
this.a = a;
this.b = b;
this.c = c;
}
}
public static class InnerStatic<A,B,C> {
A a;
B b;
C c;
public InnerStatic(A a, B b, C c) {
this.a = a;
this.b = b;
this.c = c;
}
}
}