eclipse-ee4j / jaxb-ri

Jaxb RI
https://eclipse-ee4j.github.io/jaxb-ri/
BSD 3-Clause "New" or "Revised" License
204 stars 111 forks source link

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

Open Tomas-Kraus opened 10 years ago

Tomas-Kraus 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]
Tomas-Kraus commented 6 years ago
Tomas-Kraus commented 10 years ago

@glassfishrobot Commented Reported by francescato

Tomas-Kraus commented 10 years ago

@glassfishrobot Commented Was assigned to yaroska

Tomas-Kraus commented 7 years ago

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