db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernt M. Johnsen" <Bernt.John...@Sun.COM>
Subject Re: Compilation problem - head of trunk and JDK6
Date Wed, 24 Oct 2007 12:49:43 GMT
I get the same errors. My changes in  NetworkServerControlImpl.java
imports are:

added 
import org.apache.derby.iapi.services.mbeans.ManagementService;
import javax.management.ObjectName;

removed:
import org.apache.derby.iapi.services.info.JVMInfo;

AND

I switched to Netbeans 6.0beta2 and JDK1.6u3 (it worked with 6.0beta1
and JDK1.6u2).

>>>>>>>>>>>> Jørgen Løland wrote (2007-10-24 14:39:18):
> In the current proof of concept replication code, we boot the slave 
> database by calling
> 
> Database db =
>    (Database)Monitor.findService(Property.DATABASE_MODULE, dbname);
> 
> This requires org.apache.derby.iapi.db.Database to be imported. With the 
> head of trunk, this import results in compilation errors that seem to be 
> related to VTIs and probably the new requirements to compile environment 
> (see further down for compile error). Any ideas for how I should proceed 
> with this? The problem was probably introduced this or last week.
> 
> To get this error, add "import org.apache.derby.iapi.db.Database" to 
> NetworkServerControlImpl.java and compile with JDK6.
> 
> 
> $ ant all
> <snip>
> 
> compile:
>     [javac] Compiling 17 source files to 
> /export/home/derby/clean1/trunk/classes
>     [javac] 
> /export/home/derby/clean1/trunk/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/derby/clean1/trunk/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/derby/clean1/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/VTITemplate.java:209:

> warning: [deprecation] getUnicodeStream(int) in java.sql.ResultSet has been 
> deprecated
>     [javac]     public java.io.InputStream getUnicodeStream(int 
> columnIndex) throws SQLException {
>     [javac]                                ^
>     [javac] 
> /export/home/derby/clean1/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/VTITemplate.java:155:

> warning: [deprecation] getBigDecimal(int,int) in java.sql.ResultSet has 
> been deprecated
>     [javac]     public BigDecimal getBigDecimal(int columnIndex, int 
> scale) throws SQLException {
>     [javac]                       ^
>     [javac] 
> /export/home/derby/clean1/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/StringColumnVTI.java:70:

> org.apache.derbyDemo.vtis.core.StringColumnVTI.SimpleBlob is not abstract 
> and does not override abstract method getBinaryStream(long,long) in 
> java.sql.Blob
>     [javac]     public  static  final   class   SimpleBlob 
> implements      Blob
>     [javac]                             ^
>     [javac] 
> /export/home/derby/clean1/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/StringColumnVTI.java:148:

> org.apache.derbyDemo.vtis.core.StringColumnVTI.SimpleClob is not abstract 
> and does not override abstract method getCharacterStream(long,long) in 
> java.sql.Clob
>     [javac]     public  static  final   class   SimpleClob 
> implements      Clob
>     [javac]                             ^
>     [javac] 
> /export/home/derby/clean1/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/XmlVTI.java:39:

> org.apache.derbyDemo.vtis.core.XmlVTI is not abstract and does not override 
> abstract method updateNClob(java.lang.String,java.io.Reader) in 
> java.sql.ResultSet
>     [javac] public  class   XmlVTI  extends StringColumnVTI
>     [javac]         ^
>     [javac] 
> /export/home/derby/clean1/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/example/PropertyFileVTI.java:35:

> org.apache.derbyDemo.vtis.example.PropertyFileVTI is not abstract and does 
> not override abstract method updateNClob(java.lang.String,java.io.Reader) 
> in java.sql.ResultSet
>     [javac] public    class   PropertyFileVTI  extends FlatFileVTI
>     [javac]           ^
>     [javac] 
> /export/home/derby/clean1/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/example/SubversionLogVTI.java:35:

> org.apache.derbyDemo.vtis.example.SubversionLogVTI is not abstract and does 
> not override abstract method updateNClob(java.lang.String,java.io.Reader) 
> in java.sql.ResultSet
>     [javac] public    class   SubversionLogVTI  extends FlatFileVTI
>     [javac]           ^
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 5 errors
>     [javac] 4 warnings
> 
> BUILD FAILED
> 
> -- 
> Jørgen Løland

-- 
Bernt Marius Johnsen, Database Technology Group, 
Staff Engineer, Derby/Java DB
Sun Microsystems, Trondheim, Norway

Mime
View raw message