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