[
http://jira.codehaus.org/browse/MGROOVY-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120711
]
Luke Daley commented on MGROOVY-102:
------------------------------------
{code}
class MyGroovyClass {
def p
}
{code}
should become
{code}
public class MyGroovyClass {
private Object p
public void setP(Object p) { throw new Error(); }
public Object getP() { throw new Error(); }
}
{code}
The property is private.
> Getters/Setters should be generated for properties.
> ---------------------------------------------------
>
> Key: MGROOVY-102
> URL: http://jira.codehaus.org/browse/MGROOVY-102
> Project: Maven 2.x Groovy Integration
> Issue Type: Improvement
> Components: stub generation
> Affects Versions: 1.0-beta-3
> Reporter: Luke Daley
> Assignee: Jason Dillon
> Fix For: 1.0-beta-4
>
>
> Consider the following ...
> public interface ExampleInterface {
> public void setExampleProperty(Object exampleProperty);
> }
> And the following groovy class ...
> class ExampleClass implements ExampleInterface {
> def exampleProperty
> }
> This should work and does if you aren't using the joint compile stuff.
--
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