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

order of subclasses in the permits clause can differ between compilations

XMLWordPrintable

    • b05

        short version is that the order of subclasses in the permits clause of sealed classes or interfaces can vary between compilations, thus producing non-deterministic output.

        reported by: pbielicki@gmail.com, see [1]

        [1] https://mail.openjdk.org/pipermail/compiler-dev/2023-December/025188.html

          1. classes.zip
            1 kB
          2. GradleExecGraphNodeExecutionInfo.java
            2 kB
          3. GradleExecGraph.java
            1 kB
          4. log1.txt
            34 kB
          5. log2.txt
            20 kB
          6. javac-permitted-ordering-bug-master.zip
            2 kB

              vromero Vicente Arturo Romero Zaldivar
              vromero Vicente Arturo Romero Zaldivar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: