You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Will McQueen (Updated) (JIRA)" <ji...@apache.org> on 2011/11/16 22:13:51 UTC
[jira] [Updated] (BIGTOP-262) Compilation Error in project
hadoop-smoke when using Eclipse
[ 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