Remove over-specified lambda class assertions
The assertMultipleInstanceCharacteristics() method used by several
tests asserted that two lambdas with identical (or very similar)
definitions would have different implementation classes.
Jack now appears to de-dupe lambda classes. JLS 15.27.4 appears to
confirm there is no guarantee that two lambdas with (for example)
identical bodies will have different classes.
Various tests have been extended to make assertions about
multiple instances from the same lambda definition as well.
Test: vogar [--debug 8700] --classpath out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/classes.jack libcore.java.lang.LambdaImplementationTest
1 file changed