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

javac should not require assertions enabled

XMLWordPrintable

    • b128
    • generic
    • generic
    • Not verified

      Currently, javac uses assert and expects/requires assertions to be enabled. So much so that main.Main tests whether they are, and aborts if they are not.

      With JSR 199, it is unreasonable to expect all clients to enable assertions for javac, and there are too many entry points to protect them all.

      All uses of assert should be replaced by the equivalent if ... throw new AssertionError

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: