Static variable referenced as a method?

In jruby, I’m trying to reference a static variable using
DefaultGeographicCRS.WGS84
but JRuby is trying to call it as a method rather than a variable?:

undefined method `WGS84’ for
Java::OrgGeotoolsReferencingCrs::DefaultGeographicCRS:Class
(NoMethodError)

The same syntax(DefaultGeographicCRS.WGS84) in java works.

the declaration:
public static class DefaultGeographicCRS extends
org.geotools.referencing.crs.AbstractSingleCRS implements
org.opengis.referencing.crs.GeographicCRS{
public static final org.geotools.referencing.crs.DefaultGeographicCRS
WGS84;

Any ideas for a workaround?


Tommy C.
Programmer and UC Irvine Graduate Student
Twitter @tommychheng


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Use DefaultGeographicCRS::WGS84 instead.

Regards
Roger

Am 15.05.2010 um 18:50 schrieb Tommy C.:

DefaultGeographicCRS.WGS84


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

thanks for the quick answer!

Tommy C.
Programmer and UC Irvine Graduate Student
Twitter @tommychheng

On 5/15/10 9:55 AM, Roger G. wrote:

To unsubscribe from this list, please visit:

 http://xircles.codehaus.org/manage_email

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email