QDox

Javadoc comment ending with "**/" is parsed incorrectly

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.3
  • Fix Version/s: 1.4
  • Component/s: Parser
  • Labels:
    None
  • Number of attachments :
    0

Description

As reported by Mike Hogan <me@mikehogan.net>, the following test-case fails:

public void testClassLoad() {
final String sourceCode =
"package com.acme.thing;\n" +
"\n" +
"/**" +
" * This class does something." +
" **/" +
"public class AClassName {\n" + "}";
JavaDocBuilder builder = new JavaDocBuilder();
builder.addSource(new StringReader(sourceCode));
final JavaClass aClass =
builder.getClassByName("com.acme.thing.AClassName");
assertNotNull(aClass);
}

If you delete the javadoc block, the test passes.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
2h
Original Estimate - 2 hours
Remaining:
2h
Remaining Estimate - 2 hours
Logged:
Not Specified
Time Spent - Not Specified