Accessing camelCase static field of an Java interface

I tried to use the notation Java::net.foo.Interface.field and
Java::net.foo.Interface::field to access a public static field of a Java
interface, but both forms erred out with a undefined method ‘field’
error.

It seems that access the static field works if the name is in ALL_CAP,
but not
if it is in camelCase.

Is there any way to access the field? I searched the wiki but didn’t see
any
help.

Peter


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Peter K Chan wrote:

I tried to use the notation Java::net.foo.Interface.field and
Java::net.foo.Interface::field to access a public static field of a Java
interface, but both forms erred out with a undefined method ‘field’ error.

It seems that access the static field works if the name is in ALL_CAP, but not
if it is in camelCase.

Is there any way to access the field? I searched the wiki but didn’t see any
help.

FWIW, Peter reposted this question a couple days later and we found it
was fixed by one of Tom’s last-minute changes in 1.1.4.

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs