PDA

View Full Version : m*0.3-157-src.zip:compile errors JDK 1.4.0_01



kestlert
09-22-2002, 10:00 PM
Hi,
running build on NT4.0/SP6 and JDK "1.4.0-b92" (1.4.0_01) (ANT 1.5) I get some errors:
[javac] F:\Programme\Mondrian\mondrian-0.3\src\main\mondrian\util\Schedule.j
ava:1042: warning: as of release 1.4, assert is a keyword, and may not be used a
s an identifier
[javac] public static void assert(boolean b) {
[javac] ^
[javac] F:\Programme\Mondrian\mondrian-0.3\src\main\mondrian\util\Schedule.j
ava:1047: warning: as of release 1.4, assert is a keyword, and may not be used a
s an identifier
[javac] public static void assert(boolean b, String s) {
[javac] ^
[javac] F:\Programme\Mondrian\mondrian-0.3\src\main\mondrian\resource\Chaina
bleRuntimeException.java:56: initCause(java.lang.Throwable) in mondrian.resource
.ChainableRuntimeException cannot override initCause(java.lang.Throwable) in jav
a.lang.Throwable; attempting to use incompatible return type
[javac] found : void
[javac] required: java.lang.Throwable
[javac] public void initCause(Throwable cause)
[javac] ^
[javac] F:\Programme\Mondrian\mondrian-0.3\src\main\mondrian\resource\Chaina
bleError.java:52: initCause(java.lang.Throwable) in mondrian.resource.ChainableE
rror cannot override initCause(java.lang.Throwable) in java.lang.Throwable; atte
mpting to use incompatible return type
[javac] found : void
[javac] required: java.lang.Throwable
[javac] public void initCause(Throwable cause)
[javac] ^
[javac] F:\Programme\Mondrian\mondrian-0.3\src\main\mondrian\resource\Chaina
bleException.java:49: initCause(java.lang.Throwable) in mondrian.resource.Chaina
bleException cannot override initCause(java.lang.Throwable) in java.lang.Throwab
le; attempting to use incompatible return type
[javac] found : void
[javac] required: java.lang.Throwable
[javac] public void initCause(Throwable cause)
[javac] ^
[javac] 3 errors
[javac] 16 warnings
BUILD FAILED
file:F:/Programme/Mondrian/mondrian-0.3/build.xml:156: Compile failed; see the c
ompiler error output for details.
Total time: 27 seconds
F:\Programme\Mondrian\mondrian-0.3>
Any clue?

jhyde
09-23-2002, 12:43 PM
We haven't built mondrian on jdk 1.4 before. I have fixed these errors in change 163 (you'll have to connect to the perforce server to get this), or you can switch to jdk 1.3.