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

java.lang.AssertionError compiling source code

XMLWordPrintable

    • b33
    • Verified

        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.

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

                Created:
                Updated:
                Resolved: