db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dag.Wan...@Sun.COM (Dag H. Wanvik)
Subject Re: [jira] Updated: (DERBY-3684) Wire the vti demo into the build.
Date Thu, 22 May 2008 21:26:39 GMT

Hi Rick,

Rick Hillegas <Richard.Hillegas@Sun.COM> writes:

> Dag H. Wanvik wrote:
>> Just a nit, I see more compiler warning after this fix (building with
>> Java 1.6 or 1.5 made no difference for me) due to the ResultSet method
>> deprecations. I guess this can't be suppressed..?

I did not use the -quiet option; this is the first lines of what I saw

compile-vtidemo:
    [javac] Compiling 18 source files to /export/home/tmp/derby/sb/sb1/classes
    [javac] /export/home/tmp/derby/sb/sb1/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/VTITemplate.java:354:
warning: [deprecation] getUnicodeStream(java.lang.String) in java.sql.ResultSet has been deprecated
    [javac]     public java.io.InputStream getUnicodeStream(String columnName) throws SQLException
{
    [javac]                                ^
    [javac] /export/home/tmp/derby/sb/sb1/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/VTITemplate.java:300:
warning: [deprecation] getBigDecimal(java.lang.String,int) in java.sql.ResultSet has been
deprecated
    [javac]     public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException
{
    [javac]                       ^
    [javac] /export/home/tmp/derby/sb/sb1/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/VTITemplate.java:209:
warning: [deprecation] getUnicodeStream(int) in java.sql.ResultSet has been deprecated

    etc.

but I see there are many other similar ones as well in existing code
so I guess it's OK. I had deprecation off in my ant.properties though.

Dag

> which java
/usr/local/java/jdk1.5/bin/java
> cat ant.properties
j13lib=/usr/local/java/jdk1.3/jre/lib
j14lib=/usr/local/java/j2sdk1.4.2_13/jre/lib
j15lib=/usr/local/java/jdk1.5/jre/lib
jdk16=/usr/local/java/jdk1.6.0
proceed=false
sane=true
debug=true
#jsr169compile.classpath=

#java15compile.classpath=/usr/local/java/jdk1.6.0/jre/lib/rt.jar
#junit=/usr/local/share/java/junit3.8.2/junit.jar
#servlet24= ?? (see build.xml...)
#ant.library.dir=/usr/local/share/java/apache-ant-1.6.5/lib
#deprecation=on

Mime
View raw message