Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Detecting breakage when upcasting  #69

@lmove

Description

@lmove

In the API, we have class B that extends class A. Class A contains the method m(). In the client code, we have class C with method n(). In n(), we declare a variable of type A and we use B's constructor. Then we invoke method m().

public class C {
   public void n() {
      A obj = new B();
      obj.m();
   }
}

If B stops inheriting from A we get a compilation and linking error. We should detect these cases.

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