mirah/mirah — Issue #160: regular expression doesn't work
Author: mictadlo
Created: 2011-12-21 08:25:57+00:00
State: open

$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (6b22-1.10.4-0ubuntu1~11.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

~/Downloads/mirah-0.0.10/bin $ ./mirah -e '"abcdef" =~ /d/'
file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/builtin/javasupport/core_ext/object.rb:99 warning: already initialized constant Exception
Exception in thread "main" org.jruby.exceptions.RaiseException: (NoMethodError) Cannot find instance method =~(java.util.regex.Pattern) on java.lang.String
at Mirah::Typer::JavaTyper.method_type(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/plugin/java.rb:40)
at Mirah::JVM::Typer.method_type(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:195)
at Mirah::JVM::Typer.plugins(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:215)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1602)
at Mirah::Typer::Simple.plugins(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:212)
at Mirah::Typer::Simple.method_type(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:194)
at Mirah::AST::Call.infer(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/ast/call.rb:188)
at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2066)
at #.method_missing(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/META-INF/jruby.home/lib/ruby/1.8/delegate.rb:292)
at Mirah::Typer::Simple.infer(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:275)
at Mirah::JVM::Typer.resolve(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:324)
at org.jruby.RubyHash.each(org/jruby/RubyHash.java:1169)
at Mirah::JVM::Typer.resolve(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:322)
at Mirah::JVM::Typer.cycle(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:236)
at org.jruby.RubyFixnum.times(org/jruby/RubyFixnum.java:256)
at Mirah::Typer::Simple.cycle(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:233)
at Mirah::Typer::Simple.resolve(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/typer/simple.rb:319)
at Mirah::Generator.infer_asts(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/generator.rb:49)
at Mirah::Generator.generate(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/generator.rb:35)
at Mirah::Commands::Run.execute(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/commands/run.rb:30)
at Mirah::Commands::Run.execute_base(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/commands/base.rb:41)
at org.jruby.RubyKernel.catch(org/jruby/RubyKernel.java:1191)
at Mirah::Commands::Base.execute_base(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/commands/base.rb:38)
at Mirah::Commands::Run.execute(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah/commands/run.rb:23)
at #.run(file:/home/mictadlo/Downloads/mirah-0.0.10/lib/mirah-complete.jar!/mirah.rb:36)
at #.run(src/org/mirah/mirah_command.rb:55)
at #.main(src/org/mirah/mirah_command.rb:40)