[ 
http://jira.codehaus.org/browse/MGROOVY-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130225#action_130225
 ] 

Andreas Heydler commented on MGROOVY-128:
-----------------------------------------

As per comment for other issue, its whatever is available from svn for gmaven.

Will update again after you have had a chance to finish moving everything... I 
didn't realise this was happening.

As a comment to the above, the final is not so much an issue in this context 
but the missing static is.

Also, should it be necessary to explicitely mark the fields as public? I am a 
bit hazy on my groovy but I was under the impression that by default members 
were public if not qualified in any other way.

Andreas


> static member variables not correctly handled by stub generator
> ---------------------------------------------------------------
>
>                 Key: MGROOVY-128
>                 URL: http://jira.codehaus.org/browse/MGROOVY-128
>             Project: Maven 2.x Groovy Integration
>          Issue Type: Bug
>          Components: stub generation
>    Affects Versions: 1.0-beta-4
>            Reporter: Andreas Heydler
>            Assignee: Jason Dillon
>
> The following groovy
> {code}
> class MainModel extends Model implements ExitListener {
>    public static final String ACTION_PRINT               = 'print',
>                               ACTION_OPEN_PRINT_DIALOG   = 'openPrintDialog',
>                               ACTION_OPEN_PREFERENCES    = 'openPreferences',
>                               ACTION_EXIT                = 'exit',
>                               ACTION_OPEN_TIP_OF_THE_DAY = 'openTipOfTheDay',
>                               ACTION_OPEN_HELP_CONTENTS  = 'openHelpContents',
>                               ACTION_OPEN_ABOUT_DIALOG   = 'openAboutDialog'
>    public static final String MONTH    = 'month',
>                               OPERATOR = 'operator',
>                               TOTALS   = 'totals'
> }
> {code}
> produces this (the static modifier is missing)
> {code}
> /**
>  * @source-type GROOVY
>  */
> public class MainModel extends Model implements ExitListener {
>       public String ACTION_PRINT = null;
>       public String ACTION_OPEN_PRINT_DIALOG = null;
>       public String ACTION_OPEN_PREFERENCES = null;
>       public String ACTION_EXIT = null;
>       public String ACTION_OPEN_TIP_OF_THE_DAY = null;
>       public String ACTION_OPEN_HELP_CONTENTS = null;
>       public String ACTION_OPEN_ABOUT_DIALOG = null;
>       public String MONTH = null;
>       public String OPERATOR = null;
>       public String TOTALS = null;
> }
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to