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)
Change History (7)
follow-up: 5 comment:1 by , 7 weeks ago
by , 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 , 5 weeks ago
| Keywords: | java11 added |
|---|---|
| Summary: | Compile JMapViewer as Java 11 target → [patch] Compile JMapViewer as Java 11 target |
comment:3 by , 5 weeks ago
| Milestone: | → 26.11 |
|---|
comment:5 by , 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 , 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!



I'd vote for Java 11.