Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8900

Javadoc parser in API Component Framework misses first method with void return type in JDK7

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.3, 2.15.2
    • Fix Version/s: 2.15.3, 2.14.4
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When using JDK 7 to generate Javadoc, the Javadoc parser based on javax.swing.text.html.parser.Parser fails to extract the first method if it has a void return type. For some reason the combination of the Javadoc generated by JDK7 and its Parser class gets the elements in the wrong order, causing the parser to go into the wrong state missing the first method. The next method element puts the parser back in the right state.
      The fix is to not let the parser come out of the METHOD_SUMMARY if it has not seen any methods at that point.

        Attachments

          Activity

            People

            • Assignee:
              dhirajsb Dhiraj Bokde
              Reporter:
              dhirajsb Dhiraj Bokde
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: