GROOVY-6647: add access check for constructor call