daniellansun opened a new pull request, #3227:
URL: https://github.com/apache/groovy/pull/3227

   https://issues.apache.org/jira/browse/GROOVY-11916
   
   Star imports, `import module`, and the implicit default imports resolve only 
types accessible from the importing class. `import java.util.*` no longer binds 
package-private `java.util.TimSort`; a type use of that simple name fails at 
compile time.
   
   Same-package package-private types, protected member types used from a 
subclass, and private member types used from the enclosing nest stay visible. 
An explicit single-type import and a fully-qualified name still resolve, and 
`Class.forName` is unchanged. Static field imports have required accessibility 
since Groovy 5 and are not changed here.
   
   ### Testing
   - `bugs.Groovy11916`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to