Menu

#465 Parser or printer sometimes skips comments

1.5b5
closed-fixed
S
Core (71)
5
2005-12-19
2005-12-14
No

When a couple of single-line comments are followed by a
multi-line comment in a class, like this:

// Comment
// Comment

/**
* Different kind of comment.
* Comment.
*/

The multi-line comment does not appear in the formatted
file.

Attached is the convension (test.xml) I used, and a
Java file which reproduces the failure. I did not find
a workaround except to remove the single-line comments
from my source files.

Discussion

  • Terence Haddock

    Terence Haddock - 2005-12-14

    Convension used to reproduce failure

     
  • Terence Haddock

    Terence Haddock - 2005-12-14

    Input file which reproduces the failure.

     
  • S

    S - 2005-12-15
    • labels: --> Core
    • assigned_to: nobody --> notzippy
    • status: open --> pending-fixed
     
  • S

    S - 2005-12-15

    Logged In: YES
    user_id=723231

    Problem with the java recognizer not tying the comments in
    both directions. Corrected in cvs

     
  • S

    S - 2005-12-19
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.