[jira] [Resolved] (GROOVY-5912) Static compilation: Groovy doesn't fail compilation when accessing package scope methods, but fails at runtime

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (GROOVY-5912) Static compilation: Groovy doesn't fail compilation when accessing package scope methods, but fails at runtime

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/GROOVY-5912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Sun resolved GROOVY-5912.
--------------------------------
       Resolution: Fixed
         Assignee: Daniel Sun
    Fix Version/s: 2.5.0-rc-3
                   3.0.0-alpha-3
                   2.6.0-alpha-4

Fixed by https://github.com/apache/groovy/commit/b1cc8a6ae14f15ad5a413f68fa946ecbeafe877e

> Static compilation: Groovy doesn't fail compilation when accessing package scope methods, but fails at runtime
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-5912
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5912
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static compilation
>    Affects Versions: 2.0.6
>            Reporter: Graeme Rocher
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 2.6.0-alpha-4, 3.0.0-alpha-3, 2.5.0-rc-3
>
>
> If you set a package scoped property from another package, this compiles but at runtime you get errors like:
> {code}
> tried to access method org.codehaus.groovy.grails.core.io.PluginPathAwareFileSystemResourceLoader.setSearchLocations(Ljava/util/Collection;)V from class org.codehaus.groovy.grails.project.loader.GrailsProjectLoader
> java.lang.IllegalAccessError: tried to access method org.codehaus.groovy.grails.core.io.PluginPathAwareFileSystemResourceLoader.setSearchLocations(Ljava/util/Collection;)V from class org.codehaus.groovy.grails.project.loader.GrailsProjectLoader
> {code}
> This should not happen and be a compilation error



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