javaee / jaxb-v2

Other
211 stars 101 forks source link

Generation of classes with jaxb fails when an element is named "PRN" #1005

Open glassfishrobot opened 10 years ago

glassfishrobot commented 10 years ago

I am generating classes from a large xsd file. (Rightclick on pom in projectexplorer, run-as "maven generate sources") When I name an Element with "PRN" the generation process get stuck. It do not break and get also not to finished. When I rename the Element to PRN2 the same code works. Environment Helios, java 7, maven, maven-jaxb2 plugin 0.8.0 with basics and annotate 0.6.2. Jaxb version 2.2.7 (also tried 2.2.8 and 2.2.0 ...) Cant explain such a strange behavior, where the name of an element makes the generation to be stuck.

Extraction from pom.xml

org.jvnet.jaxb2.maven2 maven-jaxb2-plugin 0.8.0 src/main/resources src/main/resources migration.xml true true true src/main/java true org.jvnet.jaxb2_commons jaxb2-basics 0.6.2 org.jvnet.jaxb2_commons jaxb2-basics-annotate 0.6.2 -Xannotate generate-sources generate maven-assembly-plugin src/assemble/exe.xml src/main/java/META-INF/MANIFEST.MF

The XSD fragment which do not work.

<?xml version="1.0" encoding="UTF-8"?>

ProductRelation ProductIdRef AmountValue #### Environment Eclipse Helios, Windows 7 #### Affected Versions [2.2.7]
glassfishrobot commented 10 years ago

Reported by francescato

glassfishrobot commented 10 years ago

Was assigned to yaroska

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB-1005