[ 
https://issues.apache.org/jira/browse/GROOVY-11513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935787#comment-17935787
 ] 

ASF GitHub Bot commented on GROOVY-11513:
-----------------------------------------

eric-milles opened a new pull request, #2156:
URL: https://github.com/apache/groovy/pull/2156

   For your consideration.  Here are the types in `java.time` package:
   
   
![image](https://github.com/user-attachments/assets/c483ea98-ad59-43fd-8a95-632ee898a7d1)
   




> java.time.* should be imported automatically
> --------------------------------------------
>
>                 Key: GROOVY-11513
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11513
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Compiler
>    Affects Versions: 4.0.23
>            Reporter: Scott
>            Priority: Major
>
> if java.time is the recommended way to proceed forward when dealing with 
> dates,
> java.time.* should be included automatically similar to how java.util.Date is 
> currently available without import. 
> The preferred approach would be to make it a global import which would be in 
> line with existing Groovy handling of java.util.Date
>  
> The least invasive  approach would be to make the import only apply if 
> groovy-datetime module has been added.
>  
> implementation "org.apache.groovy:groovy-datetime"
>  
> should automatically import java.time.* to all classes
>  
> This provides an easier migration path from Date -> DateTIme
> [https://groovy.apache.org/blog/groovy-dates-and-times-cheat]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to