False Positive on method match.
Issue #2073
resolved
If you have an internal class and a non static method in the outer class it will match and not indicate an error where if you save it will fail.
i.e.
public class TestClass {
public class InternalClass {
public void testMethod(){
outerMethod(); //should indicate error but doesn't.
}
}
private void outerMethod(){
}
}
Comments (4)
-
repo owner -
repo owner Fix committed for the next build.
-
reporter Thanks Scott - oh yeah I just typed it up directly in here as the example - forgot about the testMethod modifier.
-
repo owner - changed status to resolved
Delivered in 2.2.1.5.
- Log in to comment
Justin, one issue I see with that code is the use of
testMethod
as a method name since it's also a modifier keyword. Changing that toinnerMethod
, I do see the cited issue, though. Should be simple enough to address.