Build problems on mustang jdk 1.6

Wildfire 3.0.0 does not build properly on mustang jdk 1.6. Should I be passing some source version arguments to javac or is this a known issue? Seems to be the result of some changes in the java.sql interfaces. See below for the specfic errors. Thank you!

./java -version -server

java version “1.6.0-rc”

Java™ SE Runtime Environment (build 1.6.0-rc-b87)

Java HotSpot™ Server VM (build 1.6.0-rc-b87, mixed mode)

Build errors:

plugins:

init:

Created dir: wildfire_src/target

Expanding: wildfire_src/build/lib/merge/whack.jar into wildfire_src/target/whack

compile:

Created dir: wildfire_src/target/classes

Compiling 415 source files to wildfire_src/target/classes

wildfire_src/src/java/org/jivesoftware/database/AbstractConnection.java:23: org.jivesoftware.database.AbstractConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection

public class AbstractConnection implements Connection {

wildfire_src/src/java/org/jivesoftware/database/ProfiledConnection.java:631: org.jivesoftware.database.ProfiledConnection.TimedStatement is not abstract and does not override abstract method isPoolable() in java.sql.Statement

class TimedStatement extends StatementWrapper {

wildfire_src/src/java/org/jivesoftware/database/ProfiledConnection.java:719: org.jivesoftware.database.ProfiledConnection.TimedPreparedStatement is not abstract and does not override abstract method isPoolable() in java.sql.Statement

class TimedPreparedStatement extends PreparedStatementWrapper {

wildfire_src/src/java/org/jivesoftware/database/ProfiledConnection.java:924: org.jivesoftware.database.ProfiledConnection.TimedCallableStatement is not abstract and does not override abstract method isPoolable() in java.sql.Statement

class TimedCallableStatement extends CallableStatementWrapper {

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

4 errors

wildfire_src/build/build.xml:893: The following error occurred while executing this line:

wildfire_src/build/build.xml:252: Compile failed; see the compiler error output for details.

BUILD FAILED (total time: 12 seconds)

A closer look at build.xml indicates that the source=1.5 is already being specified.

Please accept my apologies if this should have been posted in Wildfire Support instead of the developer forum.

larz,

Interesting, I’‘ve been using 1.6 to run Wildfire for over a month, but perhaps I haven’‘t tried compiling directly. I’'ve filed this as JM-755.

Regards,

Matt

I was able to build wildfire from subversion using Java 1.6, the version before you have:

java version “1.6.0-beta2”

Java™ SE Runtime Environment (build 1.6.0-beta2-b86)

Java HotSpot™ Server VM (build 1.6.0-beta2-b86, mixed mode)

Does Sun maintain some changelog between beta releases?

Matt,

I can run Wildfire fine using 1.6 as well. My temporary solution has been to compile wildfire/plugins with 1.5 and then switch to 1.6. It isn’‘t really a big deal, 1.6 for whatever reason seems to be a bit faster a runtime. I’'ll have to try svn/trunk at some point as another poster suggested.

Thanks,

Larz

Slushpupie,

Change log is here:

https://mustang.dev.java.net/servlets/ProjectDocumentList?folderID=2855

Larz