castor
  1. castor
  2. CASTOR-1307

Annotation Tag with */ leads to wrong sourcecode

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0 M1
    • Fix Version/s: 1.0.4
    • Component/s: XML code generator
    • Labels:
      None
    • Number of attachments :
      6

      Description

      <xs:annotation>
      <xs:documentation>
      //

      {type='Module'}
      </xs:documentation>
      </xs:annotation>
      leads to follwoing java doc:

      /**
      * //{type='Module'}
      • @param classification the value of field 'classification'.
        */
        (the comment is closed ..)
        The easiest way to prevent tgis, would be to remove all /* and */ from annotations

        Activity

        Hide
        Werner Guttmann added a comment -

        Will commit the patch once you have attached a valid sample XML document for the given XML schema .. .

        Show
        Werner Guttmann added a comment - Will commit the patch once you have attached a valid sample XML document for the given XML schema .. .
        Hide
        Werner Guttmann added a comment -

        Roland ?

        Show
        Werner Guttmann added a comment - Roland ?
        Hide
        Roland Spatzenegger added a comment -

        I have added a complete eclipse project. Use "ant generate" to generate the test classes. You need the castor libs to run the project. start "main.Test" to start the test-class (reads in test.xml). You should get "blafasel" on the screen.

        Show
        Roland Spatzenegger added a comment - I have added a complete eclipse project. Use "ant generate" to generate the test classes. You need the castor libs to run the project. start "main.Test" to start the test-class (reads in test.xml). You should get "blafasel" on the screen.
        Hide
        Werner Guttmann added a comment -

        Thanks, Roland.

        Show
        Werner Guttmann added a comment - Thanks, Roland.
        Hide
        Werner Guttmann added a comment -

        Final patch

        Show
        Werner Guttmann added a comment - Final patch

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Roland Spatzenegger
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 30 minutes
              30m
              Remaining:
              Remaining Estimate - 30 minutes
              30m
              Logged:
              Time Spent - Not Specified
              Not Specified