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

Roman Shaposhnik updated BIGTOP-262:
------------------------------------

    Fix Version/s: 0.3.0
    
> Compilation Error in  project hadoop-smoke when using Eclipse
> -------------------------------------------------------------
>
>                 Key: BIGTOP-262
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-262
>             Project: Bigtop
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 0.2.0
>         Environment: RHEL 6.1, 64-bit
> Eclipse 3.7 SR1
>            Reporter: Will McQueen
>            Assignee: Will McQueen
>             Fix For: 0.3.0
>
>         Attachments: BIGTOP-262.patch
>
>
> static field declaration in TestTestCLI.groovy needs to be moved outside of 
> the static initialization block because it's causing compiler errors.
> Sample groovy code in Test.groovy:
> [will@will-laptop test]$ cat Test.groovy 
> class Test {
>   static {
>     private static int x = 5;
>   }
> }
> [will@will-laptop test]$ groovyc Test.groovy
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
> failed:
> Test.groovy: 3: Modifier 'private' not allowed here.
>  @ line 3, column 5.
>        private static int x = 5;
>        ^
> Test.groovy: 3: Modifier 'static' not allowed here.
>  @ line 3, column 5.
>        private static int x = 5;
>        ^

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to