Created
October 19, 2011 18:27
-
-
Save tarcieri/1299209 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map.mirah:5: not a primitive type: Type(java.lang.Object) | |
list.set i, Integer.new(int(elem) * 2) | |
^^^^^^^^^ | |
Mirah::InternalCompilerError: not a primitive type: Type(java.lang.Object) | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler/call.rb:23 | |
send at org/jruby/RubyKernel.java:2100 | |
method_missing at /Users/tony/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/delegate.rb:292 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:38 | |
convert_args at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/methods.rb:37 | |
each at org/jruby/RubyArray.java:1603 | |
convert_args at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/methods.rb:36 | |
math_operator at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/number.rb:120 | |
call at org/jruby/RubyProc.java:274 | |
call at org/jruby/RubyProc.java:229 | |
call at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/methods.rb:61 | |
call at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:354 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler/call.rb:30 | |
send at org/jruby/RubyKernel.java:2100 | |
method_missing at /Users/tony/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/delegate.rb:292 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:38 | |
convert_args at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/methods.rb:37 | |
each at org/jruby/RubyArray.java:1603 | |
convert_args at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/methods.rb:36 | |
call at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/methods.rb:140 | |
call at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:354 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler/call.rb:30 | |
send at org/jruby/RubyKernel.java:2100 | |
method_missing at /Users/tony/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/delegate.rb:292 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:38 | |
convert_args at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/methods.rb:37 | |
each at org/jruby/RubyArray.java:1603 | |
convert_args at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/methods.rb:36 | |
call at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/types/methods.rb:196 | |
call at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:354 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler/call.rb:30 | |
send at org/jruby/RubyKernel.java:2100 | |
method_missing at /Users/tony/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/delegate.rb:292 | |
body at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:209 | |
body at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:445 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler/structure.rb:21 | |
loop at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:270 | |
with at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:260 | |
loop at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:242 | |
push_jump_scope at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:58 | |
loop at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:241 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler/flow.rb:40 | |
send at org/jruby/RubyKernel.java:2100 | |
method_missing at /Users/tony/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/delegate.rb:292 | |
body at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:209 | |
body at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:445 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler/structure.rb:21 | |
define_main at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:84 | |
prepare_binding at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/jvm_bytecode.rb:105 | |
define_main at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:83 | |
with at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:260 | |
define_main at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/jvm/compiler/base.rb:75 | |
compile at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler/structure.rb:50 | |
compile_ast at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler.rb:49 | |
compile_asts at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler.rb:40 | |
each at org/jruby/RubyArray.java:1603 | |
compile_asts at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/compiler.rb:38 | |
generate at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/generator.rb:38 | |
execute at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/commands/run.rb:30 | |
execute_base at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/commands/base.rb:41 | |
catch at org/jruby/RubyKernel.java:1191 | |
execute_base at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/commands/base.rb:38 | |
execute at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah/commands/run.rb:23 | |
run at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/lib/mirah.rb:36 | |
(root) at /Users/tony/.rvm/gems/jruby-1.6.4/gems/mirah-0.0.9-java/bin/mirah:27 | |
load at org/jruby/RubyKernel.java:1063 | |
(root) at /Users/tony/.rvm/gems/jruby-1.6.4/bin/mirah:19 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list = [1,2,3] | |
i = 0 | |
list.each do |elem| | |
list.set i, Integer.new(int(elem) * 2) | |
i += 1 | |
end | |
puts list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment