Can't compile new version 1.3.170 from scratch

55 views
Skip to first unread message

Manfred Rosenboom

unread,
Nov 30, 2012, 3:11:09 AM11/30/12
to h2-da...@googlegroups.com
Hi Thomas,

I have just downloaded the current version and have tried (as always) to compile the new version in my H2 Eclipse project. Works usually without any problem. But with the new 1.3.170 version I get the following compile errors:

Description    Resource    Path    Location    Type
The method getMaxLength(Object) of type ObjectType.AutoDetectDataType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 369    Java Problem
The method write(ByteBuffer, Object) of type ObjectType.AutoDetectDataType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 374    Java Problem
The method read(ByteBuffer) of type ObjectType.AutoDetectDataType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 379    Java Problem
The method asString() of type ObjectType.AutoDetectDataType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 403    Java Problem
The method setParent(DataTypeFactory) of type SampleTypeFactory must override a superclass method    SampleTypeFactory.java    /H2 Database/h2_test/org/h2/test/store    line 18    Java Problem
The method read(ByteBuffer) of type ObjectType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 150    Java Problem
The method asString() of type ObjectType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 210    Java Problem
The method getDataType(Class<?>) of type SampleTypeFactory must override a superclass method    SampleTypeFactory.java    /H2 Database/h2_test/org/h2/test/store    line 34    Java Problem
The method getMemory(Object) of type ObjectType.AutoDetectDataType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 353    Java Problem
The method compare(Object, Object) of type ObjectType.AutoDetectDataType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 358    Java Problem
The method buildDataType(String) of type SampleTypeFactory must override a superclass method    SampleTypeFactory.java    /H2 Database/h2_test/org/h2/test/store    line 23    Java Problem
The method deserialize(byte[]) of type new JavaObjectSerializer(){} must override a superclass method    TestJavaObjectSerializer.java    /H2 Database/h2_test/org/h2/test/jdbc    line 51    Java Problem
The method compare(Object, Object) of type ObjectType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 90    Java Problem
The method getMaxLength(Object) of type ObjectType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 95    Java Problem
The method getMemory(Object) of type ObjectType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 100    Java Problem
The method write(ByteBuffer, Object) of type ObjectType must override a superclass method    ObjectType.java    /H2 Database/h2_src/org/h2/mvstore/type    line 105    Java Problem
The method serialize(Object) of type new JavaObjectSerializer(){} must override a superclass method    TestJavaObjectSerializer.java    /H2 Database/h2_test/org/h2/test/jdbc    line 44    Java Problem
The method getMaxLength(Object) of type SpatialType must override a superclass method    SpatialType.java    /H2 Database/h2_src/org/h2/mvstore/rtree    line 61    Java Problem
The method remove() of type new Iterator<Long>(){} must override a superclass method    SequenceMap.java    /H2 Database/h2_test/org/h2/test/store    line 60    Java Problem
The method compare(Object, Object) of type SpatialType must override a superclass method    SpatialType.java    /H2 Database/h2_src/org/h2/mvstore/rtree    line 41    Java Problem
The method hasNext() of type new Iterator<Long>(){} must override a superclass method    SequenceMap.java    /H2 Database/h2_test/org/h2/test/store    line 50    Java Problem
The method next() of type new Iterator<Long>(){} must override a superclass method    SequenceMap.java    /H2 Database/h2_test/org/h2/test/store    line 55    Java Problem
The method asString() of type SpatialType must override a superclass method    SpatialType.java    /H2 Database/h2_src/org/h2/mvstore/rtree    line 109    Java Problem
The method read(ByteBuffer) of type SpatialType must override a superclass method    SpatialType.java    /H2 Database/h2_src/org/h2/mvstore/rtree    line 90    Java Problem
The method write(ByteBuffer, Object) of type SpatialType must override a superclass method    SpatialType.java    /H2 Database/h2_src/org/h2/mvstore/rtree    line 71    Java Problem
The method getMemory(Object) of type SpatialType must override a superclass method    SpatialType.java    /H2 Database/h2_src/org/h2/mvstore/rtree    line 66    Java Problem
The method setParent(DataTypeFactory) of type ObjectTypeFactory must override a superclass method    ObjectTypeFactory.java    /H2 Database/h2_src/org/h2/mvstore/type    line 16    Java Problem
The method buildDataType(String) of type ObjectTypeFactory must override a superclass method    ObjectTypeFactory.java    /H2 Database/h2_src/org/h2/mvstore/type    line 21    Java Problem
The method getDataType(Class<?>) of type ObjectTypeFactory must override a superclass method    ObjectTypeFactory.java    /H2 Database/h2_src/org/h2/mvstore/type    line 31    Java Problem

Best
Manfred

Christoph Läubrich

unread,
Nov 30, 2012, 3:24:25 AM11/30/12
to h2-da...@googlegroups.com
Make sure you are using an appropiate compiler (1.6 or above) the messages seem to be related to the fact that in 1.5 there is no override annotation allowed for method overriden in interfaces.
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/VB9tdpSgptsJ.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.

Manfred Rosenboom

unread,
Nov 30, 2012, 4:37:13 AM11/30/12
to h2-da...@googlegroups.com, lae...@googlemail.com
Hi Christoph,

Many thanks for your hint! I had already used a Java SE 6 SDK, but I had used 1.5 compliant compiling in Eclipse.for the older H2 versions to make them compilable by default.Now everthing works okay :-)

Best,
Manfred

Thomas Mueller

unread,
Nov 30, 2012, 5:14:06 AM11/30/12
to H2 Google Group
Hi,

This is quite a common problem, I wonder if there is a way to let Eclipse give a "nice" error message (special source code with a warning or so).

Regards,
Thomas

On Fri, Nov 30, 2012 at 10:37 AM, Manfred Rosenboom <maro...@gmail.com> wrote:
1.5 compliant compiling

Reply all
Reply to author
Forward
0 new messages