[
https://issues.apache.org/jira/browse/AXIS2-6093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Suhr updated AXIS2-6093:
--------------------------------
Description:
The {{WSDL2CodeMojo}} is marked as threadSafe. But if I compile a multi-module
project with wsdl files, targeting different packages, then my files are
mixed-up during compilation.
My guess is the usage in {{SchemaCompiler}} because these
{{SchemaPropertyLoader }} use static fields.
{code:java|title=org.apache.axis2.schema.SchemaCompiler#SchemaCompiler}
//load the writer and initiliaze the base types
writer = SchemaPropertyLoader.getBeanWriterInstance();
writer.init(this.options);
{code}
I try to create a small sample to reproduce it easily or add a test to project
was:
The {{WSDL2CodeMojo}} is marked as threadSafe. But if I compile a multi-module
project with wsdl files, targeting different packages, then my files are
mixed-up during compilation.
My guess is the usage in {{SchemaCompiler}} because these are static ones.
{code:java|title=org.apache.axis2.schema.SchemaCompiler#SchemaCompiler}
//load the writer and initiliaze the base types
writer = SchemaPropertyLoader.getBeanWriterInstance();
writer.init(this.options);
{code}
I try to create a small sample to reproduce it easily or add a test to project
Summary: wsdl2code Maven Plugin: ADB Generation is not thread safe
(was: wsdl2code Maven Plugin: SchemaPropertyLoader is not thread safe)
> wsdl2code Maven Plugin: ADB Generation is not thread safe
> ---------------------------------------------------------
>
> Key: AXIS2-6093
> URL: https://issues.apache.org/jira/browse/AXIS2-6093
> Project: Axis2
> Issue Type: Improvement
> Components: adb, Tools
> Reporter: Michael Suhr
> Priority: Major
>
> The {{WSDL2CodeMojo}} is marked as threadSafe. But if I compile a
> multi-module project with wsdl files, targeting different packages, then my
> files are mixed-up during compilation.
> My guess is the usage in {{SchemaCompiler}} because these
> {{SchemaPropertyLoader }} use static fields.
> {code:java|title=org.apache.axis2.schema.SchemaCompiler#SchemaCompiler}
> //load the writer and initiliaze the base types
> writer = SchemaPropertyLoader.getBeanWriterInstance();
> writer.init(this.options);
> {code}
> I try to create a small sample to reproduce it easily or add a test to project
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]