@@ -425,7 +425,7 @@ private[spark] class ReturnStatementInClosureException
425
425
extends SparkException (" Return statements aren't allowed in Spark closures" )
426
426
427
427
private class ReturnStatementFinder (targetMethodName : Option [String ] = None )
428
- extends ClassVisitor (ASM5 ) {
428
+ extends ClassVisitor (ASM6 ) {
429
429
override def visitMethod (access : Int , name : String , desc : String ,
430
430
sig : String , exceptions : Array [String ]): MethodVisitor = {
431
431
@@ -439,15 +439,15 @@ private class ReturnStatementFinder(targetMethodName: Option[String] = None)
439
439
val isTargetMethod = targetMethodName.isEmpty ||
440
440
name == targetMethodName.get || name == targetMethodName.get.stripSuffix(" $adapted" )
441
441
442
- new MethodVisitor (ASM5 ) {
442
+ new MethodVisitor (ASM6 ) {
443
443
override def visitTypeInsn (op : Int , tp : String ) {
444
444
if (op == NEW && tp.contains(" scala/runtime/NonLocalReturnControl" ) && isTargetMethod) {
445
445
throw new ReturnStatementInClosureException
446
446
}
447
447
}
448
448
}
449
449
} else {
450
- new MethodVisitor (ASM5 ) {}
450
+ new MethodVisitor (ASM6 ) {}
451
451
}
452
452
}
453
453
}
@@ -471,7 +471,7 @@ private[util] class FieldAccessFinder(
471
471
findTransitively : Boolean ,
472
472
specificMethod : Option [MethodIdentifier [_]] = None ,
473
473
visitedMethods : Set [MethodIdentifier [_]] = Set .empty)
474
- extends ClassVisitor (ASM5 ) {
474
+ extends ClassVisitor (ASM6 ) {
475
475
476
476
override def visitMethod (
477
477
access : Int ,
@@ -486,7 +486,7 @@ private[util] class FieldAccessFinder(
486
486
return null
487
487
}
488
488
489
- new MethodVisitor (ASM5 ) {
489
+ new MethodVisitor (ASM6 ) {
490
490
override def visitFieldInsn (op : Int , owner : String , name : String , desc : String ) {
491
491
if (op == GETFIELD ) {
492
492
for (cl <- fields.keys if cl.getName == owner.replace('/' , '.' )) {
@@ -526,7 +526,7 @@ private[util] class FieldAccessFinder(
526
526
}
527
527
}
528
528
529
- private class InnerClosureFinder (output : Set [Class [_]]) extends ClassVisitor (ASM5 ) {
529
+ private class InnerClosureFinder (output : Set [Class [_]]) extends ClassVisitor (ASM6 ) {
530
530
var myName : String = null
531
531
532
532
// TODO: Recursively find inner closures that we indirectly reference, e.g.
@@ -541,7 +541,7 @@ private class InnerClosureFinder(output: Set[Class[_]]) extends ClassVisitor(ASM
541
541
542
542
override def visitMethod (access : Int , name : String , desc : String ,
543
543
sig : String , exceptions : Array [String ]): MethodVisitor = {
544
- new MethodVisitor (ASM5 ) {
544
+ new MethodVisitor (ASM6 ) {
545
545
override def visitMethodInsn (
546
546
op : Int , owner : String , name : String , desc : String , itf : Boolean ) {
547
547
val argTypes = Type .getArgumentTypes(desc)
0 commit comments