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

bootstrap class path not set in conjunction with -source 11

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      generic
    • OS:
      generic

      Description

      ADDITIONAL SYSTEM INFORMATION :
      "C:\Program Files\Java\jdk-12.0.2\bin\java" -version
      java version "12.0.2" 2019-07-16
      Java(TM) SE Runtime Environment (build 12.0.2+10)
      Java HotSpot(TM) 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)


      A DESCRIPTION OF THE PROBLEM :
      Compile any Java source file as follows:
      javac -g -source 11 -target 11 -Xlint:all -classpath classes -d classes -sourcepath src src\Any.java

      Following warning appears:
      warning: [options] bootstrap class path not set in conjunction with -source 11

      javac cross compile option says:
      This [-bootclasspath] can only be used when compiling for versions prior to JDK 9. As applicable, see the descriptions in --release, -source, or -target for details.

      Therefore this warning is incorrect since -source and -target are set to 11.



      REGRESSION : Last worked in version 12.0.2

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      See description above.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      See description above.
      ACTUAL -
      See description above.

      ---------- BEGIN SOURCE ----------
      See description above.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Use Java SE 11.0.4

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: