javac generates incorrect LVT table for trivial cases

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 7u80
    • Affects Version/s: 7-pool
    • Component/s: 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;
            }
        }

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

                Created:
                Updated:
                Resolved: