IllegalArgumentException in jmod for modules without version
Alan Bateman
Alan.Bateman at oracle.com
Sun Apr 1 02:58:51 PDT 2012
On 01/04/2012 04:56, Debasish Ray Chawdhuri wrote:
> Hi,
>
> I am getting
>
> java.lang.IllegalArgumentException: default: Version does not start with a
> number
>
> in jmod if I try to install a module without an explicit version. What
> happens is that if that if there is no explicit version, jmod creates a
> directory named 'default' instead of a version number, which then fails the
> test of numeric start of a version number. Is it a bug?
>
Yes, a bug or rather an area that needs work as jpkg will fail when
attempting to create a jmod package for a module that doesn't have a
module version and "jmod install" fails too when you attempt to install
from a directory with the raw class files (which I assume is what you
are doing). I suspect this one slipped through because it's only
recently that javac allowed compiling a module without a version number.
-Alan.
More information about the jigsaw-dev
mailing list