Bug in project when using "ensure". #196

Closed
kaspernj opened this Issue Dec 28, 2012 · 3 comments

Projects

None yet

2 participants

@kaspernj

I get the following error when enabling "ensure" functionality in "enumerator.mirah" on line 52 and 53. When these lines are commented out, my code works perfectly.

The code can be found here (Maven project):
https://github.com/kaspernj/mirah_stdlib_core/tree/ensure_bug

The commands used to reproduce are:
mvn clean
mvn test

I have tried pulling Mirah from Git, building it myself and replacing the Maven version. No difference.

I have tried writing several smaller test-scripts without luck - it only bugs me in this project for some reason.

If you want to, then I am willing to do a TeamViewer session to help you debug (central Europe timezone) .

java.lang.VerifyError: Stack map does not match the one at exception handler 103 in method org.kaspernj.mirah.stdlib.core.Enumerator.next()Ljava/lang/Object; at offset 88
at org.kaspernj.mirah.stdlib.core.TestEnumerator.test_enumerator(test_enumerator.mirah:9)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.kaspernj.mirah.stdlib.core.MirahTester.executeMirahTestsForPackage(MirahTester.java:47)
at org.kaspernj.mirah.stdlib.core.AppTest.testCore(AppTest.java:13)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
...(more JUnit stacktrace)...

@baroquebobcat
Member

what version of java are you compiling with / against?

@baroquebobcat
Member

If you are using jruby 1.6.8 / java 7, I think I have the fix. It'll go out with the release.

@baroquebobcat
Member

It's on master now, I'm closing this issue. If you still see it, please reopen or add a new issue. Thanks for reporting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment