Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20352

Quickstarts logging unexpected warnings when run on JDK 21

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Quickstarts
    • None
    • ---
    • ---

      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.

      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
              emartins@redhat.com Eduardo Martins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: