You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Michael Suhr (Jira)" <ji...@apache.org> on 2025/04/28 07:47:00 UTC

[jira] [Created] (AXIS2-6093) wsdl2code Maven Plugin: SchemaPropertyLoader is not thread safe

Michael Suhr created AXIS2-6093:
-----------------------------------

             Summary: wsdl2code Maven Plugin: SchemaPropertyLoader 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


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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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