Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Consider the following:
package p abstract class A { private priv @PackageScope pack }
@TypeChecked void test(p.A a) { a.@priv // MissingFieldException a.@pack // MissingFieldException a.priv // MissingPropertyException a.pack // MissingPropertyException }
Access to "priv" and "pack" outside of A will always fail, since a subclass instance is required.