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

since-checker wrongly identifies since-version for some modules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • tools
    • None
    • generic
    • generic

      If a module was added after JDK 9 and did not have a preview stage `SinceChecker` identifies the "real" since-version of the module as 9.

      For example, the following tests all fail with errors like "module: <module name>: `@since` version is <version> but the element exists before JDK 10":
      ```
      /*
       * @test
       * @library /test/lib /test/jdk/tools/sincechecker
       * @run main SinceChecker jdk.internal.md
       */

      /*
       * @test
       * @library /test/lib /test/jdk/tools/sincechecker
       * @run main SinceChecker jdk.graal.compiler
       */

      /*
       * @test
       * @library /test/lib /test/jdk/tools/sincechecker
       * @run main SinceChecker jdk.graal.compiler.management
       */
      ```

            Unassigned Unassigned
            tpushkin Timofei Pushkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: