jdk-24/langtools/test/tools
Robert Field c51505263f 8012556: Implement lambda methods on interfaces as static
8006140: Javac NPE compiling Lambda expression on initialization expression of static field in interface

Lambdas occurring in static contexts or those not needing instance information should be generated into static methods.  This has long been the case for classes.  However, as a work-around to the lack of support for statics on interfaces, interface lambda methods have been generated into default methods.  For lambdas in interface static contexts (fields and static methods) this causes an NPE in javac because there is no 'this'.  MethodHandles now support static methods on interfaces.  This changeset allows lambda methods to be generated as static interface methods.  An existing bug in Hotspot (8013875) is exposed in a test when the "-esa" flag is used.  This test and another test that already exposed this bug have been marked with @ignore.

Reviewed-by: mcimadamore
2013-05-14 11:11:09 -07:00
..
apt/Basics 8006212: javac, convert jtreg tests from shell script to java 2013-02-19 17:53:16 +00:00
doclint 8010317: DocLint incorrectly reports some <pre> tags as empty 2013-03-19 19:16:59 -07:00
javac 8012556: Implement lambda methods on interfaces as static 2013-05-14 11:11:09 -07:00
javadoc 8006346: doclint should make allowance for headers generated by standard doclet 2013-03-28 10:49:39 -07:00
javah 8008582: jtreg failures after conversion of shell tests to Java 2013-03-14 08:30:16 +00:00
javap 8012728: Normalize @ignore comments on langtools tests 2013-05-03 09:56:56 -07:00
jdeps 8005428: Update jdeps to read the same profile information as by javac 2013-03-14 10:33:31 -07:00
sjavac 8006723: sjavac test fails to compile on clean build 2013-01-22 18:43:22 -08:00