RFR: Try to install already installed jmod/modular jar issue
Alan Bateman
Alan.Bateman at oracle.com
Wed May 30 06:33:52 PDT 2012
On 29/05/2012 21:45, Chris Hegarty wrote:
> Trivial issue that crept in whereby if you try to install an already
> installed module it will actually remove it!
>
> If a module is already installed ( or there is a view or alias with a
> similar name ) the addition to the module directory will fail. The
> error handling code incorrectly assumes that the requested module
> should be removed.
>
> Trivial change to only attempt removal after the addition to the
> module directory has succeeded, i.e. only if there has been a change
> to the actual library or meta data.
>
> http://cr.openjdk.java.net/~chegar/jigsaw/doubleInstall_webrev.00/webrev/
>
> -Chris.
This is somewhat amusing, it's good that you spotted it. The changes
look okay to me.
-Alan.
More information about the jigsaw-dev
mailing list