Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in xjc the user classpath should be initialized prior to the "parseArguments" to allow for proper custom plugin detection #1662

Open
sergejkv opened this issue Sep 17, 2022 · 0 comments

Comments

@sergejkv
Copy link

In the com.sun.tools.xjc.Driver

the user class path initialization :

   final ClassLoader contextClassLoader = SecureLoader.getContextClassLoader();
    SecureLoader.setContextClassLoader(opt.getUserClassLoader(contextClassLoader));

should be moved above the:

opt.parseArguments(args);

so the custom plugins could be properly detected in the "Options.findServices".

The current workaround in to add the custom xjc plugins to the xjc class path (as opposed to the xjc --classpath parameter).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant