You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently blows up as: java.lang.ArithmeticException: Negative exponent
pow_failure.rb:3: warning: in a**b, b may be too big
BigInteger.java:1395:in `pow': java.lang.ArithmeticException: Negative exponent
from RubyBignum.java:608:in `op_pow19'
from RubyBignum.java:573:in `op_pow'
from Numeric.java:500:in `int_pow'
from RubyFixnum.java:815:in `powerFixnum19'
from RubyFixnum.java:765:in `op_pow_19'
from RubyFixnum.java:727:in `op_pow'
from RubyFixnum$INVOKER$i$1$0$op_pow.gen:-1:in `call'
from CachingCallSite.java:161:in `call'
from pow_failure.rb:-1:in `invokeOther10:**'
from pow_failure.rb:3:in `RUBY$method$knuth$0'
from CompiledIRMethod.java:161:in `call'
from DynamicMethod.java:221:in `call'
from CachingCallSite.java:225:in `call'
from pow_failure.rb:-1:in `invokeOther8:knuth'
from pow_failure.rb:7:in `RUBY$block$knuth$2'
from CompiledIRBlockBody.java:70:in `commonYieldPath'
from IRBlockBody.java:66:in `yieldSpecific'
from Block.java:116:in `yieldSpecific'
from RubyFixnum.java:299:in `times'
from RubyFixnum$INVOKER$i$0$0$times.gen:-1:in `call'
from CachingCallSite.java:139:in `callBlock'
from CachingCallSite.java:145:in `call'
from pow_failure.rb:-1:in `invokeOther13:times'
from pow_failure.rb:6:in `RUBY$method$knuth$0'
from CompiledIRMethod.java:161:in `call'
from DynamicMethod.java:221:in `call'
from CachingCallSite.java:225:in `call'
from pow_failure.rb:-1:in `invokeOther8:knuth'
from pow_failure.rb:7:in `RUBY$block$knuth$2'
from CompiledIRBlockBody.java:70:in `commonYieldPath'
from IRBlockBody.java:66:in `yieldSpecific'
from Block.java:116:in `yieldSpecific'
from RubyFixnum.java:299:in `times'
from RubyFixnum$INVOKER$i$0$0$times.gen:-1:in `call'
from CachingCallSite.java:139:in `callBlock'
from CachingCallSite.java:145:in `call'
from pow_failure.rb:-1:in `invokeOther13:times'
from pow_failure.rb:6:in `RUBY$method$knuth$0'
from CompiledIRMethod.java:161:in `call'
from DynamicMethod.java:221:in `call'
from CachingCallSite.java:225:in `call'
from pow_failure.rb:-1:in `invokeOther8:knuth'
from pow_failure.rb:7:in `RUBY$block$knuth$2'
from CompiledIRBlockBody.java:70:in `commonYieldPath'
from IRBlockBody.java:66:in `yieldSpecific'
from Block.java:116:in `yieldSpecific'
from RubyFixnum.java:299:in `times'
from RubyFixnum$INVOKER$i$0$0$times.gen:-1:in `call'
from CachingCallSite.java:303:in `cacheAndCall'
from CachingCallSite.java:141:in `callBlock'
from CachingCallSite.java:145:in `call'
from pow_failure.rb:-1:in `invokeOther13:times'
from pow_failure.rb:6:in `RUBY$method$knuth$0'
from CompiledIRMethod.java:161:in `call'
from DynamicMethod.java:221:in `call'
from CachingCallSite.java:353:in `cacheAndCall'
from CachingCallSite.java:227:in `call'
from pow_failure.rb:-1:in `invokeOther17:knuth'
from pow_failure.rb:13:in `RUBY$script'
from MethodHandle.java:599:in `invokeWithArguments'
from Compiler.java:111:in `load'
from Ruby.java:835:in `runScript'
from Ruby.java:824:in `runScript'
from Ruby.java:754:in `runNormally'
from Ruby.java:575:in `runFromMain'
from Main.java:401:in `doRunFromMain'
from Main.java:296:in `internalRun'
from Main.java:225:in `run'
from Main.java:197:in `main'
currently blows up as: java.lang.ArithmeticException: Negative exponent
script (taken from http://stackoverflow.com/questions/30765980/java-lang-arithmeticexception-negative-exponent-in-jruby) :
The text was updated successfully, but these errors were encountered: