-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Thomas,
It's a shame you're dropping Java 5 support. If Java 6 is required, we won't be able to use H2 on some Android devices or PowerPC Macs. If the only things used from Java 6 are convenience methods like Arrays.copyOf(), I'd be happy to contribute a utility class to maintain compatibility with Java 5. Cheers, Michael On 13/03/13 06:54, Thomas Mueller wrote: > Hi, > > I'm sorry but Java 5 is no longer supported. I will update the > documentation. > > Regards, Thomas > > > > On Mon, Mar 11, 2013 at 6:22 PM, Adam B <[email protected] > <mailto:[email protected]>> wrote: > > Hello all, > > The official build instructions > (http://www.h2database.com/html/build.html) seem to indicate that > Java 1.5 is still supported. Is this still true? I'm unable to > build on Sun Java 1.5.0_15 (Don't ask me why we're using such an > old version). > > AFAIK java.util.Arrays.copyOf() is a 1.6 API. The build errors > follow. > > *$ ./build.sh jar* Target: jar Deleting temp Deleting docs > Compiling 569 classes > src/main/org/h2/mvstore/type/ObjectType.java:89: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:94: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:99: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:104: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:149: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:209: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:352: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:357: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:368: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:373: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:378: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectType.java:402: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectTypeFactory.java:15: method does > not override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectTypeFactory.java:20: method does > not override a method from its superclass @Override ^ > src/main/org/h2/mvstore/type/ObjectTypeFactory.java:30: method does > not override a method from its superclass @Override ^ > src/main/org/h2/mvstore/Page.java:438: cannot find symbol symbol : > method copyOf(long[],int) location: class java.util.Arrays children > = Arrays.copyOf(children, children.length); ^ > src/main/org/h2/mvstore/Page.java:439: cannot find symbol symbol : > method copyOf(org.h2.mvstore.Page[],int) location: class > java.util.Arrays childrenPages = Arrays.copyOf(childrenPages, > childrenPages.length); ^ src/main/org/h2/mvstore/Page.java:447: > cannot find symbol symbol : method copyOf(long[],int) location: > class java.util.Arrays counts = Arrays.copyOf(counts, > counts.length); ^ src/main/org/h2/mvstore/Page.java:464: cannot > find symbol symbol : method copyOf(java.lang.Object[],int) > location: class java.util.Arrays keys = Arrays.copyOf(keys, > keys.length); ^ src/main/org/h2/mvstore/Page.java:485: cannot find > symbol symbol : method copyOf(java.lang.Object[],int) location: > class java.util.Arrays values = Arrays.copyOf(values, > values.length); ^ src/main/org/h2/mvstore/MVStoreTool.java:64: > load(java.io.InputStream) in java.util.Properties cannot be applied > to (java.io.StringReader) prop.load(new StringReader(new > String(header, "UTF-8"))); ^ > src/main/org/h2/mvstore/rtree/SpatialType.java:40: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/rtree/SpatialType.java:60: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/rtree/SpatialType.java:65: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/rtree/SpatialType.java:70: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/rtree/SpatialType.java:89: method does not > override a method from its superclass @Override ^ > src/main/org/h2/mvstore/rtree/SpatialType.java:108: method does not > override a method from its superclass @Override ^ 27 errors > Exception in thread "main" java.lang.RuntimeException: An error > occurred at org.h2.build.BuildBase.javac(BuildBase.java:864) at > org.h2.build.Build.compile(Build.java:179) at > org.h2.build.Build.compile(Build.java:90) at > org.h2.build.Build.jar(Build.java:356) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > at org.h2.build.BuildBase.invoke(BuildBase.java:241) at > org.h2.build.BuildBase.runTarget(BuildBase.java:207) at > org.h2.build.BuildBase.run(BuildBase.java:188) at > org.h2.build.Build.main(Build.java:35) > > > > > Thanks - Adam B. > > -- You received this message because you are subscribed to the > Google Groups "H2 Database" group. To unsubscribe from this group > and stop receiving emails from it, send an email to > [email protected] > <mailto:h2-database%[email protected]>. To post to > this group, send email to [email protected] > <mailto:[email protected]>. Visit this group at > http://groups.google.com/group/h2-database?hl=en. For more options, > visit https://groups.google.com/groups/opt_out. > > > > > -- You received this message because you are subscribed to the > Google Groups "H2 Database" group. To unsubscribe from this group > and stop receiving emails from it, send an email to > [email protected]. To post to this group, > send email to [email protected]. Visit this group at > http://groups.google.com/group/h2-database?hl=en. For more options, > visit https://groups.google.com/groups/opt_out. > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJRQdnEAAoJEBEET9GfxSfMahUIAMCzr3UzmbQGlE+FQgHwkZfX pAwObKm76F66ZG8hkxEU50NEt1vwiYsEG9t2qKltS/84ms2aa+8B7HEUQmma5nWe z7NVsTILgB3jAC4pk1GJRkZBXK7+6t3NihycOENPEP9oMuP+4onAcr9CovEkvBmr H1zcygwDOf2+Ac1EMyoJkKQyNHFnNTqVWTFKaOYzPfmGHx9TeO9In+f9erHyWa6l fp5CTBaeuqA5KkT8+l3t5q0zrUJVSMa8mQcaJqe2cEQZyItMoqAKo3/MJgEAlpli qr4IOMHt5KdHGIZhNsf2tE1baz3hu+n16kXhtwhZVqgkjQa2iqZObBHlVgyj6Q0= =QixP -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
