You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2023/09/02 12:44:00 UTC

[jira] [Created] (JUNEAU-251) Test failures on Java 20

Gary D. Gregory created JUNEAU-251:
--------------------------------------

             Summary: Test failures on Java 20
                 Key: JUNEAU-251
                 URL: https://issues.apache.org/jira/browse/JUNEAU-251
             Project: Juneau
          Issue Type: Improvement
          Components: Code
         Environment: pache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
Maven home: /usr/local/Cellar/maven/3.9.4/libexec
Java version: 20.0.2, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-20.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "13.5.1", arch: "x86_64", family: "mac"

openjdk version "20.0.2" 2023-07-18
OpenJDK Runtime Environment Temurin-20.0.2+9 (build 20.0.2+9)
OpenJDK 64-Bit Server VM Temurin-20.0.2+9 (build 20.0.2+9, mixed mode, sharing)

            Reporter: Gary D. Gregory


Using Java 20 results in test failures:

{noformat}
[ERROR] Errors:
[ERROR]   ConfigTest.testExampleInConfig:1037 » BeanRuntime Value could not be parsed.
[ERROR]   Common_Test.testURIAttr:333 » Parse Exception occurred.  exception=InvalidData...
[ERROR]   CommonTest.testURIAttr:224 » Parse Unrecognized syntax for class type 'java.ne...
[ERROR]   Common_UonTest.testURIAttr:217 » Parse Class 'java.net.URL' could not be insta...
[ERROR]   Common_UrlEncodingTest.testURIAttr:219 » Parse Class 'java.net.URL' could not ...
[ERROR]   CommonXmlTest.testBeanUriAnnotation:41 » Parse Exception occurred.  exception=...
[ERROR]   XmlTest.testBeanUriAnnotationFormattedAsElement:432 » Parse Class 'java.net.UR...
[ERROR]   XmlTest.testOverriddenBeanUriAndIdAnnotations:498 » Parse Exception occurred. ...
[ERROR]   XmlTest.testOverriddenBeanUriAsElementNames:465 » Parse Class 'java.net.URL' c...
[ERROR]   XmlTest.testXmlAttrs:996 » Parse Exception occurred.  exception=BeanRuntimeExc...
[INFO]
[ERROR] Tests run: 22755, Failures: 0, Errors: 10, Skipped: 4
{noformat}
This is most. likely due to the deprecation on URL constructors. Our code behaves differently when it encounters elements annotated with {{\@Depreacted}}. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)