I'm using Groovy's static type checking to enforce protection of my application from its configuration scripts.
Is it normal that the script can still access private fields, even with static type checking enabled?
Debugging in the code, I see that the access ends up in StaticTypeCheckingVisitor.hasAccessToMember where receiver and accessor are both set to the destination class but I would have expected that accessor is the script class...