Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902137

Make @compile to use test JDK and @build to use compile JDK.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      Currently there are three options to specify JDK in JTReg tests: -jdk, -testjdk and -compilejdk. -jdk is an alias for equal settings for -compilejdk and -testjdk.
      Also there are @compile and @build JTReg tags both of which use compile JDK.
      Meaning of the two tags is different, however. Semantically, @build is intended for compiling some test code as a prelude to executing that code as a test, while @compile is generally used for compiling some code as a test of javac.
      @compile should be using test JDK as this action is a test action.
      @build should use compile JDK

            cstein Christian Stein
            shurailine Aleksandre Iline
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: