I seem to be getting off to a SLOW start here...
I am trying to build Hibernate 2.0.3 using
JDK 1.2.2 and I am getting quite a few compile errors in the build.
Our application must stay in JDK 1.2.2 rather than JDK 1.4.
Should I be trying to build a different release of Hibernate?
Any ideas why I'm getting these build errors?
These are the error messages I am getting...
http://files.blog-city.com/files/aa/101 ... start.html
init:
[echo] Build Hibernate-2.0.3 (2003-10-22 11:32:12)
[copy] Copying 40 files to C:\hibernate-2.0.3\build
compile:
[javac] Compiling 462 source files to C:\hibernate-2.0.3\build
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\type\AssociationType.java:26
: The type nested type net.sf.hibernate.type.AssociationType. 1 can't be static.
Static members can only occur in interfaces and top-level classes.
[javac] public static final ForeignKeyType FOREIGN_KEY_TO_PARENT = new F
oreignKeyType() {
[javac] ^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\type\AssociationType.java:26
: Interface fields can't be private or protected: nested type net.sf.hibernate.t
ype.AssociationType. 1
[javac] public static final ForeignKeyType FOREIGN_KEY_TO_PARENT = new F
oreignKeyType() {
[javac] ^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\type\AssociationType.java:34
: The type nested type net.sf.hibernate.type.AssociationType. 2 can't be static.
Static members can only occur in interfaces and top-level classes.
[javac] public static final ForeignKeyType FOREIGN_KEY_FROM_PARENT = new
ForeignKeyType() {
[javac]
^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\type\AssociationType.java:34
: Interface fields can't be private or protected: nested type net.sf.hibernate.t
ype.AssociationType. 2
[javac] public static final ForeignKeyType FOREIGN_KEY_FROM_PARENT = new
ForeignKeyType() {
[javac]
^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\type\ObjectType.java:252:
Th
e method net.sf.hibernate.type.ForeignKeyType getForeignKeyType() declared in cl
ass net.sf.hibernate.type.ObjectType cannot override the method of the same sign
ature declared in interface net.sf.hibernate.type.AssociationType. They must ha
ve the same return type.
[javac] public ForeignKeyType getForeignKeyType() {
[javac] ^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\collection\Map.java:375:
Cla
ss net.sf.hibernate.collection.Map. Entry not found.
[javac] return ( (Map.Entry) entry ).getValue()!=null;
[javac] ^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\impl\SessionImpl.java:95:
Bl
ank final variable 'autoClose' may not have been initialized. It must be assigne
d a value in an initializer, or in every constructor. [javac] private final boolean autoClose;
[javac] ^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\impl\SessionImpl.java:96:
Bl
ank final variable 'timestamp' may not have been initialized. It must be assigne
d a value in an initializer, or in every constructor. [javac] private final long timestamp;
[javac] ^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\impl\SessionImpl.java:103:
B
lank final variable 'entitiesByKey' may not have been initialized. It must be as
signed a value in an initializer, or in every constructor.
[javac] private final Map entitiesByKey; //key=Key, value=Object
[javac] ^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\impl\SessionImpl.java:104:
B
lank final variable 'proxiesByKey' may not have been initialized. It must be ass
igned a value in an initializer, or in every constructor. [javac] private final Map proxiesByKey; //key=Key, value=HibernateProxy
[javac] ^
[javac] C:\hibernate-2.0.3\src\net\sf\hibernate\test\FooBarTest.java:281:
In
compatible type for =. Explicit cast needed to convert char to byte. [javac] bytes[1]='o';
[javac] ^
[javac] 11 errors
BUILD FAILED
file:C:/hibernate-2.0.3/build.xml:127: Compile failed; see the compiler error ou
tput for details.
Total time: 49 seconds