Re: wscompile issues

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: wscompile issues

David Holmes
Hi Peter,

Moving this over to jigsaw-dev.


On 29/08/2017 3:45 PM, Peter Major wrote:

> Hi,
> I'm not quite sure if this is the right mailing list to ask, but I'm
> wondering whether there is a bug in wscompile in the build 9+181 version.
> In a project of mine, I have a java ant task calling
> directly to generate some classes,
> however it seems like that although I can influence the --add-modules
> parameter for the java process itself, when wscompile eventually will
> try to compile the classes it generated, it will fail to specify
> module, and as such the compilation fails with something like:
>       [java]
> /Users/aldaris/projects/foo/target/generated-sources/wscompile/com/mycompany/
> error: cannot access Detail
>       [java]                 e.getFaultString(), e.getFaultActor(),
> e.getDetail());
> [java]                                                                   ^
>       [java]   class file for javax.xml.soap.Detail not found
>       [java] Note: Some input files use unchecked or unsafe operations.
>       [java] Note: Recompile with -Xlint:unchecked for details.
>       [java] 1 error
>       [java] error: compilation failed, errors should have been reported
> Is this a bug in the JDK or am I just missing something glaringly obvious?
> Thanks for your help.
> Regards,
> Peter Major