jaxb
  1. jaxb
  2. JAXB-1031

JAXB 2.1.x generates errorneous episode File

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.14, 2.1.16
    • Fix Version/s: None
    • Component/s: xjc
    • Labels:
      None

      Description

      A user has reported that JAXB-XJC version 2.1.14 generates a bad episode file due to the - string contained in the internal version (v2.1.14-hudson-jaxb-ri-2.1-pushtomaven-240-SNAPSHOT). When this version is printed out in the comment, this makes XML invalid.

      This also makes JAXB-984 or JAXB-1003 blockers since 2.1.14 is not usable and 2.1.15 and above have invalid POMs.

        Activity

        Hide
        lexi added a comment -

        Attached a sample file.

        Note the comment:

          <!--
        
        This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.14-hudson-jaxb-ri-2.1-pushtomaven-240--SNAPSHOT 
        See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
        Any modifications to this file will be lost upon recompilation of the source schema. 
        Generated on: 2014.07.15 at 11:36:41 PM CEST 
        
          -->
        
        Show
        lexi added a comment - Attached a sample file. Note the comment: <!-- This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.14-hudson-jaxb-ri-2.1-pushtomaven-240--SNAPSHOT See <a href= "http: //java.sun.com/xml/jaxb" >http://java.sun.com/xml/jaxb</a> Any modifications to this file will be lost upon recompilation of the source schema. Generated on: 2014.07.15 at 11:36:41 PM CEST -->
        Hide
        lexi added a comment -

        Same problem with 2.1.16:

          <!--
        
        This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.16-hudson-jaxb-ri-2.1-pushtomaven-250--SNAPSHOT 
        See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
        Any modifications to this file will be lost upon recompilation of the source schema. 
        Generated on: 2014.07.15 at 11:44:54 PM CEST 
        
          -->
        
        Show
        lexi added a comment - Same problem with 2.1.16: <!-- This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.16-hudson-jaxb-ri-2.1-pushtomaven-250--SNAPSHOT See <a href= "http: //java.sun.com/xml/jaxb" >http://java.sun.com/xml/jaxb</a> Any modifications to this file will be lost upon recompilation of the source schema. Generated on: 2014.07.15 at 11:44:54 PM CEST -->
        Hide
        lexi added a comment -

        2.1.13 is not affected.

        Show
        lexi added a comment - 2.1.13 is not affected.
        Hide
        lexi added a comment -

        This issue still persists in 2.1.17.

        Show
        lexi added a comment - This issue still persists in 2.1.17.

          People

          • Assignee:
            Iaroslav Savytskyi
            Reporter:
            lexi
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: