Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-28816

8.0.x Quickstarts logging unexpected warnings when run on JDK 21

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 8.0.z.GA
    • Quickstarts
    • None
    • False
    • None
    • False

      I can see following warnings in the Quickstart log while running it on JDK 21:

      [WARNING] bootstrap class path not set in conjunction with -source 8
      [WARNING] source value 8 is obsolete and will be removed in a future release
      [WARNING] target value 8 is obsolete and will be removed in a future release
      [WARNING] To suppress warnings about obsolete options, use -Xlint:-options.

      I believe that this is because of jboss-parent version 39 is used in the quickstarts.

      IIUC, the support for JDK 21 in EAP was added in EAP 8.0.4,  and I believe that it should also include the quickstarts.

      Also following warnings can be found in helloworld-ws quickstart:

      [WARNING] /tmp/src/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientArqIT.java:[66,33] URL(java.net.URL,java.lang.String) in java.net.URL has been deprecated
      at LogListChecker.checkIgnoredMessage(LogListChecker.java:96)
      [WARNING] /tmp/src/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientIT.java:[79,33] URL(java.net.URL,java.lang.String) in java.net.URL has been deprecated
      at LogListChecker.checkIgnoredMessage(LogListChecker.java:96)
      [WARNING] /tmp/src/src/test/java/org/jboss/as/quickstarts/wshelloworld/Client.java:[53,14] URL(java.lang.String) in java.net.URL has been deprecated
      at LogListChecker.checkIgnoredMessage(LogListChecker.java:96)

      as the java.net.URL constructor is deprecated in the JAVA 21

      Other than the logs, the QSs seems to be working fine on JDK 21

              emartins@redhat.com Eduardo Martins
              ogerzica@redhat.com Ondrej Gerzicak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: