Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
jruby 1.7.10 raises unexpected arity error (1 for 0) when creating a java.math.BigDecimal #2039
When using the oracle enhanced adapter I ran into the following issue:
This exception has occurred once in a production environment and has not been reproducible. This function is being passed a string and a symbol (in this particular case the string "114.0" and a symbol :decimal). Most of the time it works exactly as expected and creates a BigDecimal.
The error does not make any sense. Since the exception appears to originate from jruby and not java it seems like this must be a jruby bug although I have no idea what could be causing it. The code being run has not made any modification to String or java.math.BigDecimal
Our specific environment:
greetings, this is very likely related to Java integration's concurrent proxy class initialization ... which has been much improved in 1.7.20 and errors such as these are no longer expected.