Skip to content

"ArgumentError: wrong number of arguments calling const_get (2 for 1)" for java constants #805

@phs

Description

@phs
$ jruby --version
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_12-ea-b08 +indy [darwin-x86_64]

$ jruby -e 'puts Java.const_get("JavaUtil", false); puts Java::JavaUtil.const_get("Date"); puts Java::JavaUtil.const_get("Date", false)'
Java::JavaUtil
Java::JavaUtil::Date
ArgumentError: wrong number of arguments calling `const_get` (2 for 1)
  (root) at -e:1

Looks like the 1.9 constant api changes haven't made it into modules backed by java packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions