laeubi commented on PR #463: URL: https://github.com/apache/felix-dev/pull/463#issuecomment-3777581193
> To clarify: while using `--target 8` is usually enough, to ensure the code actually works with JDK8 you have to _run_ it with an actual, true JDK8. And then it's helpful (but not really necessary) if you can also compile with it. I would expect people requiring this code to "really work" on JDK 8 are testing it. It does not sounds feasible to put extreme effort in an OSS project to compile / test on many JDKs without real benefit. e.g. if you are going that path, what is with JDK8 on windows? On mac? on AXI or whatever... What about 32 bit? So one can easily see that any "hard guarantees" can easily explode the necessary efforts. For what its worth here, I think if we compile + run with the latest LTS of java seems a valid choice, java was made with platform (and java version!) independence in mind so If we doubt that some code tested with a particular version suddenly fail on an other version I would say this is a bug that must be fixed at the JVM vendor. Anyways I don't want to hold anyone back to help making it easier to compile/test/run on a "true" JVM, I just wanted to point out that neither it is a requirement nor a prerequisite. We can make java 8 users happy with `-target 8` (as long as supported) and still not need to go down that rabbit hole and simply use a modern JDK. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
