Re: Pre-processing during build

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: Markus KARG <markus(at)headcrashing(dot)eu>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Pre-processing during build
Date: 2015-06-16 21:02:40
Message-ID: CAB=Je-G1+7x4LabgB6A4cF_RY0CV1RwbDryFXa0GioB_vg7o=g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

2015-06-16 22:30 GMT+03:00 Markus KARG <markus(at)headcrashing(dot)eu>:
> The answer is pretty simple: Try it out. :-)
>
> Just compile a JRE 8 class down to byte code level 6 and load it on Java
> level 7. That's what I proposed. Nothing else. It really bet will work
> unless you try to INSTANTIATE JRE-only classes, but it should LOAD. And
> nothing more we need.

Markus, can you please be more explicit in your suggestion?

I did try a simple "Hello, world" and it does not run in stock JDKs of
MacOS: https://gist.github.com/vlsi/aeeb4a61d9c2b67ad213
Even if you manage to make that fly, that would be built on sand.

If you read Spring java support blog post
(https://spring.io/blog/2015/04/03/how-spring-achieves-compatibility-with-java-6-7-and-8)
you'll spot that they use separate _classes_ to isolate JDK8 features.

Vladimir

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mark Rotteveel 2015-06-17 06:32:34 Re: Pre-processing during build
Previous Message Markus KARG 2015-06-16 19:40:57 Re: Pre-processing during build