Open edalex-ian opened 3 years ago
I've also just noticed in com.tle.core.application.impl.PluginServiceImpl
there is use of Reflection.getCallerClass(depth)
which is deprecated in Java 8 and slated for removal in 9. Probably need to go and find others like this and get a list together.
Is your feature request related to a problem? Please describe.
The codebase is currently targetted to be build with JDK 8, where as JDK 11 has now been the latest LTS for awhile - further the next LTS (JDK 17) is due this year (2021).
Describe the solution you'd like
Fix the current issues with the SBT build which is blocking this. (In theory the code would not yet have to be changed, as this ticket does not yet suggest also increasing the target version to 11 - another ticket should capture that.)
Describe alternatives you've considered
Just upgrading to 9 or 10 - however they're already obsolete.
Additional context
Here is a quick attempt with no effort to address anything.
At git commit:
With java version:
Results in (using the SBT wrapper script in project root):
This obviously looks like a fairly simple issue, but it's just a question of how many of these follow.
NOTE: Those dependency warnings are not new or related to this.