Modify

Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#22943 closed defect (fixed)

Build fails with jdk20

Reported by: SammysHP Owned by: team
Priority: normal Milestone: 23.05
Component: Core Version:
Keywords: java20 Cc:

Description

While trying to build JOSM under Arch Linux the build fails with the following error:

compile:
    [javac] Compiling 1751 source files to /home/sammyshp/build/josm-svn/src/josm-svn/build
    [javac] -Xbootclasspath/p is no longer a supported option.

Revision 18725

$ java -version
openjdk version "20.0.1" 2023-04-18
OpenJDK Runtime Environment (build 20.0.1+9)
OpenJDK 64-Bit Server VM (build 20.0.1+9, mixed mode, sharing)
$ javac -version
javac 20.0.1

PS: Would be great to have a "Build" component for such issues. :)

Attachments (0)

Change History (5)

comment:1 by taylor.smock, 20 months ago

Priority: majornormal

I literally just added Java 20/Java 21-ea to the GitHub workflow.

Anyway, it looks like a regex for detecting Java 9+ wasn't prepped for Java 20+.

comment:2 by taylor.smock, 20 months ago

Resolution: fixed
Status: newclosed

In 18726/josm:

Fix #22943: Build fails with Java 20

This was due the isJava9 regex using 1[0-9] for Java 10+.

comment:3 by taylor.smock, 20 months ago

In 18727/josm:

See #22943: Build fails with Java 20

Typo in regex (1.)?(9|[2-9][0-9]) -> (1.)?(9|[1-9][0-9]).
This caused Java 10-19 builds to fail.

comment:4 by taylor.smock, 20 months ago

Keywords: java20 added

comment:5 by skyper, 20 months ago

Milestone: 23.05

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.