@@ -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,
@@ -2697,15 +2694,15 @@ object Types {
26972694 def kind : MethodKind
26982695 final def companion : MethodTypeCompanion = MethodType .withKind(kind)
26992696
2700- final def isJava : Boolean = kind is JavaKind
2697+ final override def isJavaMethod : Boolean = kind is JavaKind
27012698 final def isImplicit : Boolean = kind is ImplicitKind
27022699
27032700 val paramInfos = paramInfosExp(this )
27042701 val resType = resultTypeExp(this )
27052702 assert(resType.exists)
27062703
27072704 def computeSignature (implicit ctx : Context ): Signature =
2708- resultSignature.prepend(paramInfos, isJava )
2705+ resultSignature.prepend(paramInfos, isJavaMethod )
27092706
27102707 protected def prefixString = " MethodType"
27112708 }
0 commit comments