Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 9+: WARNING: Illegal reflective access by sbt.internal.inc.javac.DiagnosticsReporter$PositionImpl$ #664

Closed
mkurz opened this issue May 3, 2019 · 1 comment · Fixed by #675
Labels
area/jdk_x jdk 9/10/11
Milestone

Comments

@mkurz
Copy link
Member

mkurz commented May 3, 2019

Environment:

$ java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic

$ uname -a
Linux 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

How to reproduce:

$ sbt new playframework/play-java-seed.g8
...
name [play-java-seed]: <enter>
organization [com.example]: <enter>
...
$ cd play-java-seed/
play-java-seed$ echo "sbt.version=1.3.0-M3" > project/build.properties
play-java-seed$ sbt
[play-java-seed] $ compile

You should see following warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by sbt.internal.inc.javac.DiagnosticsReporter$PositionImpl$ (file:/home/mkurz/.sbt/boot/scala-2.12.8/org.scala-sbt/sbt/1.3.0-M3/zinc-compile-core_2.12-1.3.0-M4.jar) to field com.sun.tools.javac.api.ClientCodeWrapper$DiagnosticSourceUnwrapper.d
WARNING: Please consider reporting this to the maintainers of sbt.internal.inc.javac.DiagnosticsReporter$PositionImpl$
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
@smarter smarter changed the title sbt 1.3.0-M3 - WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by sbt.internal.inc.javac.DiagnosticsReporter$PositionImpl$ May 3, 2019
@smarter smarter changed the title WARNING: Illegal reflective access by sbt.internal.inc.javac.DiagnosticsReporter$PositionImpl$ Java 9+: WARNING: Illegal reflective access by sbt.internal.inc.javac.DiagnosticsReporter$PositionImpl$ May 3, 2019
@smarter smarter added the area/jdk_x jdk 9/10/11 label May 3, 2019
@eed3si9n eed3si9n added this to the 1.3.0 milestone May 5, 2019
@eed3si9n
Copy link
Member

eed3si9n commented May 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/jdk_x jdk 9/10/11
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants