QDox

Problems with non-US-ASCII characters in identifiers

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.6
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

If a class has an identifier, say a field, that uses characters other than the ones specified below, the parsing stops there and the rest of the fields will not be parsed.

This is from the QDox source code:
[A-Za-z_$0-9]* { return Parser.IDENTIFIER; }

Somewhere inside either QDox or vdoclet (@sourceforge) there should be a loop that goes through all the fields in a class. The parser will probably throw a ParseException when it discovers a "bad" field. Now if that exception was caught inside the loop instead of outside the loop, we should at least be able to parse the rest of the fields. I am not sure whether the problem is in QDox or vdoclet.

This has also been raised as an issue in the maven-tasklist-plugin. A full explanation, including a test-class, can be found here:
http://jira.codehaus.org/browse/MPTASKLIST-11

Activity

Hide
Mike Williams added a comment -

Most likely a problem with the QDox parser.

I shall try to sort it later this week (unless Aslak beats me to it).

Show
Mike Williams added a comment - Most likely a problem with the QDox parser. I shall try to sort it later this week (unless Aslak beats me to it).
Hide
Mike Williams added a comment -

Dennis, sorry about the long wait for this bug-fix!

Show
Mike Williams added a comment - Dennis, sorry about the long wait for this bug-fix!
Hide
Dennis Lundberg added a comment -

Thanks for your help Mike!

I have tried to see if it solves my problems over in mavenland. Here's what I have done:

1. Downloaded the qdox-1.6-SNAPSHOT.jar
2. Checked out vdoclet from cvs @ sourceforge
3. Updated vdoclets dependency on qdox to 1.6-SNAPSHOT
4. Built my own 20041104-version of vdoclet
5. Updated the dependencies in maven-plugins/vdoclet to vdoclet-20041104 and qdox-1.6-SNAPSHOT
6. Rebuild the vdoclet plugin and installed it
7. Ran maven site:generate to create a tasklist report on one a mavenized project, using my patched version of the tasklist-plugin

And it works like a charm!

Is there an ETA on qdox-1.6 final?

Show
Dennis Lundberg added a comment - Thanks for your help Mike! I have tried to see if it solves my problems over in mavenland. Here's what I have done: 1. Downloaded the qdox-1.6-SNAPSHOT.jar 2. Checked out vdoclet from cvs @ sourceforge 3. Updated vdoclets dependency on qdox to 1.6-SNAPSHOT 4. Built my own 20041104-version of vdoclet 5. Updated the dependencies in maven-plugins/vdoclet to vdoclet-20041104 and qdox-1.6-SNAPSHOT 6. Rebuild the vdoclet plugin and installed it 7. Ran maven site:generate to create a tasklist report on one a mavenized project, using my patched version of the tasklist-plugin And it works like a charm! Is there an ETA on qdox-1.6 final?
Hide
Mike Williams added a comment -

> Here's what I have done:
> ...
>
> And it works like a charm!

Hi Dennis. Thanks for the feedback.

> Is there an ETA on qdox-1.6 final?

ETA: late November.

Show
Mike Williams added a comment - > Here's what I have done: > ... > > And it works like a charm! Hi Dennis. Thanks for the feedback. > Is there an ETA on qdox-1.6 final? ETA: late November.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: