You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Alexander Udalov (JIRA)" <ji...@apache.org> on 2018/10/29 17:31:13 UTC
[jira] [Commented] (GROOVY-6532) Compiler doesn't compile static
inner class on usage
[ https://issues.apache.org/jira/browse/GROOVY-6532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16667491#comment-16667491 ]
Alexander Udalov commented on GROOVY-6532:
------------------------------------------
This is no longer reproducible on Groovy 2.5.2
> Compiler doesn't compile static inner class on usage
> ----------------------------------------------------
>
> Key: GROOVY-6532
> URL: https://issues.apache.org/jira/browse/GROOVY-6532
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 2.2.1
> Environment: Win7
> Reporter: Gert Grossmann
> Priority: Major
>
> {code:title=MyPackage/ClassA.groovy}
> // file MyPackage/ClassA.groovy
> package MyPackage;
> public class ClassA
> {
> public static class InnerClass {};
> }
> {code}
> {code:title=MyPackage/ClassB.groovy}
> // file MyPackage/ClassB.groovy
> package MyPackage;
> public class ClassB
> {
> void myMethod( ClassA.InnerClass para ) {};
> }
> {code}
> {{groovyc -d target -cp . .\MyPackage\ClassB.groovy}}
> doesn't compile ClassA and returns a compile error:
> {quote}
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
> .\MyPackage\ClassB.groovy: 5: unable to resolve class ClassA.InnerClass
> @ line 5, column 20.
> void myMethod( ClassA.InnerClass para ) {};
> ^
> 1 error
> {quote}
> Regards, Gert
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)