Skip to content

False positive related to static forwarders #433

Open

Description

@jrudolph

We were seeing a similar issue as #388 in akka/akka-core#28294. When we added overloads to methods that got extra forwarders generated in previous versions compiled with a previous Scala 2.12 version, these were flagged by mima as incompatibilities:

Akka 2.5.17:

λ javap -classpath ~/.ivy2/cache/com.typesafe.akka/akka-actor_2.12/jars/akka-actor_2.12-2.5.17.jar akka.actor.CoordinatedShutdown|grep get
  public static akka.actor.CoordinatedShutdown get(akka.actor.ActorSystem);
  public static akka.actor.Extension get(akka.actor.ActorSystem);

Akka 2.5.19:

λ javap -classpath ~/.ivy2/cache/com.typesafe.akka/akka-actor_2.12/jars/akka-actor_2.12-2.5.19.jar akka.actor.CoordinatedShutdown|grep get
  public static akka.actor.CoordinatedShutdown get(akka.actor.ActorSystem);

Now we actually added another overload and got this:

λ javap -classpath akka-actor/target-java-1.8.0_232/scala-2.12/classes/  akka.actor.CoordinatedShutdown|grep get
  public static akka.actor.CoordinatedShutdown get(akka.actor.ClassicActorSystemProvider);
  public static akka.actor.CoordinatedShutdown get(akka.actor.ActorSystem);

and this mima error (against the 2.5.17 version) which doesn't make much sense:

[error]  * static method get(akka.actor.ActorSystem)akka.actor.Extension in class akka.actor.CoordinatedShutdown has a different result type in current version, where it is akka.actor.CoordinatedShutdown rather than akka.actor.Extension

Activity

  1. changed the title [-]False positive related to static forwards[/-] [+]False positive related to static forwarders[/+] on Jan 31, 2020
  2. SethTisue commented on Aug 2, 2022

    @SethTisue
    Collaborator

    is this just a duplicate of #388?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions