dev@glassfish.java.net

Re: decision w.r.t. Java class version for GFv3-trunk sources ...

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Tue, 10 Mar 2009 16:59:53 -0700

Rajiv Mordani wrote:
>
>
> Kedar Mhaswade wrote:
>> Rajiv,
>>
>> Rajiv Mordani wrote:
>>> Hi Kedar,
>>>
>>> Kedar Mhaswade wrote:
>>>> 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.
>>>
>>> Do we know what the list of modules are that want to run with Java 5
>>> runtime?
>>
>> No, but it is a good time to maintain a list of such modules. Please see
>> http://is.gd/jYI4.
>>
>> Developers -- add your module to this list if you need to support Java 5
>> runtime. If this list is empty, we should consider removing this
>> requirement,
>> so act on it, please.
>
> I see that the list is indeed empty. So should we remove this requirement?

Yes. That's the plan. Jane, can you please confirm?

-Kedar

>
> - Rajiv
>
>>
>>>
>>>> 4. asadmin will detect an attempt to run GlassFish with Java 5
>>>> Runtime See: 7038 and will flag it as an error.
>>>
>>> If asadmin is not going to allow running GlassFish with Java 5
>>> runtime what's the point of making the target 1.5? Is the expectation
>>> that some of these modules could be used outside of GlassFish and
>>> that in such cases they may not want to move to JDK 6?
>>
>> Right, that's the theory.
>>
>> -Kedar
>>
>>>
>>> - Rajiv
>>>
>>>>
>>>>
>>>> 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_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> 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_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>