Skip to content

Build error with JDK 7and 8 - Adopt OpenJDK feedback #5

Open
ghost opened this Issue Jul 14, 2013 · 9 comments

4 participants

@ghost
ghost commented Jul 14, 2013

Hi all,

JBehave is using UISpec4j:
http://jira.codehaus.org/browse/JBEHAVE-932

But mvn test from uispec4j is broken with java 7 and 8

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Server VM (build 23.25-b01, mixed mode)

[INFO] Compiling 157 source files to /home/hf/Desktop/cejug/adopt_openjdk/UISpec4J/uispec4j/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] package org.uispec4j.interception.toolkit

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] bootstrap class path not set in conjunction with -source 1.5

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.304s
[INFO] Finished at: Sun Jul 14 10:52:50 BRT 2013
[INFO] Final Memory: 12M/126M
[INFO] ------------------------------------------------------------------------

@optimix
optimix commented Jul 14, 2013

Have you tried with the jdk7 branch ?

@ghost
ghost commented Jul 14, 2013

Hi,
No just the current.

You guys have a CI server ? Cloudbees open doors for free for opensource software building on his cloud.

@ghost
ghost commented Jul 14, 2013

Please take a look this from Adopt OpenJDK initiative:

https://java.net/projects/adoptopenjdk/pages/TestingJava8

@optimix
optimix commented Jul 17, 2013

As far as I know, uispec4j is not actively maintained - just some commits with patches from time to time.
I hacked it to work with jdk 7 and the code was merged into the jdk7 branch.

@ghost
ghost commented Jul 17, 2013

@optimix thanks for this feedback.

@nebulorum
UISpec4J member

@ghost and @optimix. I have been assign as a maintainer. So I'll appreciate any help you guys can muster. I have made the build work for the last JDK7 and JDK8 (Oracle).

@ldesgrange
UISpec4J member

@nebulorum I refreshed a bit my CI server, you can see it here: https://ci.desgrange.net/view/UISpec4J/
It's a linux server with the following UISpec builds:

  • UISpec4J, OpenJDK6 (1.6.0_32), XToolkit: 2 failing tests
  • UISpec4J, OpenJDK7 (1.7.0_65), XToolkit: freeze on WindowInterceptorForModalDialogsTest
  • UISpec4J, OpenJDK8 (1.8.0_20), XToolkit: fail to compile
  • UISpec4J, OracleJDK6 (1.6.0_45), XToolkit: 2 failing tests
  • UISpec4J, OracleJDK7 (1.7.0_65), XToolkit: freeze on WindowInterceptorForModalDialogsTest
  • UISpec4J, OracleJDK8 (1.8.0_11), XToolkit: freeze on WindowInterceptorForModalDialogsTest

I should probably add builds with Caciocavallo.

@nebulorum
UISpec4J member

I'll try to dig into this. On my CI for my other project server I have a test that fails on XTookit too. I my case it's with injecting keystrokes and carets. But there may be some specificities.

The failing test are on the demo projects, I wan't looking at those....

I to a peek at the logs:

org.uispec4j.interception.toolkit.UISpecToolkit cannot be cast to sun.awt.X11.XToolkit

Maybe this is specific to XToolkit implementation. But I'll check. The original UISpe4J uses MToolkit. But that's going away.

@gangji91

Hi @nebulorum

We have been using this UISpec4J version 2.3 in our tests in Java 6.

We have recently upgraded to Java 7, upgrade 37, and our tests therefore no longer work. We would be happy to upgrade to UISpec4J version 2.5, but our company QA policy does not allow us to use a snapshot version, only a released version.

I just wanted to enquire if you have any plans to release version 2.5?
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.