tags:

views:

95

answers:

0

I am creating some simple groovy classes, e.g.

class Person {
    int age
    String name
}

that are being used in a Java method that relies on reflection to pull out the object properties, e.g. age and name. The problem is that metaClass is also showing up as a property. Updating the Java method to ignore this property is not an option. I've tried setting the metaClass property to null but that didn't work.