A lot of embedded Java environments are at 1.4 level.

It's not important to compile using 1.4, but it is important to
support it at run time.
We are using H2 on a couple of embedded devices using Java 1.4
(unfortunately with mixed results because of the various H2 bugs).



On May 17, 1:05 pm, Thomas Kellerer <google-gro...@sql-workbench.net>
wrote:
> The question is: why would any serious project still use an de-
> supported Java version?
>
> On 17 Mai, 14:02, Jan Kotek <openco...@gmail.com> wrote:
>
> > Hi Thomas,
> > I was using retrotranslator before, it works very nice. It does not
> > just 'strip away' everything, but have it's own implementation of
> > enums and other things. It also handles some 1.5 specific classes (for
> > example StringBuilder is replaced by StringBuffer).
>
> > I would recommend providing two distribution jars (one native 1.5
> > bytecode, one backport to 1.3). Native 1.5 bytecode can run little bit
> > faster.
>
> > Regards,
> > Jan
>
> > On Sat, May 16, 2009 at 6:44 PM, Thomas Kellerer
>
> > <google-gro...@sql-workbench.net> wrote:
>
> > > I don't think support for 1.4 is important. How long is it that this
> > > has been de-supported by Sun?
>
> > > Even 1.5 will be de-supported by Sun end of this year (October).
>
> > > Just my .02€
>
> > > Thomas
>
> > > On 16 Mai, 12:20, Thomas Mueller <thomas.tom.muel...@gmail.com> wrote:
> > >> Hi,
>
> > >> So far the H2 source code is compatible to Java 1.4. I like to use
> > >> generics, extended for loops, and so on. Java 5.0 concurrency
> > >> utilities are not required and I don't plan to use them in the near
> > >> future.
>
> > >> Java 1.4 could still be supported using Retrotranslator, Retroweaver,
> > >> or using -target jsr14:
>
> > >>http://www.ibm.com/developerworks/java/library/j-jtp02277.htmlhttp://...
>
> > >> Would this be a problem for anybody? Does anybody have experience
> > >> using any of the above technologies?
>
> > >> Regards,
> > >> Thomas
>
> > >> P.S. I didn't know about -target jsr14. Here is an example:
>
> > >> public class TestJSR14 {
> > >>     public static void main(String[] args) {
> > >>         for(String a : args) {
> > >>             System.out.println(a);
> > >>         }
> > >>     }}
>
> > >> javac -source 1.5 -target jsr14 TestJSR14.java
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to h2-database@googlegroups.com
To unsubscribe from this group, send email to 
h2-database+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to