@@ -102,12 +102,10 @@ class BackendUtils(val postProcessor: PostProcessor) {
102
102
// stack map frames and invokes the `getCommonSuperClass` method. This method expects all
103
103
// ClassBTypes mentioned in the source code to exist in the map.
104
104
105
- val serlamObjDesc = MethodBType (jliSerializedLambdaRef :: Nil , ObjectRef ).descriptor
106
-
107
- val mv = cw.visitMethod(ACC_PRIVATE + ACC_STATIC + ACC_SYNTHETIC , " $deserializeLambda$" , serlamObjDesc, null , null )
105
+ val mv = cw.visitMethod(ACC_PRIVATE + ACC_STATIC + ACC_SYNTHETIC , " $deserializeLambda$" , serializedLamdaObjDesc, null , null )
108
106
def emitLambdaDeserializeIndy (targetMethods : Seq [Handle ]): Unit = {
109
107
mv.visitVarInsn(ALOAD , 0 )
110
- mv.visitInvokeDynamicInsn(" lambdaDeserialize" , serlamObjDesc , jliLambdaDeserializeBootstrapHandle, targetMethods : _* )
108
+ mv.visitInvokeDynamicInsn(" lambdaDeserialize" , serializedLamdaObjDesc , jliLambdaDeserializeBootstrapHandle, targetMethods : _* )
111
109
}
112
110
113
111
val targetMethodGroupLimit = 255 - 1 - 3 // JVM limit. See See MAX_MH_ARITY in CallSite.java
@@ -132,6 +130,11 @@ class BackendUtils(val postProcessor: PostProcessor) {
132
130
mv.visitInsn(ARETURN )
133
131
}
134
132
133
+ private lazy val serializedLamdaObjDesc = {
134
+ import coreBTypes .{ObjectRef , jliSerializedLambdaRef }
135
+ MethodBType (jliSerializedLambdaRef :: Nil , ObjectRef ).descriptor
136
+ }
137
+
135
138
/**
136
139
* Visit the class node and collect all referenced nested classes.
137
140
*/
0 commit comments