Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8065674

javac generates incorrect LVT table for trivial cases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u80
    • 7-pool
    • tools
    • b04

        javac is generating an incorrect LVT table for code like:

        public class Test {
            public Object m(int i) {
                Object c;
                switch (i) {
                    case 0:
                        Object o = null;
                        if (o != null) {
                            return o;
                        }
                    case 1:
                        Object s = null;
                        c = null;
                        break;
                    default:
                        throw new AssertionError("");
                    }
                return c;
            }
        }

              vromero Vicente Arturo Romero Zaldivar
              vromero Vicente Arturo Romero Zaldivar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: