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

javac generates incorrect LVT table for trivial cases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7-pool
    • Fix Version/s: 7u80
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b04

      Backports

        Description

        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;
            }
        }

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: