Open dufoli opened 4 years ago
What is actually missing here? Is it just the flags that are wrong or is there something else missing?
ClassCreator is usefull to generate a class with annotation /methods/fields but when I need to annotate only package without class. What can I use ?
here is an example: https://github.com/apache/cxf/blob/master/testutils/src/main/java/org/apache/cxf/customer/bare/package-info.java
package-info is just a normal class file, can't you just generate a class named package-info and add class level anntoations?
I have check by dumping my class file. Here is the result in idea:
package io.quarkus.it.cxf.quarkus_jaxws_asm;
@javax.xml.bind.annotation.XmlSchema(namespace = "http://cxf.it.quarkus.io/") public class $$package-info / Real name is 'package-info' / { public $$package-info / Real name is 'package-info' /() { / compiled code / } }
I expect to have :
@javax.xml.bind.annotation.XmlSchema(namespace = "http://cxf.it.quarkus.io/") package io.quarkus.it.cxf.quarkus_jaxws_asm;
I need feedback, for implementation of package info support before going further.
Are you sure it does not already work? Just create a class called package-info
I will retry with class creator
indeed I can not test it because the important parameter is an enum. and enum has been fixed few weeks ago. So I will wait release to test it on my project .
the need is to support package annotation. In cxf patch, I need to support this generation: https://github.com/apache/cxf/blob/master/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/WrapperClassGenerator.java#L234