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
As discussed here this is a mistake. The embedded JDK is intended to be used as a --server_javabase and (for the time being) a --host_javabse, but when doing Java development and targeting a particular JDK version we should expect there to be a local JDK install instead of falling back to the embedded JDK.
This issue contributed to the breakages in 0.16x, because users had been relying on the embedded JDK as a --javabase when developing code that wasn't compatible with JDK 9, and were broken when the embedded JDK version was upgraded to JDK 9.
It's a blocker for upgrading the embedded JDK version, and we need a newer JDK and javac to support building Java 11, which is being released in two weeks. I think we should try to avoid pushing Java 11 support back an additional month.
If I understand correctly, there will be a new baseline?
Yes. the new baseline is c062b1f which includes c6eef5d. So the changes so far are included; if you change anything more (like hiding the fix behind a flag), please ping the release bug explicitly, so that any needed cherry-picks can be included.
Activity
Never use @embedded_jdk for --javabase
cushon commentedon Sep 10, 2018
We should try to fix this in 0.18: #5963
Never use @embedded_jdk for --javabase
lberki commentedon Sep 11, 2018
Is there an urgency? Sure, we should fix this ASAP, but does it do harm if the change ends up in 0.19 instead?
cushon commentedon Sep 11, 2018
It's a blocker for upgrading the embedded JDK version, and we need a newer JDK and javac to support building Java 11, which is being released in two weeks. I think we should try to avoid pushing Java 11 support back an additional month.
lberki commentedon Sep 11, 2018
@aehlig (manager of 0.18) FYI. If I understand correctly, there will be a new baseline?
buchgr commentedon Sep 11, 2018
FYI: Since this is a incompatible change it needs to be hidden behind a
--incompatible_flag.lberki commentedon Sep 11, 2018
It is :)
aehlig commentedon Sep 11, 2018
@lberki
Yes. the new baseline is c062b1f which includes c6eef5d. So the changes so far are included; if you change anything more (like hiding the fix behind a flag), please ping the release bug explicitly, so that any needed cherry-picks can be included.
cushon commentedon Sep 11, 2018
Great, thanks!
I'm a little confused by this exchange: to be clear, "the fix" is c6eef5d, and it is hidden behind
--incompatible_never_use_embedded_jdk_for_javabase.That change by itself is a no-op, the reason I'm eager to get it into a release is so we can change the default behaviour is the next release.
Do not default to the embedded javabase when no other JDK is found.