Modify ↓

Opened 7 weeks ago

Last modified 2 weeks ago

#24941 new enhancement

[patch] Compile JMapViewer as Java 11 target

Reported by: gaben Owned by: team
Priority: normal Milestone: 26.12
Component: JMapViewer Version:
Keywords: java11 Cc: stoecker

Description

I realised that JMapViewer is still being compiled as a Java 8 target. Should I update it to Java 11, given that the Java 17 update is imminent? Or should I leave it as it is and switch to Java 17 once the core switch has been implemented? Or should it stay at Java 8?

This would tidy up the build scripts, as there are some hacks for pre-Java 11. E.g. the two-pass compile in Ant.

Attachments (1)

24941-1-java11.patch​ (192.9 KB ) - added by gaben 5 weeks ago.
Java 11 bump plus cleanup, Maven _should be_ (fingers crossed) as good as Ant

Download all attachments as: .zip

Change History (7)

comment:1 by stoecker, 7 weeks ago

I'd vote for Java 11.

by gaben, 5 weeks ago

Attachment: 24941-1-java11.patch​ added

Java 11 bump plus cleanup, Maven _should be_ (fingers crossed) as good as Ant

comment:2 by gaben, 5 weeks ago

Keywords: java11 added
Summary: Compile JMapViewer as Java 11 target → [patch] Compile JMapViewer as Java 11 target

comment:3 by gaben, 5 weeks ago

Milestone: → 26.11

comment:4 by stoecker, 3 weeks ago

Milestone: 26.11 → 26.12

Milestone renamed

in reply to:  1 comment:5 by gaben, 2 weeks ago

Replying to stoecker:

I'd vote for Java 11.

When should we move past 11? Given how easy it was for the core, I'd go straight to Java 17.

PS: I found many bugs in JMapViewer too, and I'm already targeting Java 17 in my local branches, so it's extra work for me to make sure it compiles and works properly on Java 11.

comment:6 by stoecker, 2 weeks ago

As openSUSE packager I know the other side and it is really awful that some projects think using always the newest library is a good idea and the result is that I can't even compile a software on the recent non rolling-release. So the suggestion is to support as old as possible. From a developer side I know it's nice to have access to newer features.

My rule is that as long as possible support the oldest possible version. Don't spend too much time on checking the old version. In case you make an error regarding the release support and it is not detected and nobody complains then that's a good indicator nobody needs the old support. If somebody complains, it's a bug to fix which is another story compared to "we moved to new version".

So

  • if trouble for old support gets too hight: upgrade
  • if there have been errors nobody cared about: upgrade
  • otherwise support old, but don't spend too much effort
  • don't plan to make errors to speed up the process!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to gaben.
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 team 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.