Cannot generate java classes from xjc · Issue #915 · javaee/jaxb-v2 (original) (raw)

This repository was archived by the owner on Feb 5, 2019. It is now read-only.

This repository was archived by the owner on Feb 5, 2019. It is now read-only.

@glassfishrobot

Description

@glassfishrobot

I'm tring to use xjc to generate java classes from a simple xsd but I receive this error:
Exception in thread "main" java.lang.IllegalArgumentException: Illegal pattern character 'g'
at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:769)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:576)
at java.text.SimpleDateFormat.(SimpleDateFormat.java:501)
at com.sun.tools.xjc.Options.getPrologComment(Options.java:937)
at com.sun.tools.xjc.Options.createCodeWriter(Options.java:922)
at com.sun.tools.xjc.Options.createCodeWriter(Options.java:912)
at com.sun.tools.xjc.Driver.run(Driver.java:381)
at com.sun.tools.xjc.Driver.run(Driver.java:199)
at com.sun.tools.xjc.Driver._main(Driver.java:122)
at com.sun.tools.xjc.Driver.access$000(Driver.java:79)
at com.sun.tools.xjc.Driver$1.run(Driver.java:102)

This is the xml schema I've used.

<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="name" type="xs:string"/>

Everythings works with version 2.2.5 but not with 2.2.6

Environment

windows 7 64bit jdk 1.6.0_26

Affected Versions

[2.2.6]