Github user jwagenleitner commented on a diff in the pull request: https://github.com/apache/groovy/pull/397#discussion_r76368032 --- Diff: src/main/org/codehaus/groovy/control/ResolveVisitor.java --- @@ -852,6 +858,21 @@ protected Expression transformPropertyExpression(PropertyExpression pe) { return ret; } + private boolean isVisibleNestedClass(ClassNode type, ClassNode ceType) { + if (!type.isRedirectNode()) return false; + ClassNode redirect = type.redirect(); + // public or private + if (Modifier.isPublic(redirect.getModifiers()) || Modifier.isProtected(redirect.getModifiers())) return true; --- End diff -- The comment is misleading (private -> protected), but the code reads very good so maybe no comment needed.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---