You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Jochen Theodorou (JIRA)" <ji...@apache.org> on 2018/06/16 20:22:00 UTC

[jira] [Commented] (GROOVY-8647) Split package renaming

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

Jochen Theodorou commented on GROOVY-8647:
------------------------------------------

hmm

groovy-test:
rename groovy.transform.NotYetImplemented to groovy.test.transform.NotYetImplemented
rename groovy.util to groovy.test.util
rename org.codehaus.groovy to org.apache.groovy.test
rename groovy.lang to groovy.test.util

why not instead

groovy-test:
rename groovy.transform.NotYetImplemented to groovy.test.NotYetImplemented
rename groovy.util to groovy.test
rename org.codehaus.groovy to org.apache.groovy.test
rename groovy.lang to groovy.test

the rename suggested (and also this one) will mean that autoresolved classes will no longer be found and an import is required for them then. But I don't see why you should require more than one star import to fix things

> Split package renaming
> ----------------------
>
>                 Key: GROOVY-8647
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8647
>             Project: Groovy
>          Issue Type: Task
>            Reporter: Paul King
>            Priority: Major
>
> This is the list of changes which need to be made to avoid split packages. As a separate issue, we should outline what compiler (or other) changes might be made that would allow (some of) these changes to occur without breaking source compatibility. Possibilities include:
> * a separate tool to add/change imports
> * some mechanism to define additional default imports per module
> * automatic renaming by the compiler from old to new package names (enabled by a switch)
> * add deprecated delegates for existing classes which point to the new versions
> groovy:
> rename groovy.xml.QName to groovy.lang.QName
> groovy-ant:
> rename groovy.util to groovy.ant.util
> groovy-console:
> rename groovy.inspect to groovy.console
> rename groovy.inspect.swingui to groovy.console.ui
> rename groovy.ui groovy.console.ui
> groovy-groovysh:
> rename org.codehaus.groovy.tools.shell to org.codehaus.groovy.groovysh.tools
> groovy-nio:
> move org.codehaus.groovy.runtime.WritablePath to org.apache.groovy.nio.runtime
> rename org.codehaus.groovy.runtime.NioGroovyMethods to org.apache.groovy.nio.extensions.NioExtensions
> groovy-swing:
> rename org.codehaus.groovy.binding to org.apache.groovy.swing.binding
> rename org.codehaus.groovy.runtime to org.apache.groovy.swing.extensions
> rename groovy.model to groovy.swing.model
> rename groovy.inspect.swingui to org.apache.groovy.swing.table
> groovy-test:
> rename groovy.transform.NotYetImplemented to groovy.test.transform.NotYetImplemented
> rename groovy.util to groovy.test.util
> rename org.codehaus.groovy to org.apache.groovy.test
> rename groovy.lang to groovy.test.util
> groovy-xml:
> rename groovy.util to groovy.xml
> rename org.codehaus.groovy.runtime to org.apache.groovy.xml.extensions



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)