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

Build microbenchmarks with --enable-preview

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • None
    • infrastructure
    • None
    • b29

        When building microbenchmarks, we should enable preview features as a convenience.

        diff -r f2e1cd498381 make/test/BuildMicrobenchmark.gmk
        --- a/make/test/BuildMicrobenchmark.gmk Tue Jun 23 10:08:35 2020 +0200
        +++ b/make/test/BuildMicrobenchmark.gmk Tue Jun 23 10:33:17 2020 +0200
        @@ -90,10 +90,11 @@
             TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
             SMALL_JAVA := false, \
             CLASSPATH := $(MICROBENCHMARK_CLASSPATH), \
        - DISABLED_WARNINGS := processing rawtypes cast serial, \
        + DISABLED_WARNINGS := processing rawtypes cast serial preview, \
             SRC := $(MICROBENCHMARK_SRC), \
             BIN := $(MICROBENCHMARK_CLASSES), \
             JAVA_FLAGS := --add-modules jdk.unsupported --limit-modules java.management, \
        + JAVAC_FLAGS := --enable-preview, \
         ))

         $(BUILD_JDK_MICROBENCHMARK): $(JMH_COMPILE_JARS)

              plevart Peter Levart
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: