@@ -241,7 +241,6 @@ abstract class GenASM extends SubComponent with BytecodeWriters { self =>
241
241
242
242
private def mkFlags (args : Int * ) = args.foldLeft(0 )(_ | _)
243
243
private def hasPublicBitSet (flags : Int ) = (flags & asm.Opcodes .ACC_PUBLIC ) != 0
244
- private def isRemote (s : Symbol ) = s hasAnnotation RemoteAttr
245
244
246
245
/**
247
246
* Return the Java modifiers for the given symbol.
@@ -1032,7 +1031,7 @@ abstract class GenASM extends SubComponent with BytecodeWriters { self =>
1032
1031
* a method with the same name is defined both in a class and its companion object:
1033
1032
* method signature is not taken into account.
1034
1033
*/
1035
- def addForwarders (isRemoteClass : Boolean , jclass : asm.ClassVisitor , jclassName : String , moduleClass : Symbol ) {
1034
+ def addForwarders (jclass : asm.ClassVisitor , jclassName : String , moduleClass : Symbol ) {
1036
1035
assert(moduleClass.isModuleClass, moduleClass)
1037
1036
debuglog(" Dumping mirror class for object: " + moduleClass)
1038
1037
@@ -1051,7 +1050,7 @@ abstract class GenASM extends SubComponent with BytecodeWriters { self =>
1051
1050
log(s " No forwarder for non-public member $m" )
1052
1051
else {
1053
1052
debuglog(s " Adding static forwarder for ' $m' from $jclassName to ' $moduleClass' " )
1054
- addForwarder(isRemoteClass, jclass, moduleClass, m)
1053
+ addForwarder(jclass, moduleClass, m)
1055
1054
}
1056
1055
}
1057
1056
}
@@ -1190,16 +1189,9 @@ abstract class GenASM extends SubComponent with BytecodeWriters { self =>
1190
1189
def serialVUID : Option [Long ] = clasz.symbol.serialVUID
1191
1190
1192
1191
private def getSuperInterfaces (c : IClass ): Array [String ] = {
1193
-
1194
- // Additional interface parents based on annotations and other cues
1195
- def newParentForAttr (ann : AnnotationInfo ): Symbol = ann.symbol match {
1196
- case RemoteAttr => RemoteInterfaceClass
1197
- case _ => NoSymbol
1198
- }
1199
-
1200
1192
val ps = c.symbol.info.parents
1201
1193
val superInterfaces0 : List [Symbol ] = if (ps.isEmpty) Nil else c.symbol.mixinClasses
1202
- val superInterfaces = existingSymbols(superInterfaces0 ++ c.symbol.annotations.map(newParentForAttr) ).distinct
1194
+ val superInterfaces = existingSymbols(superInterfaces0).distinct
1203
1195
1204
1196
if (superInterfaces.isEmpty) EMPTY_STRING_ARRAY
1205
1197
else mkArray(erasure.minimizeInterfaces(superInterfaces.map(_.info)).map(t => javaName(t.typeSymbol)))
@@ -1281,7 +1273,7 @@ abstract class GenASM extends SubComponent with BytecodeWriters { self =>
1281
1273
}
1282
1274
if (isCandidateForForwarders) {
1283
1275
log(" Adding static forwarders from '%s' to implementations in '%s'" .format(c.symbol, lmoc))
1284
- addForwarders(isRemote(clasz.symbol) , jclass, thisName, lmoc.moduleClass)
1276
+ addForwarders(false , jclass, thisName, lmoc.moduleClass)
1285
1277
}
1286
1278
}
1287
1279
}
@@ -1372,7 +1364,6 @@ abstract class GenASM extends SubComponent with BytecodeWriters { self =>
1372
1364
1373
1365
// TODO needed? for(ann <- m.symbol.annotations) { ann.symbol.initialize }
1374
1366
val jgensig = getGenericSignature(m.symbol, clasz.symbol)
1375
- addRemoteExceptionAnnot(isRemote(clasz.symbol), hasPublicBitSet(flags), m.symbol)
1376
1367
val (excs, others) = m.symbol.annotations partition (_.symbol == ThrowsClass )
1377
1368
val thrownExceptions : List [String ] = getExceptions(excs)
1378
1369
@@ -2793,7 +2784,7 @@ abstract class GenASM extends SubComponent with BytecodeWriters { self =>
2793
2784
// typestate: entering mode with valid call sequences:
2794
2785
// ( visitInnerClass | visitField | visitMethod )* visitEnd
2795
2786
2796
- addForwarders(isRemote(modsym) , mirrorClass, mirrorName, modsym)
2787
+ addForwarders(false , mirrorClass, mirrorName, modsym)
2797
2788
2798
2789
addInnerClasses(modsym, mirrorClass)
2799
2790
mirrorClass.visitEnd()
0 commit comments