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

java.lang.AssertionError compiling source code

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b33
    • Verification:
      Verified

      Backports

        Description

        compile this code with the -g option:

        class Test {
            void m(Object o)
            {
                if (o != null) {
                    Object notUsed;
                    Object used;
                    if (o != null) {
                        final Object finalLocal = null;
                        used = null;
                        if (o == null) {}
                    }
                }
            }
        }

        javac crashes with an assertion error.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                vromero Vicente Arturo Romero Zaldivar
                Reporter:
                shadowbug Shadow Bug
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: