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

JITTester: Fix breaks in static initialization blocks

XMLWordPrintable

    • b11

        We currently have static blocks disabled because they allow for creating erroneous 'break' statements. Lets fix both issues.

        Here's a sample:
        class Test_0 {
            static {
                if (true) {
                    break; // <- compilation error here
                }
            }
        }

              enikitin Evgeny Nikitin
              enikitin Evgeny Nikitin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: