You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Mark Derricutt <ma...@talios.com> on 2014/02/12 03:02:15 UTC

Re: [VOTE] [CANCELLED] Release Maven 3.2.0

Does this mean Maven will now require Java 7 as the running JVM?

Oddly - I don't see any close() method mentioned on:

  http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html

anywhere?

On 12 Feb 2014, at 12:20, Stuart McCulloch wrote:

> I suspect this is related to the change in Classworlds 2.4.1+ to use the
> new ClassLoader.close() method available in Java7 to forcibly close plugin
> ClassLoaders when the plugin/container realm is disposed. This happens
> after the Maven build is finished, but before JVM shutdown hooks run.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [VOTE] [CANCELLED] Release Maven 3.2.0

Posted by Mark Derricutt <ma...@talios.com>.
Good to know :)

On 12 Feb 2014, at 15:06, Igor Fedorenko wrote:

> No, Maven will (correctly) close URLClassLoaders on java7 and will
> continue to work as before on older JVMs. Here is the code that
> implements this logic

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [VOTE] [CANCELLED] Release Maven 3.2.0

Posted by Igor Fedorenko <ig...@ifedorenko.com>.
No, Maven will (correctly) close URLClassLoaders on java7 and will
continue to work as before on older JVMs. Here is the code that
implements this logic

https://github.com/sonatype/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/ClassWorld.java#L110

--
Regards,
Igor

On 2/11/2014, 21:02, Mark Derricutt wrote:
> Does this mean Maven will now require Java 7 as the running JVM?
>
> Oddly - I don't see any close() method mentioned on:
>
>    http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html
>
> anywhere?
>
> On 12 Feb 2014, at 12:20, Stuart McCulloch wrote:
>
>> I suspect this is related to the change in Classworlds 2.4.1+ to use the
>> new ClassLoader.close() method available in Java7 to forcibly close plugin
>> ClassLoaders when the plugin/container realm is disposed. This happens
>> after the Maven build is finished, but before JVM shutdown hooks run.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org