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

Separate the stop policies from the compile policies completely

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • tools
    • b23
    • generic
    • generic

      Currently, javac has 5 compile policies (enum class CompilePolicy): ATTR_ONLY, CHECK_ONLY, SIMPLE, BY_FILE, BY_TODO.

      But actually, the ATTR_ONLY and CHECK_ONLY are stop policies instead of compile policies. They were placed in `CompilePolicy` because of historical reason.

      After the options `should-stop.at`, `should-stop.ifError` and `should-stop.ifNoError` being used, we don't need `ATTR_ONLY`, `CHECK_ONLY` any more.

      Now, it is good to remove them and separate the stop policies from the compile policies completely.

      Note: some places where they are used should be revised, too.

      The original thread:
      https://mail.openjdk.java.net/pipermail/compiler-dev/2021-May/016759.html

            gli Guoxiong Li
            gli Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: