In Water (.2521) when Delphi Compatibility is enabled, CC shows private static members/methods outside of their accessible scope.
Here’s a sample project. When Delphi Compatibility is enabled, CC from MainActivity
lists InvisibilityCloak.secretName
and InvisibilityCloak.getSecretName
although both are private. The compiler works correctly and throws an “inaccessible member” error - it’s just a CC bug.
(Possibly related to 84234: Delphi Compatibility: use “public” as default visibility like Delphi does
? I didn’t notice whether or not this happened before that Compat change was made.)
com.invisibilitycloak.zip (210.5 KB)