Well, I did the following:

- Copied the distributed HSQLD Directory to a test Directory.
- Copied my new code to the required subdirectories.
- Ran a Ant clean (see below)
- Ran Ant build (see below)

Saw a lot of warnings but no problems with my code. Ran again with the new jar and still seeing the old Swing code. So I extracted the DatabaseMangerSwing.class file from the new JAR file and ran a decompiler against it. Found that it was my new code.20

Not knowing how to pass the -Xlint:unchecked to the ant build. I compiled all classes that had the "uses unchecked or unsafe operations" and added to this email, just for clarity. This detail was not in the Ant build output.20

Not sure if this was the output from 1.4 or 1.5. Seems not matter because most warnings are still there for both.20

I am still doing something stupid!...?
_________________________________________________________________________


C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\build ant clean
Buildfile: build.xml

clean-docwork:

clean:
[delete] Deleting directory C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes


BUILD SUCCESSFUL
Total time: 3 seconds

_________________________________________________________________________

C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\build ant jar
Buildfile: build.xml

init:

-javaversion4:

-javaversion2:

-prepare:
[mkdir] Created dir: C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes


codeswitcher:
[javac] Compiling 1 source file to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes
[javac] Note: C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\util\CodeSwitcher.java20
uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.


C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:136:20
warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
s.vSwitchOn.addElement(p.substring(1));
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:138: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
s.vSwitchOff.addElement(p.substring(1));
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:235: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
vList.addElement(path);
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:266: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
v1.addElement(v.elementAt(i));
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:303: warning: [unchecked] unchecked call to insertElementAt(E,int) as a member of the raw type java.util.Vector
v.insertElementAt("/*", ++i);
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:309: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
vSwitches.addElement(s);
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:323: warning: [unchecked] unchecked call to insertElementAt(E,int) as a member of the raw type java.util.Vector
v.insertElementAt("*/", i - 1);
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:327: warning: [unchecked] unchecked call to insertElementAt(E,int) as a member of the raw type java.util.Vector
v.insertElementAt("*/", i++);
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:332: warning: [unchecked] unchecked call to insertElementAt(E,int) as a member of the raw type java.util.Vector
v.insertElementAt("/*", ++i);
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:347: warning: [unchecked] unchecked call to insertElementAt(E,int) as a member of the raw type java.util.Vector
v.insertElementAt("*/", i - 1);
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:351: warning: [unchecked] unchecked call to insertElementAt(E,int) as a member of the raw type java.util.Vector
v.insertElementAt("*/", i++);
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB 1.7.2.8\org\hsqldb\util\CodeSwitcher.java:412: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
v.addElement(line);
^


12 warnings


switchtojdk11:

switchtojdk12:

switchtojdk14:


store:
[javac] Compiling 4 source files to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes


lib:
[javac] Compiling 38 source files to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes
[javac] Note: C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\lib\java\JavaSystem.java20
uses unchecked or unsafe operations.
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB DatabaseManagerSwing\org\hsqldb\lib\java\JavaSystem.java:132:20
warning: [unchecked] unchecked conversion found : sun.security.action.GetPropertyAction required: java.security.PrivilegedAction<T
(String) java.security.AccessController.doPrivileged(a));
^
C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspace\HSQLDB DatabaseManagerSwing\org\hsqldb\lib\java\JavaSystem.java:132:20
warning: [unchecked] unchecked method invocation: <TdoPrivileged(java.security.PrivilegedAction<T) in java.security.AccessController is applied to (sun.security.action.GetPropertyAction)
((String) java.security.AccessController.doPrivileged(a));
^


    [javac] Note: Recompile with -Xlint:unchecked for details.

-javajsse:
     [echo] ant.java.hasjsse3Dtrue

classes:
[javac] Compiling 111 source files to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:65:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Class for a varargs call
[javac] cast to java.lang.Class[] for a non-varargs call and to suppress this warning
[javac] java.math.BigInteger.class.getMethod("unscaledValue", null);
[javac] ^
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:209:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] bigint 3D (BigInteger) unscaledValueMethod.invoke(o, null);
[javac] ^
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:318:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] null);
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 warnings
[copy] Copying 13 files to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes\org\hsqldb\resources


classes12:
[javac] Compiling 1 source file to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:65:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Class for a varargs call
[javac] cast to java.lang.Class[] for a non-varargs call and to suppress this warning
[javac] java.math.BigInteger.class.getMethod("unscaledValue", null);
[javac] ^
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:209:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] bigint 3D (BigInteger) unscaledValueMethod.invoke(o, null);
[javac] ^
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:318:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] null);
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 warnings


classes14:
[javac] Compiling 5 source files to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:65:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Class for a varargs call
[javac] cast to java.lang.Class[] for a non-varargs call and to suppress this warning
[javac] java.math.BigInteger.class.getMethod("unscaledValue", null);
[javac] ^
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:209:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] bigint 3D (BigInteger) unscaledValueMethod.invoke(o, null);
[javac] ^
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:318:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] null);
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 warnings


util:
[javac] Compiling 42 source files to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:65:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] bigint 3D (BigInteger) unscaledValueMethod.invoke(o, null);
[javac] ^
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:209:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] bigint 3D (BigInteger) unscaledValueMethod.invoke(o, null);
[javac] ^
[javac] C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\src\org\hsqldb\rowio\RowOutputBinary.java:318:20
warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] null);
[javac] ^
[javac] Note: * 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] 3 warnings
[copy] Copying 1 file to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes\org\hsqldb\util


swing:
[javac] Compiling 6 source files to C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
.\org\hsqldb\jdbc\jdbcConnection.java:1604:20
warning: getTypeMap() in org.hsqldb.jdbc.jdbcConnection implements getTypeMap() in java.sql.Connection; return type requires unchecked conversion


found : java.util.Map
required: java.util.Map<java.lang.String,java.lang.Class<?
public synchronized Map getTypeMap() throws SQLException {
^
.\org\hsqldb\DatabaseManager.java:94:20
warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
v.addElement(db.getURI());
^
jar:
[jar] Building jar: C:\Documents and Settings\Ed Taylor\My Documents\hsqldb\lib\hsqldb.jar


BUILD SUCCESSFUL
Total time: 48 seconds



Thanks in Advance...
IchBin
_________________________________________________________________________

'The meeting of two personalities is like the contact of two chemical if there is any reaction, both are transformed.'
- Carl Gustav Jung, (1875-1961), psychiatrist and psychologist




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
hsqldb-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers

Reply via email to