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

Closed
phs opened this Issue Jun 14, 2013 · 0 comments

Projects

None yet

1 participant

@phs
Contributor
phs commented Jun 14, 2013
$ 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.

@atambo atambo closed this in 857d2ae Jun 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment