Problem with false or a=1;a

0 views
Skip to first unread message

femto

unread,
May 15, 2007, 9:49:05 PM5/15/07
to xruby-devel
when parsing false or a=1;a
the following error occurs, (the AST is correct)
(STATEMENT_LIST (STATEMENT (or false (= a 1))) (STATEMENT a))

any ideas? you can have a look at the branch.

java.lang.VerifyError: (class: abc/main, method: run signature: (Lcom/
xruby/runtime/lang/RubyValue;Lcom/xruby/runtime/value/RubyArray;Lcom/
xruby/runtime/lang/RubyBlock;Lcom/xruby/runtime/lang/RubyModule;)Lcom/
xruby/runtime/lang/RubyValue;) Accessing value from uninitialized
regi.Wrm
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at
com.xruby.compiler.codegen.CompilationResults.getRubyProgram(CompilationResults.java:
124)
at
com.xruby.compiler.parser.Rubyv3TreeParserTest.compile_run_and_compare_result(Rubyv3TreeParserTest.java:
40)
at
com.xruby.compiler.parser.Rubyv3TreeParserTest.test_and_or_expression(Rubyv3TreeParserTest.java:
285)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)

Xue Yong Zhi

unread,
May 16, 2007, 11:05:22 AM5/16/07
to xruby...@googlegroups.com
I will try to fix it tafter work. If anyone want to take a look of the
problem, we have instructions at

http://code.google.com/p/xruby/wiki/XRubyHackingGuide

See 'Trouble Shooting' section.

_________________________________________________________________
PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows
Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507

Reply all
Reply to author
Forward
0 new messages