8155816: langtools/tools/javac/classfiles/attributes/LineNumberTable/T8050993.java test broken

Correcting expected line numbers

Reviewed-by: alundblad
This commit is contained in:
Jan Lahoda 2016-05-02 12:57:05 +02:00
parent 8ca267abe3
commit d7af112d8d

View File

@ -19,7 +19,7 @@ import com.sun.tools.classfile.*;
public class T8050993 {
public static void main(String[] args) throws IOException, ConstantPoolException {
ClassFile someTestIn = ClassFile.read(T8050993.class.getResourceAsStream("T8050993.class"));
Set<Integer> expectedLineNumbers = new HashSet<>(Arrays.asList(48, 49, 46, 47));
Set<Integer> expectedLineNumbers = new HashSet<>(Arrays.asList(49, 50, 47, 48));
for (Method m : someTestIn.methods) {
if ("method".equals(m.getName(someTestIn.constant_pool))) {
Code_attribute code_attribute = (Code_attribute) m.attributes.get(Attribute.Code);