Skip to content

Incompatible with Groovy #5

Open

Description

@th3morg

I really like your approach here and especially wanted to make use of your HAL Jackson serialization project. However, I'm using groovy and the "setProperty" method in your Resource/AbstractResource conflict with the GroovyObject. I get the following error:

The return type of com.strategicgains.hyperexpress.domain.Resource setProperty(java.lang.String, java.lang.Object) in com.strategicgains.hyperexpress.domain.AbstractResource is incompatible with void in groovy.lang.GroovyObject

If you could make the naming of methods more compatible with Groovy it would be of great benefit. Thank you!

Activity

  1. tfredrich commented on Nov 18, 2014

    @tfredrich
    Member

    That is an interesting problem. I can work that in over time after deprecating the current methods for a bit. But it might be a while...

  2. th3morg commented on Nov 23, 2014

    @th3morg
    Author

    Todd, this is something that I might undertake if you are willing to have a look at a pull request.

    On Nov 17, 2014, at 7:34 PM, Todd Fredrich notifications@github.com wrote:

    That is an interesting problem. I can work that in over time after deprecating the current methods for a bit. But it might be a while...

    —
    Reply to this email directly or view it on GitHub.

  3. tfredrich commented on Feb 7, 2015

    @tfredrich
    Member

    Pull-request away! :-)

  4. tfredrich commented on Jul 16, 2015

    @tfredrich
    Member

    BTW, what should that method be named? If I call it 'property(Object)' and the corresponding 'Object property()' getter, will that work? Can I add those new methods or do I have to actually rename the old one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions