Perhaps another alternative could be introducing a @Scope annotation to apply the scoping behavior used by @PackageScope. Eg @Scope(Modifier.PRIVATE) or @Scope(value=PRIVATE, target=[CLASSES]).
I suppose the "package" keyword doesn't indicate the full "package private" but I don't think that's necessary. My original point remains that using an annotation to declare scope is awkward and cumbersome. -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html