JDK-8197445: Implementation of JEP 181: Nest-Based Access Control
The Java language supports this, allowing access to all private members nested within the same top-level class. The JVM does not, requiring less-secure compiler ...
The Java language supports this, allowing access to all private members nested within the same top-level class. The JVM does not, requiring less-secure compiler ...
I have now isolated the problem into a single piece of code for demonstration purposes. This is cut down from a larger piece of software which uses the Java Activation Framework (hence the use of InputStreams). I have attached the code, and two trivial HTML documents.
ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.0.6002]. A DESCRIPTION OF THE PROBLEM : In the following code snippet.ERROR MESSAGES/STACK TRACES THAT OCCUR : See "actual result".
Description. FULL PRODUCT VERSION : java version "1.7.0-ea" Java(TM) SE Runtime Environment (build 1.7.0-ea-b24) Java HotSpot(TM) Client VM (build 12.0-b01, mixed mode, sharing). ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.0.6000].
(filed against 1.2.1, but still exists -- with slightly more-informative error output -- under 1.2.2 RC1; thus, changed version # to 1.2.2 --kevin.ryan@eng). This bug only requires an HTML file to reproduce as the AppletViewer crashes before it tries to load the specified applet class.
fails with: Test.java:11: error: incompatible types: cannot infer type-variable(s) T,U.type-variable: CAP#1 extends String from capture of ? extends String 1 error. but if the lambda is implicit: e -> e.trim(), it compiles just fine.