This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Report classNoLongerPublic and classLessAccessible contained cases #50
Labels
enhancement
New feature or request
Comments
Report all cases where fields or methods contained in the modified class are accessed or invoked. There might be cases where the compiler won't report these issues. For example, let's say we have the API type public class A {
public int f;
public int m() {
return 2;
}
} And we have a client class public class C {
private A a;
public C() {
a = new A();
}
public void useField() {
int x = a.f;
int y = a.m();
}
public void useVar() {
A aVar = new A();
int x = aVar.f;
int y = aVar.m();
}
} In Eclipse, if the modifier of Even when we don't get all specified errors we must detect them in Maracas. |
lmove
added
enhancement
New feature or request
and removed
question
Further information is requested
labels
Oct 2, 2019
lmove
changed the title
Report classNoLongerPublic and classLessAccessible contained cases?
Report classNoLongerPublic and classLessAccessible contained cases
Oct 11, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do we need to report cases where fields access or method invocations are forbidden due to a classNoLongerPublic or classLessAccessible change?
Currently, the only contained case that is being reported corresponds to constructorLessAccessible.
The text was updated successfully, but these errors were encountered: