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
<internal:core> core/time.rb:303:in `at': TruffleRuby doesn't have a case for the org.truffleruby.core.time.TimeNodesFactory$TimeAtPrimitiveNodeFactory$TimeAtPrimitiveNodeGen node with values of type Class(org.truffleruby.core.klass.RubyClass) org.truffleruby.core.numeric.RubyBignum java.lang.Integer=0 (TypeError)
from org.truffleruby.core.time.TimeNodesFactory$TimeAtPrimitiveNodeFactory$TimeAtPrimitiveNodeGen.executeAndSpecialize(TimeNodesFactory.java:733)
from org.truffleruby.core.time.TimeNodesFactory$TimeAtPrimitiveNodeFactory$TimeAtPrimitiveNodeGen.execute(TimeNodesFactory.java:715)
from org.truffleruby.language.control.IfElseNode.execute(IfElseNode.java:43)
from org.truffleruby.language.control.IfElseNode.execute(IfElseNode.java:45)
from org.truffleruby.language.control.IfNode.execute(IfNode.java:39)
from org.truffleruby.language.locals.WriteLocalVariableNode.execute(WriteLocalVariableNode.java:32)
from org.truffleruby.language.RubyNode.doExecuteVoid(RubyNode.java:63)
from org.truffleruby.language.control.SequenceNode.execute(SequenceNode.java:33)
from org.truffleruby.language.RubyMethodRootNode.execute(RubyMethodRootNode.java:58)
from org.graalvm.compiler.truffle.runtime.OptimizedCallTarget.executeRootNode(OptimizedCallTarget.java:655)
from -e:1:in `<main>'
The text was updated successfully, but these errors were encountered:
Note that (2**64)-1 is not LONG_MAX, LONG_MAX is (2**63)-1.
With (2**63)-1 it also fails:
$ ruby -e 'puts Time.at((2**63)-1)'
<internal:core> core/time.rb:313:in `at': UNIX epoch + 9223372036854775807 seconds out of range for Time (java.time limitation) (RangeError)
from -e:1:in `<main>'
And this is basically not fixable without a huge effort, yet I don't think it makes any sense in many applications to use a time 292 billion years in the future (we'll all be dead by then).
ruby 3:
truffleruby fails with:
The text was updated successfully, but these errors were encountered: