Compilation problem with jikes and kaffe
Peter Eisentraut <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
I tried compiling openjms 0.7.6.1 using jikes (1.22) and kaffe (1.1.6) and it
came out with errors (see below). Is this supported and/or could you be
convinced to fix it?
/usr/lib/kaffe/bin/java -classpath /usr/share/ant/lib/ant.jar:/usr/share/java/ant-antlr.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/junit.jar:/usr/share/java/xalan2.jar:/usr/share/java/xerces.jar:/usr/share/java/xml-apis.jar:/usr/lib/kaffe/lib/tools.jar -Dant.home=/usr/share/ant org.apache.tools.ant.Main -Dcompile.debug=true -Dcompile.optimize=true -Dbuild.compiler=jikes
Buildfile: build.xml
clean:
prepare:
[mkdir] Created dir: /home/pei/devel/cjdbc/openjms-0.7.6.1/build
[mkdir] Created dir: /home/pei/devel/cjdbc/openjms-0.7.6.1/build/generated-src
[mkdir] Created dir: /home/pei/devel/cjdbc/openjms-0.7.6.1/build/generated-src/org/exolab/jms/selector/parser
[mkdir] Created dir: /home/pei/devel/cjdbc/openjms-0.7.6.1/build/classes
schemas:
prepare:
castor.uptodate:
castor:
[java] -- Suppressing non fatal warnings.
[touch] Creating /home/pei/devel/cjdbc/openjms-0.7.6.1/build/connector.xsd.tstamp
prepare:
castor.uptodate:
castor:
[java] -- Suppressing non fatal warnings.
[touch] Creating /home/pei/devel/cjdbc/openjms-0.7.6.1/build/openjms.xsd.tstamp
prepare:
castor.uptodate:
castor:
[java] -- Suppressing non fatal warnings.
[touch] Creating /home/pei/devel/cjdbc/openjms-0.7.6.1/build/database.xsd.tstamp
parser:
[antlr] ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
[antlr] ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
jdk.version:
[echo] Using version 1.5
jdk14work:
jdk13work:
[echo] Compiling with JDK1.3 or below
[copy] Copying 1 file to /home/pei/devel/cjdbc/openjms-0.7.6.1/build/generated-src/org/exolab/jms/persistence
jdkspecific:
main:
[javac] Compiling 489 source files to /home/pei/devel/cjdbc/openjms-0.7.6.1/build/classes
[javac] Found 12 semantic errors compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/build/generated-src/org/exolab/jms/persistence/NullConnection.java":
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "java.sql.PreparedStatement prepareStatement(java.lang.String $1, java.lang.String[] $2) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "java.sql.PreparedStatement prepareStatement(java.lang.String $1, int[] $2) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "java.sql.PreparedStatement prepareStatement(java.lang.String $1, int $2) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "java.sql.CallableStatement prepareCall(java.lang.String $1, int $2, int $3, int $4) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "java.sql.PreparedStatement prepareStatement(java.lang.String $1, int $2, int $3, int $4) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "java.sql.Statement createStatement(int $1, int $2, int $3) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "void releaseSavepoint(java.sql.Savepoint $1) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "void rollback(java.sql.Savepoint $1) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "java.sql.Savepoint setSavepoint(java.lang.String $1) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "java.sql.Savepoint setSavepoint() throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "int getHoldability() throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] 60. class NullConnection implements java.sql.Connection {
[javac] ^------------^
[javac] *** Semantic Error: The abstract method "void setHoldability(int $1) throws java.sql.SQLException;", inherited from type "java.sql.Connection", is not implemented in the non-abstract class "org.exolab.jms.persistence.NullConnection".
[javac] Issued 6 lexical warnings in "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/apache/avalon/excalibur/naming/rmi/server/RMINamingProviderImpl.java":
[javac] 80. final NamingEnumeration enum = m_root.listBindings( name );
[javac] ^--^
[javac] *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it will be a keyword once -source 1.5 is implemented.
[javac] 83. while( enum.hasMore() )
[javac] ^--^
[javac] *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it will be a keyword once -source 1.5 is implemented.
[javac] 85. final Binding binding = (Binding)enum.next();
[javac] ^--^
[javac] *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it will be a keyword once -source 1.5 is implemented.
[javac] 118. final NamingEnumeration enum = m_root.listBindings( name );
[javac] ^--^
[javac] *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it will be a keyword once -source 1.5 is implemented.
[javac] 121. while( enum.hasMore() )
[javac] ^--^
[javac] *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it will be a keyword once -source 1.5 is implemented.
[javac] 123. final Binding binding = (Binding)enum.next();
[javac] ^--^
[javac] *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it will be a keyword once -source 1.5 is implemented.
[javac] Issued 3 lexical warnings in "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/messagemgr/ConsumerEndpoint.java":
[javac] 652. Enumeration enum = collection.elements();
[javac] ^--^
[javac] *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it will be a keyword once -source 1.5 is implemented.
[javac] 654. while (enum.hasMoreElements()) {
[javac] ^--^
[javac] *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it will be a keyword once -source 1.5 is implemented.
[javac] 655. if (enum.nextElement() instanceof PersistentMessageHandle) {
[javac] ^--^
[javac] *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it will be a keyword once -source 1.5 is implemented.
[javac] Issued 1 semantic warning compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/messagemgr/QueueBrowserEndpoint.java":
[javac] 226. Thread.currentThread().dumpStack();
[javac] ^------------------------------^
[javac] *** Semantic Warning: Invoking the class method "dumpStack" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type.
[javac] Issued 1 semantic warning compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/server/JmsServerSession.java":
[javac] 967. Thread.currentThread().dumpStack();
[javac] ^------------------------------^
[javac] *** Semantic Warning: Invoking the class method "dumpStack" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type.
[javac] Issued 1 semantic warning compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/message/MessageHeader.java":
[javac] 225. Thread.currentThread().dumpStack();
[javac] ^------------------------------^
[javac] *** Semantic Warning: Invoking the class method "dumpStack" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type.
[javac] Issued 1 semantic warning compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/messagemgr/TopicConsumerEndpoint.java":
[javac] 100. private final int MAX_MESSAGES = 200;
[javac] ^----------------^
[javac] *** Semantic Warning: Final field "MAX_MESSAGES" is initialized with a constant expression and could be made static to save space.
[javac] Issued 1 semantic warning compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/messagemgr/QueueConsumerEndpoint.java":
[javac] 96. private final int MAX_MESSAGES = 200;
[javac] ^----------------^
[javac] *** Semantic Warning: Final field "MAX_MESSAGES" is initialized with a constant expression and could be made static to save space.
[javac] Issued 1 semantic warning compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/message/StreamMessageImpl.java":
[javac] 168. private static final byte[] EMPTY = new byte[]{};
[javac] ^---^
[javac] *** Semantic Warning: Field "EMPTY" shadows a field of the same name in "org.exolab.jms.message.MessageImpl".
[javac] Issued 1 semantic warning compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/message/BytesMessageImpl.java":
[javac] 88. private static final byte[] EMPTY = new byte[]{};
[javac] ^---^
[javac] *** Semantic Warning: Field "EMPTY" shadows a field of the same name in "org.exolab.jms.message.MessageImpl".
[javac] Issued 3 semantic warnings compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/util/UUIDGenerator.java":
[javac] 620. Thread.currentThread().sleep(Clock.getUnsynchTicks());
[javac] ^--------------------------^
[javac] *** Semantic Warning: Invoking the class method "sleep" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type.
[javac] 732. Thread.currentThread().sleep(Clock.getUnsynchTicks());
[javac] ^--------------------------^
[javac] *** Semantic Warning: Invoking the class method "sleep" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type.
[javac] 813. nodeIdLong = nodeIdLong | (1 << 47);
[javac] ^^
[javac] *** Semantic Caution: The shift count of 47 is >= the 32-bit width of the type.
[javac] Issued 3 semantic warnings compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/client/rmi/RmiJmsConnectionStub.java":
[javac] 97. public final String MAX_RETRY_PROP = "org.exolab.jms.rmi.retryCount";
[javac] ^----------------------------------------------^
[javac] *** Semantic Warning: Final field "MAX_RETRY_PROP" is initialized with a constant expression and could be made static to save space.
[javac] <--------------------
[javac] 104. public final String RETRY_INTERVAL_PROP =
[javac] 105. "org.exolab.jms.rmi.retryInterval";
[javac] ----------------------------------------->
[javac] *** Semantic Warning: Final field "RETRY_INTERVAL_PROP" is initialized with a constant expression and could be made static to save space.
[javac] 249. Thread.currentThread().sleep(_interval * 1000);
[javac] ^--------------------------^
[javac] *** Semantic Warning: Invoking the class method "sleep" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type.
[javac] Issued 2 semantic warnings compiling "/home/pei/devel/cjdbc/openjms-0.7.6.1/src/main/org/exolab/jms/tools/admin/OfflineConnection.java":
[javac] 120. DatabaseService.instance().getAdapter();
[javac] ^-----------------------------------^
[javac] *** Semantic Warning: Invoking the class method "getAdapter" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type.
[javac] 130. DatabaseService.instance().getAdapter();
[javac] ^-----------------------------------^
[javac] *** Semantic Warning: Invoking the class method "getAdapter" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type.
BUILD FAILED
/home/pei/devel/cjdbc/openjms-0.7.6.1/build.xml:303: Compile failed; see the compiler error output for details.
Total time: 51 seconds
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php