woven tests fail with Java 7 preview on Mac #9

Open
Pyrolistical opened this Issue Dec 28, 2011 · 4 comments

Projects

None yet

3 participants

@Pyrolistical

I installed the Java 7 preview found http://jdk7.java.net/macportpreview/

Then I set JAVA_HOME='/Library/Java/JavaVirtualMachines/JDK 1.7.0 Developer Preview.jdk/Contents/Home'

Running:

ant clean all test

Returns
```...skip a bunch of lines...
testwoven:
[echo] Testing Tasks ======================
[java] .E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E
[java] Time: 0.009
[java] There were 32 errors:
[java] 1) testDupsInStack(kilim.test.TestYield)java.lang.VerifyError: Expecting a stackmap frame at branch target 18 in method kilim.Task.pause(Lkilim/PauseReason;Lkilim/Fiber;)V at offset 4
[java] at kilim.test.TestYield.testDupsInStack(TestYield.java:43)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] 2) testConstantsInStack(kilim.test.TestYield)java.lang.VerifyError: Expecting a stackmap frame at branch target 18 in method kilim.Task.pause(Lkilim/PauseReason;Lkilim/Fiber;)V at offset 4
[java] at kilim.test.TestYield.testConstantsInStack(TestYield.java:47)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
... continue 30 more tests...

@Pyrolistical

Looks like a compile/weave issue and not a runtime one.

  1. With Java 1.6 ran ant clean all
  2. Switched to Java 1.7 ran ant test and the tests pass
@alphazero

I am getting the same precise error stack as OP, on a fresh pull of rep and build per instructions.

Mac OS X 10.8.2

&

java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

@stfairy

Exactly the same issue here.

$ uname -a
Linux xjia-desktop 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:48:01 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ javac -version
javac 1.7.0_09
$ java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

What's the possible cause for this problem? Maybe I can help fix it and send a pull request.

@alphazero

Confirmed patch works. Thank you, stfairy.

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