You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Notifications
You must be signed in to change notification settings
I ran into a problem with building BigVolumeViewer with JDK 11 (and Maven).
This can be traced back to the
maven-compiler-plugin
configuringjavac
with--release 8
.The problem is that
--release 8
works slightly different that the old-style-source 1.8 -target 1.8
.See https://bugs.openjdk.org/browse/JDK-8214165, https://bugs.openjdk.org/browse/JDK-8206937, https://mail.openjdk.org/pipermail/compiler-dev/2018-January/011583.html.
The spec for
--release N
is to provide access to the public documented API forJDK N
. Thesun.misc
package is not public documented API.Ironically, if we were targeting Java 11, there would be no problem.
--release 11
would work, because there is thejdk.unsupported
module ...Anyway... I think this can be traced to
pom-scijava-base/pom.xml
Lines 2107 to 2125 in 8920b4f
where the
<maven.compiler.release>
property is set.The only way I found to fix that in BigVolumeViewer's pom.xml is bigdataviewer/bigvolumeviewer-core@ffaf291
https://github.com/bigdataviewer/bigvolumeviewer-core/blob/ffaf291987da4ea3e4ca9796a700b43c5209c8be/pom.xml#L83-L95
It would be nicer to address this higher up, but I don't know how pom-scijava-base should be changed exactly, and what side effects would be.
The text was updated successfully, but these errors were encountered: