[Jadclipse-develop] [ jadclipse-Bugs-834140 ] DebugAlignWriter.cleanComment() cleans not only comme
Status: Beta
Brought to you by:
vovikg
From: SourceForge.net <no...@so...> - 2009-11-15 22:14:46
|
Bugs item #834140, was opened at 2003-11-01 15:04 Message generated for change (Comment added) made by jgyger You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=427342&aid=834140&group_id=40205 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: Interface (example) Group: v1.0 (example) Status: Open >Resolution: Accepted Priority: 5 Private: No Submitted By: Pavel Nejedly (nejedly) >Assigned to: Johann Gyger (jgyger) Summary: DebugAlignWriter.cleanComment() cleans not only comments Initial Comment: when a string literal contains '//' (e.g. URIs), the line gets garbled: "http://asdasdasd" ----> "http: this is because cleanComment does not check whether '//' is contained in string literal or not: String cleanComment(String line) { int comment = line.indexOf("//"); if (comment == -1) return line; if (comment == 0 || line.trim ().startsWith("//")) return ""; return line.substring(0, comment); } ---------------------------------------------------------------------- >Comment By: Johann Gyger (jgyger) Date: 2009-11-15 22:14 Message: Probably still an issue... I have to retest this. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=427342&aid=834140&group_id=40205 |