Modify

Opened 8 months ago

Last modified 8 months ago

#24090 needinfo defect

[PATCH] Improve java version detection in /usr/bin/josm

Reported by: ZLima12 Owned by: ZLima12
Priority: minor Milestone:
Component: Core Version:
Keywords: Cc:

Description

Previously, the first line of output from the java -version command was assumed to be the version string, but this is not guaranteed. For example, when the _JAVA_OPTIONS environment variable is not empty, a "Picked up _JAVA_OPTIONS" message is printed before the version string. When this happens, java_version produces an empty string, which later results in some java options not being passed to the JVM.

Attachments (1)

java-version.patch (500 bytes ) - added by ZLima12 8 months ago.

Download all attachments as: .zip

Change History (2)

by ZLima12, 8 months ago

Attachment: java-version.patch added

comment:1 by skyper, 8 months ago

Owner: changed from team to ZLima12
Status: newneedinfo

I do not think your patch works with other java distributions than openjdk or does it? For sure both tested and latest need to be fixed and your current patch only handles the former.

How do you install and start JOSM? Where do you set the environment options?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as needinfo The owner will remain ZLima12.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from ZLima12 to the specified user. Next status will be 'new'.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from ZLima12 to anonymous. Next status will be 'assigned'.

Add Comment


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