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

[lworld] javac fails to detect class files with invalid access flags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-valhalla
    • repo-valhalla
    • tools

      The issue happens when javac compiles a Java source file referencing a class provided as a class file (not a source file) and this source file has an invalid access flags combination. In this scenario, javac fails to detect the invalid flags, generates a class file with an incorrect bytecode sequence and considers the compilation to be successful.

      Such invalid access flags can easily be detected at compilation time and should trigger an error in the compilation.

        1. InstantiateValue.java
          0.2 kB
          Frederic Parain
        2. ValueWithInvalidFlags.jcod
          2 kB
          Frederic Parain

            vromero Vicente Arturo Romero Zaldivar
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: