[ 
http://jira.codehaus.org/browse/MGROOVY-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Dillon closed MGROOVY-167.
--------------------------------

    Resolution: Fixed

> transient modifier is not handled correctly when generating stubs
> -----------------------------------------------------------------
>
>                 Key: MGROOVY-167
>                 URL: http://jira.codehaus.org/browse/MGROOVY-167
>             Project: GMaven
>          Issue Type: Bug
>          Components: stub generation
>    Affects Versions: 1.0-rc-3
>         Environment: Suse linux, Maven 2.0.8, Groovy Version: 1.5.4 JVM: 
> 10.0-b19, Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
>            Reporter: Matthew J. Montgomery
>            Assignee: Jason Dillon
>            Priority: Critical
>             Fix For: 1.0-rc-4
>
>         Attachments: gmavenProbSample.tar.gz
>
>
> Working on a project that has both java and groovy classes. 
> The groovy classes utilize serialization extensively for permanence and have 
> a significant number of transient properties to reduce the serialized 
> footprint of the classes.
> The gmaven-plugin 1.0-rc-3 is producing invalid getter and setter stubs for 
> the transient properties. I have attached one of the Groovy classes and the 
> generated java stub for that class in a gzipped tar file.
> The errors returned are all similar to:
> target/generated-sources/groovy-stubs/main/org/oclc/dataload/frequency/SimpleCount.java:[41,29]
>  modifier transient not allowed here
> Where the generated class contains code like:
>     transient private boolean hasFixupSimpleCountDummy = false;
>     transient public boolean getHasFixupSimpleCountDummy() {
>         throw new InternalError("Stubbed method");
>     }
>     transient public boolean isHasFixupSimpleCountDummy() {
>         throw new InternalError("Stubbed method");
>     }
>     transient public void setHasFixupSimpleCountDummy(boolean value) {
>         throw new InternalError("Stubbed method");
>     }

-- 
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