With the latest compiler on Fedora Core 5 I get these warnings when compiling mapi.java (see attached file warnings1.txt). And when compiling the jdbc tests I get the warnings in warnings2.txt. Finally, when compiling the jdbc examples I get the warnings in warnings3.txt. Should something be done about these? -- Sjoerd Mullender /usr/bin/ant -f /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/build.xml -Dbuilddir=/home/sjoerd/src/devel/MonetDB/Linux/src/mapi/clients/java -Djardir=/home/sjoerd/src/devel/MonetDB/Linux/src/mapi/clients/java jar_mapi Buildfile: /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/build.xml prepare: compile_mapi: [echo] Compiling Java Mapi [javac] Compiling 3 source files to /home/sjoerd/src/devel/MonetDB/Linux/src/mapi/clients/java [javac] ---------- [javac] 1. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 145) [javac] private int languageId= LANG_MAL; [javac] ^^^^^^^^^^ [javac] The field Mapi.languageId is never read locally [javac] ---------- [javac] ---------- [javac] 2. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 148) [javac] private boolean everything = false; [javac] ^^^^^^^^^^ [javac] The field Mapi.everything is never read locally [javac] ---------- [javac] ---------- [javac] 3. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 152) [javac] private boolean eos = false; [javac] ^^^ [javac] The field Mapi.eos is never read locally [javac] ---------- [javac] ---------- [javac] 4. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 169) [javac] private int minfields= 0; [javac] ^^^^^^^^^ [javac] The field Mapi.minfields is never read locally [javac] ---------- [javac] ---------- [javac] 5. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 188) [javac] private String hostname( String monetport ){ [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [javac] The method hostname(String) from the type Mapi is never used locally [javac] ---------- [javac] ---------- [javac] 6. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 194) [javac] private int portnr( String monetport ){ [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^ [javac] The method portnr(String) from the type Mapi is never used locally [javac] ---------- [javac] ---------- [javac] 7. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 588) [javac] private void storeBind(){ [javac] ^^^^^^^^^^^ [javac] The method storeBind() from the type Mapi is never used locally [javac] ---------- [javac] ---------- [javac] 8. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1007) [javac] String left,right; [javac] ^^^^ [javac] The local variable left is never read [javac] ---------- [javac] ---------- [javac] 9. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1007) [javac] String left,right; [javac] ^^^^^ [javac] The local variable right is never read [javac] ---------- [javac] ---------- [javac] 10. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1306) [javac] int i, sr=rownr; [javac] ^^ [javac] The local variable sr is never read [javac] ---------- [javac] ---------- [javac] 11. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1413) [javac] int n=0; [javac] ^ [javac] The local variable n is never read [javac] ---------- [javac] ---------- [javac] 12. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1414) [javac] int len= 0; [javac] ^^^ [javac] The local variable len is never read [javac] ---------- [javac] ---------- [javac] 13. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1415) [javac] String s=""; [javac] ^ [javac] The local variable s is never read [javac] ---------- [javac] ---------- [javac] 14. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1486) [javac] private void keepProp(String name, String colname){ [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [javac] The method keepProp(String, String) from the type Mapi is never used locally [javac] ---------- [javac] ---------- [javac] 15. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1509) [javac] String s= columns[i].columnname= fetchField(i); [javac] ^ [javac] The local variable s is never read [javac] ---------- [javac] ---------- [javac] 16. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1591) [javac] private int unquoteInternal(char msg[], int first) [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [javac] The method unquoteInternal(char[], int) from the type Mapi is never used locally [javac] ---------- [javac] ---------- [javac] 17. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1690) [javac] int size= msg.length(); [javac] ^^^^ [javac] The local variable size is never read [javac] ---------- [javac] ---------- [javac] 18. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1749) [javac] private void dumpLine(int i){ [javac] ^^^^^^^^^^^^^^^ [javac] The method dumpLine(int) from the type Mapi.RowCache is never used locally [javac] ---------- [javac] ---------- [javac] 19. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/Mapi.java [javac] (at line 1754) [javac] private void dumpCacheStatus(){ [javac] ^^^^^^^^^^^^^^^^^ [javac] The method dumpCacheStatus() from the type Mapi.RowCache is never used locally [javac] ---------- [javac] ---------- [javac] 20. WARNING in /home/sjoerd/src/devel/MonetDB/src/mapi/clients/java/mapi/MapiException.java [javac] (at line 28) [javac] class MapiException extends Exception { [javac] ^^^^^^^^^^^^^ [javac] The serializable class MapiException does not declare a static final serialVersionUID field of type long [javac] ---------- [javac] 20 problems (20 warnings) jar_mapi: [jar] Building jar: /home/sjoerd/src/devel/MonetDB/Linux/src/mapi/clients/java/mapi.jar BUILD SUCCESSFUL Total time: 7 seconds /usr/bin/ant -f /home/sjoerd/src/devel/sql/src/jdbc/tests/build.xml -Dbuilddir=/home/sjoerd/src/devel/sql/Linux/src/jdbc/tests -Djardir=/home/sjoerd/src/devel/sql/Linux/src/jdbc/tests compile Buildfile: /home/sjoerd/src/devel/sql/src/jdbc/tests/build.xml prepare: compile: [echo] Compiling JDBC tests [javac] Compiling 13 source files to /home/sjoerd/src/devel/sql/Linux/src/jdbc/tests [javac] ---------- [javac] 1. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/tests/Test_Csavepoints.java [javac] (at line 50) [javac] Savepoint sp1 = con.setSavepoint(); [javac] ^^^ [javac] The local variable sp1 is never read [javac] ---------- [javac] ---------- [javac] 2. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/tests/Test_PStypes.java [javac] (at line 27) [javac] ResultSet rs = null; [javac] ^^ [javac] The local variable rs is never read [javac] ---------- [javac] 2 problems (2 warnings) BUILD SUCCESSFUL Total time: 7 seconds /usr/bin/ant -f /home/sjoerd/src/devel/sql/src/jdbc/build.xml -Dbuilddir=/home/sjoerd/src/devel/sql/Linux/src/jdbc -Djardir=/home/sjoerd/src/devel/sql/Linux/src/jdbc jar_jdbcclient Buildfile: /home/sjoerd/src/devel/sql/src/jdbc/build.xml prepare: [mkdir] Created dir: /home/sjoerd/src/devel/sql/Linux/src/jdbc/example [echo] Debug is true, optimise is true driver: compile_jdbc: [echo] Compiling JDBC driver [javac] Compiling 11 source files to /home/sjoerd/src/devel/sql/Linux/src/jdbc [javac] ---------- [javac] 1. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetConnection.java [javac] (at line 59) [javac] private final int port; [javac] ^^^^ [javac] The field MonetConnection.port is never read locally [javac] ---------- [javac] ---------- [javac] 2. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetConnection.java [javac] (at line 1515) [javac] private final String getValue(char[] chrLine, int start, int stop) { [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [javac] The method getValue(char[], int, int) from the type MonetConnection.ResultSetResponse is never used locally [javac] ---------- [javac] ---------- [javac] 3. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetConnection.java [javac] (at line 2090) [javac] int lastState = linetype; [javac] ^^^^^^^^^ [javac] The local variable lastState is never read [javac] ---------- [javac] ---------- [javac] 4. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetConnection.java [javac] (at line 2175) [javac] int columncount = parseNumber(soh); [javac] ^^^^^^^^^^^ [javac] The local variable columncount is never read [javac] ---------- [javac] ---------- [javac] 5. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetDatabaseMetaData.java [javac] (at line 1402) [javac] private static String dq(String in) { [javac] ^^^^^^^^^^^^^ [javac] The method dq(String) from the type MonetDatabaseMetaData is never used locally [javac] ---------- [javac] ---------- [javac] 6. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetSavepoint.java [javac] (at line 139) [javac] private static synchronized int getHighestId() { [javac] ^^^^^^^^^^^^^^ [javac] The method getHighestId() from the type MonetSavepoint is never used locally [javac] ---------- [javac] ---------- [javac] 7. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetSocketBlockMode.java [javac] (at line 24) [javac] import java.util.*; [javac] ^^^^^^^^^ [javac] The import java.util is never used [javac] ---------- [javac] ---------- [javac] 8. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/util/MonetRedirectException.java [javac] (at line 23) [javac] public class MonetRedirectException extends Exception { [javac] ^^^^^^^^^^^^^^^^^^^^^^ [javac] The serializable class MonetRedirectException does not declare a static final serialVersionUID field of type long [javac] ---------- [javac] 8 problems (8 warnings) jar_jdbc: [jar] Building jar: /home/sjoerd/src/devel/sql/Linux/src/jdbc/monetdb-1.4-jdbc.jar compile_client: [echo] Compiling Clients [javac] Compiling 7 source files to /home/sjoerd/src/devel/sql/Linux/src/jdbc [javac] ---------- [javac] 1. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/client/util/Exporter.java [javac] (at line 23) [javac] import java.util.*; [javac] ^^^^^^^^^ [javac] The import java.util is never used [javac] ---------- [javac] ---------- [javac] 2. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/client/util/OptionsException.java [javac] (at line 21) [javac] public class OptionsException extends Exception { [javac] ^^^^^^^^^^^^^^^^ [javac] The serializable class OptionsException does not declare a static final serialVersionUID field of type long [javac] ---------- [javac] ---------- [javac] 3. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/client/util/PasswordField.java [javac] (at line 43) [javac] int i; [javac] ^ [javac] The local variable i is never read [javac] ---------- [javac] ---------- [javac] 4. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetConnection.java [javac] (at line 59) [javac] private final int port; [javac] ^^^^ [javac] The field MonetConnection.port is never read locally [javac] ---------- [javac] ---------- [javac] 5. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetConnection.java [javac] (at line 1515) [javac] private final String getValue(char[] chrLine, int start, int stop) { [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [javac] The method getValue(char[], int, int) from the type MonetConnection.ResultSetResponse is never used locally [javac] ---------- [javac] ---------- [javac] 6. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetConnection.java [javac] (at line 2090) [javac] int lastState = linetype; [javac] ^^^^^^^^^ [javac] The local variable lastState is never read [javac] ---------- [javac] ---------- [javac] 7. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetConnection.java [javac] (at line 2175) [javac] int columncount = parseNumber(soh); [javac] ^^^^^^^^^^^ [javac] The local variable columncount is never read [javac] ---------- [javac] ---------- [javac] 8. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetSocketBlockMode.java [javac] (at line 24) [javac] import java.util.*; [javac] ^^^^^^^^^ [javac] The import java.util is never used [javac] ---------- [javac] ---------- [javac] 9. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/util/MonetRedirectException.java [javac] (at line 23) [javac] public class MonetRedirectException extends Exception { [javac] ^^^^^^^^^^^^^^^^^^^^^^ [javac] The serializable class MonetRedirectException does not declare a static final serialVersionUID field of type long [javac] ---------- [javac] ---------- [javac] 10. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetDatabaseMetaData.java [javac] (at line 1402) [javac] private static String dq(String in) { [javac] ^^^^^^^^^^^^^ [javac] The method dq(String) from the type MonetDatabaseMetaData is never used locally [javac] ---------- [javac] ---------- [javac] 11. WARNING in /home/sjoerd/src/devel/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetSavepoint.java [javac] (at line 139) [javac] private static synchronized int getHighestId() { [javac] ^^^^^^^^^^^^^^ [javac] The method getHighestId() from the type MonetSavepoint is never used locally [javac] ---------- [javac] 11 problems (11 warnings) jar_jdbcclient: [echo] Building JDBC + JdbcClient convenience jar [unjar] Expanding: /home/sjoerd/src/devel/sql/Linux/src/jdbc/monetdb-1.4-jdbc.jar into /home/sjoerd/src/devel/sql/Linux/src/jdbc [jar] Building jar: /home/sjoerd/src/devel/sql/Linux/src/jdbc/jdbcclient-1.4.jar BUILD SUCCESSFUL Total time: 16 seconds