Issue 121690 - Make the build environment work with latest Java (Java 7)
Summary: Make the build environment work with latest Java (Java 7)
Status: RESOLVED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: build.pl (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on: 121754
Blocks:
  Show dependency tree
 
Reported: 2013-01-30 20:14 UTC by Fred Ollinger
Modified: 2014-01-27 23:52 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Fred Ollinger 2013-01-30 20:14:44 UTC
Does not build with java7 from Oracle.

java version "1.7.0_12-ea"
Java(TM) SE Runtime Environment (build 1.7.0_12-ea-b08)
Java HotSpot(TM) Server VM (build 24.0-b28, mixed mode)

When I try to compile version:

build -- version: 275224

=============
Building module hsqldb
=============

Entering /mnt/lfs/sources/ubuntu/local_dev300/hsqldb

mkout -- version: 1.8
if [ -f ./unxlngi6.pro/misc/build/hsqldb ] ; then mv ./unxlngi6.pro/misc/build/hsqldb ./unxlngi6.pro/misc/build/hsqldb_removeme ; fi
make writeable...
patching file hsqldb/src/org/hsqldb/Expression.java
patching file hsqldb/src/org/hsqldb/persist/HsqlDatabaseProperties.java
patching file hsqldb/src/org/hsqldb/Library.java
patching file hsqldb/src/org/hsqldb/Table.java
patching file hsqldb/src/org/hsqldb/TableWorks.java
mkdir: cannot create directory `./unxlngi6.pro/misc/build/hsqldb/': File exists
Buildfile: /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/build/build.xml

init:

javaversion6:

javaversion4:

javaversion2:

-prepare:
    [mkdir] Created dir: /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/classes

codeswitcher:
    [javac] /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/build/build.xml:135: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/classes
    [javac] Note: /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/src/org/hsqldb/util/CodeSwitcher.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

switches:

switchtojdk14:

switchtojdk16:
     [java] ........................

store:
    [javac] /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/build/build.xml:291: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 6 source files to /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/classes

lib:
    [javac] /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/build/build.xml:302: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 40 source files to /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/classes
    [javac] /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcConnection.java:418: error: jdbcConnection is not abstract and does not override abstract method getNetworkTimeout() in Connection
    [javac] public class jdbcConnection implements Connection {
    [javac]        ^
    [javac] /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcResultSet.java:334: error: jdbcResultSet is not abstract and does not override abstract method <T>getObject(String,Class<T>) in ResultSet
    [javac] public class jdbcResultSet implements ResultSet {
    [javac]        ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>getObject(String,Class<T>)
    [javac] /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java:127: error: jdbcStatement is not abstract and does not override abstract method isCloseOnCompletion() in Statement
    [javac] public class jdbcStatement implements Statement {
    [javac]        ^
    [javac] /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcPreparedStatement.java:212: error: jdbcPreparedStatement is not abstract and does not override abstract method isCloseOnCompletion() in Statement
    [javac] public class jdbcPreparedStatement extends jdbcStatement
    [javac]        ^
    [javac] /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcCallableStatement.java:302: error: jdbcCallableStatement is not abstract and does not override abstract method <T>getObject(String,Class<T>) in CallableStatement
    [javac] public class jdbcCallableStatement extends jdbcPreparedStatement
    [javac]        ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>getObject(String,Class<T>)
    [javac] /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java:283: error: jdbcDatabaseMetaData is not abstract and does not override abstract method generatedKeyAlwaysReturned() in DatabaseMetaData
    [javac] public class jdbcDatabaseMetaData implements DatabaseMetaData {
    [javac]        ^
    [javac] Note: /mnt/lfs/sources/ubuntu/local_dev300/hsqldb/unxlngi6.pro/misc/build/hsqldb/src/org/hsqldb/lib/java/JavaSystem.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 6 errors

BUILD FAILED
/mnt/lfs/sources/ubu
Comment 1 Ariel Constenla-Haile 2013-01-30 21:07:23 UTC
This is no bug, or in any case a request for enhancement: the build system does not work with Java 7.

If your distro doesn't supply a JDK 6, install a JDK 6 from Oracle in /opt and run configure with --with-jdk-home=PATH_TO_JDK_6
Comment 2 Ariel Constenla-Haile 2013-01-30 21:09:04 UTC
Confirming
Setting issue type to enhancement (if someone takes it, change it to TASK).
Adapting subject
Comment 3 Andrea Pescetti 2013-08-03 08:05:03 UTC
Adding dependency on the (more specific) bug 121754; from the ooo-dev discussion it actually seems we don't have other problems in building with Java 7, so this one can probably be closed too.
Comment 4 Kay 2014-01-27 23:52:52 UTC
These build errors seem to be corrected by hsqldb patches applied by Andrea on 2013-07-09. My recent build on 2014-01-14 using openJDK 1.7.0_45 did not produce these errors, so I am closing this out.