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

java.lang.AssertionError compiling source code

    XMLWordPrintable

Details

    • b33
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: