incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will McQueen (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BIGTOP-262) Compilation Error in project hadoop-smoke when using Eclipse
Date Wed, 16 Nov 2011 21:13:51 GMT

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

Will McQueen updated BIGTOP-262:
--------------------------------

    Attachment: BIGTOP-262.patch
    
> 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
>         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

        

Mime
View raw message