hk2 should be runnable with 1.5, AFAIK. Just look at "javap -c -verbose
<AnHK2Class>" from an exploded hk2.jar (dependency).
e.g.
javap -c -verbose ConfigModel.jar (from hk2's config.jar) shows:
minor version: 0
major version: 49
So, Grizzly should be okay, I believe.
-Kedar
On Wed, Feb 18, 2009 at 9:13 AM, Justin Lee <Justin.Lee_at_sun.com> wrote:
> HK2 is actually a different project so I'm not sure if it falls under this
> or not. It's brought in during the build as an external project. I'll see
> what I can find out, though.
>
>
> Oleksiy Stashok wrote:
>
>> Hi,
>>
>> Justin, could it make problems for you?
>> I'm not sure which JDK version hk2 uses, but if it's JDK6 - it could be
>> issue to use it in Grizzly 1.x workspace?
>>
>> Thanks.
>>
>> WBR,
>> Alexey.
>>
>> On Feb 18, 2009, at 2:55 , Jeanfrancois Arcand wrote:
>>
>> FYI.
>>>
>>> -------- Original Message --------
>>> Subject: decision w.r.t. Java class version for GFv3-trunk sources ...
>>> Date: Tue, 17 Feb 2009 15:41:18 -0800
>>> From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
>>> Reply-To: dev_at_glassfish.dev.java.net
>>> To: dev_at_glassfish.dev.java.net
>>>
>>> This is what we decided in the morning meeting.
>>>
>>> http://is.gd/jTnz
>>>
>>> Let me know if we are on the same page.
>>>
>>> Giving you a summary for convenience:
>>>
>>> Since by definition, Java EE 6 requires Java SE 6 runtime, it is obvious
>>> that we
>>> use Java 6 for compilation. Thus, the javac used for compilation of Java
>>> sources
>>> in GlassFish v3 trunk is /bin/javac (or its equivalent). Now, the target
>>> for
>>> such a build is Java 6 runtime. Thus, by default, i.e. if we don't
>>> specify the
>>> -target option on javac, the generated classes would have a Major Version
>>> of
>>> 50.0 (which corresponds to Java 6). Thus, if we did that, all the modules
>>> will
>>> only create classes that can be loaded by Java 6 runtime. In order to
>>> support
>>> Java 5 runtime which might be required by some of the components
>>> (although their
>>> source are checked in to v3 trunk), here is the decision taken:
>>>
>>> 1. GlassFish v3 must be run with Java 6+ runtime only. (Can someone
>>> clarify
>>> if it applies to all the distro's?)
>>> 2. We use javac from Java 6 for compilation. Because of that, any module
>>> can
>>> declare compile-time dependencies on Java 6 classes, e.g.
>>> java.io.Console.
>>> 3. We use -target as 1.5 which means, by default, the major version of
>>> classes generated by build would be 49. This is to take care of running
>>> certain
>>> modules with Java 5 runtime.
>>> 4. asadmin will detect an attempt to run GlassFish with Java 5 Runtime
>>> See:
>>> 7038 and will flag it as an error.
>>>
>>>
>>> Regards,
>>> Kedar
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>
>