changeset 11025:3a9cc17978a8

8073644: Assertion in LambdaFormEditor.bindArgumentType is too strict Reviewed-by: psandoz
author vlivanov
date Tue, 01 Sep 2015 21:44:07 +0200
parents 89fd84bf0019
children a28a680b1288
files src/share/classes/java/lang/invoke/LambdaFormEditor.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/invoke/LambdaFormEditor.java	Fri Sep 05 12:18:31 2014 +0100
+++ b/src/share/classes/java/lang/invoke/LambdaFormEditor.java	Tue Sep 01 21:44:07 2015 +0200
@@ -436,7 +436,7 @@
     }
 
     private MethodType bindArgumentType(BoundMethodHandle mh, int pos, BasicType bt) {
-        assert(mh.form == lambdaForm);
+        assert(mh.form.uncustomize() == lambdaForm);
         assert(mh.form.names[1+pos].type == bt);
         assert(BasicType.basicType(mh.type().parameterType(pos)) == bt);
         return mh.type().dropParameterTypes(pos, pos+1);