You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Ole Solberg <Ol...@Sun.COM> on 2006/02/23 09:29:19 UTC

Build Errors!

Since svn rev. 379990 my builds has failed with

compile_tools_iapi:
     [javac] Compiling 4 source files to trunk/classes
     [javac] 
trunk/java/tools/org/apache/derby/impl/tools/ij/utilMain14.java:95: 
cannot resolve symbol
     [javac] symbol  : method setHoldability (int)
     [javac] location: interface java.sql.Connection
     [javac] 		conn.setHoldability(holdType);
     [javac]                     ^
     [javac] 
trunk/java/tools/org/apache/derby/impl/tools/ij/utilMain14.java:112: 
cannot resolve symbol
     [javac] symbol  : method getHoldability ()
     [javac] location: interface java.sql.Connection
     [javac] 		return conn.getHoldability();
     [javac]                            ^
     [javac] 
trunk/java/tools/org/apache/derby/impl/tools/ij/utilMain14.java:129: 
cannot resolve symbol
     [javac] symbol  : method createStatement (int,int,int)
     [javac] location: interface java.sql.Connection
     [javac]         	stmt = conn.createStatement(scrollType, 
JDBC20Translation.CONCUR_READ_ONLY, holdType);
     [javac]                            ^
     [javac] 3 errors
     [javac] 1 warning
     [javac] Compile failed; see the compiler error output for details.


See 
http://clustra.norway.sun.com/~os136789/Apache/TinderBox_Derby/testing/Full/index.html



Changes from 379848/379848 to 379990:
------------------------------------------------------------------------
r379927 | rhillegas | 2006-02-22 22:48:29 +0100 (Wed, 22 Feb 2006) | 1 line

Correct the build instructions for jdk 1.6: you only need to set jdk16 
(not jdk16.java also) in your ant.properties.
------------------------------------------------------------------------
r379939 | fuzzylogic | 2006-02-22 23:04:14 +0100 (Wed, 22 Feb 2006) | 3 
lines

DERBY-1019: Add Main-Class to derbytools.jar to allow running the tools with
java -jar.

------------------------------------------------------------------------
r379989 | djd | 2006-02-23 00:48:42 +0100 (Thu, 23 Feb 2006) | 2 lines

DEBRY-434 XATest changes to get closer to running it with client.

------------------------------------------------------------------------


Am I the only one seeing this?


-- 
Ole Solberg, Database Technology Group,
Sun Microsystems, Trondheim, Norway

Re: Build Errors!

Posted by Knut Anders Hatlen <Kn...@Sun.COM>.
Knut Anders Hatlen <Kn...@Sun.COM> writes:

> Ole Solberg <Ol...@Sun.COM> writes:
>
>> Since svn rev. 379990 my builds has failed with
>>
>> compile_tools_iapi:
>>      [javac] Compiling 4 source files to trunk/classes
>>      [javac]
>> trunk/java/tools/org/apache/derby/impl/tools/ij/utilMain14.java:95:
>> cannot resolve symbol
>>      [javac] symbol  : method setHoldability (int)
>>      [javac] location: interface java.sql.Connection
>>      [javac] 		conn.setHoldability(holdType);
>>      [javac]                     ^
>>      [javac]
>> trunk/java/tools/org/apache/derby/impl/tools/ij/utilMain14.java:112:
>> cannot resolve symbol
>>      [javac] symbol  : method getHoldability ()
>>      [javac] location: interface java.sql.Connection
>>      [javac] 		return conn.getHoldability();
>>      [javac]                            ^
>>      [javac]
>> trunk/java/tools/org/apache/derby/impl/tools/ij/utilMain14.java:129:
>> cannot resolve symbol
>>      [javac] symbol  : method createStatement (int,int,int)
>>      [javac] location: interface java.sql.Connection
>>      [javac]         	stmt = conn.createStatement(scrollType,
>> JDBC20Translation.CONCUR_READ_ONLY, holdType);
>>      [javac]                            ^
>>      [javac] 3 errors
>>      [javac] 1 warning
>>      [javac] Compile failed; see the compiler error output for details.
>
> [...]
>
>> Am I the only one seeing this?
>
> No, I get the same error. It seems like utilMain14 is being compiled
> with JDK 1.3 (which doesn't have {get,set}Holdability).

run.java is compiled with JDK 1.3, but depends on utilMain14.java
which should be compiled with JDK 1.4. Since the build scripts compile
run.java before utilMain14.java, ant tries to build utilMain14.java
with 1.3 if you have run 'ant clobber'. I changed the compilation
order and then it worked.

Fixed in revision 380071.

-- 
Knut Anders


Re: Build Errors!

Posted by Knut Anders Hatlen <Kn...@Sun.COM>.
Ole Solberg <Ol...@Sun.COM> writes:

> Since svn rev. 379990 my builds has failed with
>
> compile_tools_iapi:
>      [javac] Compiling 4 source files to trunk/classes
>      [javac]
> trunk/java/tools/org/apache/derby/impl/tools/ij/utilMain14.java:95:
> cannot resolve symbol
>      [javac] symbol  : method setHoldability (int)
>      [javac] location: interface java.sql.Connection
>      [javac] 		conn.setHoldability(holdType);
>      [javac]                     ^
>      [javac]
> trunk/java/tools/org/apache/derby/impl/tools/ij/utilMain14.java:112:
> cannot resolve symbol
>      [javac] symbol  : method getHoldability ()
>      [javac] location: interface java.sql.Connection
>      [javac] 		return conn.getHoldability();
>      [javac]                            ^
>      [javac]
> trunk/java/tools/org/apache/derby/impl/tools/ij/utilMain14.java:129:
> cannot resolve symbol
>      [javac] symbol  : method createStatement (int,int,int)
>      [javac] location: interface java.sql.Connection
>      [javac]         	stmt = conn.createStatement(scrollType,
> JDBC20Translation.CONCUR_READ_ONLY, holdType);
>      [javac]                            ^
>      [javac] 3 errors
>      [javac] 1 warning
>      [javac] Compile failed; see the compiler error output for details.

[...]

> Am I the only one seeing this?

No, I get the same error. It seems like utilMain14 is being compiled
with JDK 1.3 (which doesn't have {get,set}Holdability).


-- 
Knut Anders