Do you really have the three character sequence "*/>" in your schema?
I guess you are using xjc that's bundled with Java 1.6. JAXB 2.1.8 and later
handle <xs:pattern value="x*/"/> by a (crude) modification of */; therefore
one option you have is to use xjc from a standalone JAXB release.
As a workaround, consider the lexical modification of a pattern such as
"ab*/" to "ab*(/)", which doesn't change its semantics.
-W
On 7/3/09, Vikas Bhargava <vikasbhargava_at_gmail.com> wrote:
>
> hi,
> i have a schema which has a pattern defined in it (as regex). The java
> class generated by XJC has the schema contents listed inside c-style
> comment
>
> /* ......
> ......
> ......
> */>
> .....
> .....
> */.
>
> The pattern is causing the comment to end in between the schema
> listing and consequently the compilation fails due to syntax errors.
>
> Is there a way to turn off generation of comments in XJC, or ask the
> compiler to generate only java style comments? It is not possible for
> me to change the schema as it is being used in other projects too.
>
> thx
> Vikas.
> =======
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>