IDEA-166363 Support LocalVariableTypeTable attribute

This commit is contained in:
Egor.Ushakov
2017-01-10 17:09:09 +03:00
parent 1d331ddd6d
commit cb133af01e
9 changed files with 168 additions and 5 deletions

Binary file not shown.

View File

@@ -0,0 +1,25 @@
package pkg;
import java.util.ArrayList;
import java.util.List;
public class TestLocalsSignature {
public static void main(String[] args) {
List<String> s = new ArrayList();// 24
s.add("xxx");// 25
}// 26
}
class 'pkg/TestLocalsSignature' {
method 'main ([Ljava/lang/String;)V' {
7 7
9 8
b 8
11 9
}
}
Lines mapping:
24 <-> 8
25 <-> 9
26 <-> 10

View File

@@ -0,0 +1,27 @@
/*
* 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.
*/
package pkg;
import java.util.ArrayList;
import java.util.List;
public class TestLocalsSignature {
public static void main(String[] args) {
List<String> s = new ArrayList<String>();
s.add("xxx");
}
}