@@ -289,10 +289,7 @@ object Types {
289289 final def isAlias : Boolean = this .isInstanceOf [TypeAlias ]
290290
291291 /** Is this a MethodType which is from Java */
292- final def isJavaMethod : Boolean = this match {
293- case mt : MethodType => mt.isJava
294- case _ => false
295- }
292+ def isJavaMethod : Boolean = false
296293
297294 /** Is this a MethodType which has implicit parameters */
298295 final def isImplicitMethod : Boolean = this match {
@@ -1329,7 +1326,7 @@ object Types {
13291326 case mt : MethodType if ! mt.isDependent || ctx.mode.is(Mode .AllowDependentFunctions ) =>
13301327 val formals1 = if (dropLast == 0 ) mt.paramInfos else mt.paramInfos dropRight dropLast
13311328 defn.FunctionOf (
1332- formals1 mapConserve (_.underlyingIfRepeated(mt.isJava )), mt.resultType, mt.isImplicit && ! ctx.erasedTypes)
1329+ formals1 mapConserve (_.underlyingIfRepeated(mt.isJavaMethod )), mt.resultType, mt.isImplicit && ! ctx.erasedTypes)
13331330 }
13341331
13351332 /** The signature of this type. This is by default NotAMethod,
@@ -2708,15 +2705,15 @@ object Types {
27082705 def kind : MethodKind
27092706 final def companion : MethodTypeCompanion = MethodType .withKind(kind)
27102707
2711- final def isJava : Boolean = kind is JavaKind
2708+ final override def isJavaMethod : Boolean = kind is JavaKind
27122709 final def isImplicit : Boolean = kind is ImplicitKind
27132710
27142711 val paramInfos = paramInfosExp(this )
27152712 val resType = resultTypeExp(this )
27162713 assert(resType.exists)
27172714
27182715 override def computeSignature (implicit ctx : Context ): Signature =
2719- resultSignature.prepend(paramInfos, isJava )
2716+ resultSignature.prepend(paramInfos, isJavaMethod )
27202717
27212718 protected def prefixString = " MethodType"
27222719 }
0 commit comments