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

JITTester: Fix breaks in static initialization blocks

    XMLWordPrintable

Details

    • b11

    Description

      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
              }
          }
      }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: