I recently added -Xjaxbindex to the xjc schema compiler and noticed that the generated jaxb.index file still contains the public wrapper classes that xew discharges. A quick look in the jaxb index plugin source suggest around line 28 that it is using the overall xjc outline that is passed through the plugins. I did add the -Xjaxbindex arg after the -Xxew arg in the XJC compiler but it seems xew is not removing the classes it deletes in the generated code from the outline, hence the jaxb index plugin producing a wrong index file.
That's how jaxb index plugin decides what goes into the jaxb.index file:
for (final ClassOutline classOutline : packageOutline.getClasses()) {
...
}
Is that hard to fix?
I recently added
-Xjaxbindexto the xjc schema compiler and noticed that the generatedjaxb.indexfile still contains the public wrapper classes that xew discharges. A quick look in the jaxb index plugin source suggest around line 28 that it is using the overall xjc outline that is passed through the plugins. I did add the-Xjaxbindexarg after the-Xxewarg in the XJC compiler but it seems xew is not removing the classes it deletes in the generated code from the outline, hence the jaxb index plugin producing a wrong index file.That's how jaxb index plugin decides what goes into the jaxb.index file:
Is that hard to fix?