You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Richard N. Hillegas (Jira)" <ji...@apache.org> on 2020/10/19 13:50:00 UTC
[jira] [Commented] (DERBY-7087) Make it possible to build and run
tests cleanly on Java 15
[ https://issues.apache.org/jira/browse/DERBY-7087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17216738#comment-17216738 ]
Richard N. Hillegas commented on DERBY-7087:
--------------------------------------------
When I try to run non-JUnit tests, they die early on with the following stack trace:
{noformat}
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 2
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3734)
at java.base/java.lang.String.substring(String.java:1903)
at org.apache.derbyTesting.functionTests.harness.JavaVersionHolder.<init>(JavaVersionHolder.java:62)
at org.apache.derbyTesting.functionTests.harness.RunSuite.getSuiteProperties(RunSuite.java:307)
at org.apache.derbyTesting.functionTests.harness.RunSuite.main(RunSuite.java:125)
{noformat}
I suspect that Open JDK has changed the format of the version string and Derby cannot parse the new format.
> Make it possible to build and run tests cleanly on Java 15
> ----------------------------------------------------------
>
> Key: DERBY-7087
> URL: https://issues.apache.org/jira/browse/DERBY-7087
> Project: Derby
> Issue Type: Task
> Components: Build tools
> Affects Versions: 10.16.0.0
> Reporter: Richard N. Hillegas
> Assignee: Richard N. Hillegas
> Priority: Major
>
> Make the following possible:
> * Be able to use Java 15 to cleanly run tests against jars which were built using JDK 11.
> * Make it possible to cleanly build and run tests using JDK 15.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)