From: SourceForge.net <no...@so...> - 2009-02-18 15:03:13
|
Bugs item #2612917, was opened at 2009-02-18 15:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2612917&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Definitions (source editor) Group: None Status: Open Resolution: None Priority: 7 Private: No Submitted By: Robert Cartwright (rcartwright) Assigned to: Nobody/Anonymous (nobody) Summary: Corrupt ASCII text can be pasted into Definitions pane Initial Comment: I created a trvial Elementary level program (.dj0) by copying text for a class from a Powerpoint slide. That text contained a hidden ^K. When I compiled the code, the Elementary language level erroneously reports: Error: This cannot appear in a method declaration! that Since the code did not contain any errors other than the hidden ^K, I initially interpreted "This" as referring to the keyword "this" which puzzled me because "this" did not appear in my trivial program. I now realized that "This" refers to the hidden ^K character. This behavior reveals two bugs: (i) the fact that pasting can corrupt the invariants DrJava maintains on definitions pane text (the attached program does not even indent properly because of the embedded, hidden ^K character. (ii) error reporting in the Language Levels compiler for unrecognized text is so weak that it doesn't even say what the text is. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2612917&group_id=44253 |