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

Deal with inner classes access modification #63

Open
lmove opened this issue Jul 2, 2020 · 0 comments
Open

Deal with inner classes access modification #63

lmove opened this issue Jul 2, 2020 · 0 comments

Comments

@lmove
Copy link
Contributor

lmove commented Jul 2, 2020

When an inner class decreases its visibility (e.g. protected to private), Maracas does not report type dependency cases where the class is used through a child class.

public class C extends A {

    public void instantiatePro2Priv() {
        AInner c = new CInner();
    }

    public class CInner extends AInner {
    ...
    }        

In the previous code, we get no detection related to method instantiatePro2Priv() when AInner changes from protected to private.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant