Forum Discussion

marcpa's avatar
marcpa
Occasional Contributor
12 years ago

Compiling soapui 4.6.x from source fails with jdk6

Since at least the following commit

Commit: 48499c4fe0bc1cade9e658f40a1ef7baf0305dcf [48499c4]
Parents: 24b87e8f42
Author: spindelmanne <manne.fagerlind@smartbear.com>
Date: 17 octobre 2013 10:07:57 HAE

Removed property move buttons in popup and redundant code SOAP-727


it is no longer possible to compile soapui from sources with a jdk 6 : this commit introduces generics version of swing classes, which appear in jdk 7.

Question : is this voluntary (dropping support for compiling with jdk 6) ?

Note that dropping jdk6 for compilation means that compiling with jdk7 should be parameterized with "-source 1.7 -target 1.6" to be able to run soapui with a java 6 jre/jdk. However, I'm not sure it is a very good idea to compile with a different source and target level...

If the intention is to drop support for compiling with a java 6 jdk, the README.md should state this in the prerequisites section.
Also, would be nice if the pom.xml was explicitly specifiying this, with the source and target configuration (as in http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html).

If this was not intentional or if compiling with jdk6 should be kept, there are 17 errors reported in the following 4 files :

    soapui/src/main/java/com/eviware/soapui/impl/rest/panels/resource/RestParamsTable.java
    soapui/src/main/java/com/eviware/soapui/impl/rest/panels/request/RestRequestMethodModel.java
    soapui/src/main/java/com/eviware/soapui/impl/wsdl/panels/teststeps/RestTestRequestDesktopPanel.java
    soapui/src/main/java/com/eviware/soapui/impl/rest/panels/request/RestRequestDesktopPanel.java


It does not seem too difficult to remove java 7 specifics from there (i.e. I could work out a pull-request if there is interest).

Regards,
Marc Paquette