Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"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

Comments

Projects
None yet
1 participant
@phs
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.