apache / apache/openwhisk-runtime-java

JarLoader breaks strong encapsulation of JDK classes

オープン
#10 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
47
フォーク
58
PR マージ指標
30日以内にマージされた PR はありません

説明

`JarLoader#augmentEnv` performs illegal access on core JDK classes by breaking accessibility rules. This breaks the strong encapsulation rules outlined in [JEP 261](http://openjdk.java.net/jeps/261). Starting with Java 9 this will print a warning by default on the command line (and possibly have a performance and runtime impact). At some yet to be defined point in the future this will throw an exception by default. At some later yet to be defined point in the future this will always throw an exception.

I don't see an alternative to entirely moving away from modifying environment variables. They are readonly in Java. Modifying them is a hack that makes testing hard and multi threading impossible.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。