From: SourceForge.net <no...@so...> - 2011-05-20 09:19:16
|
Patches item #3304991, was opened at 2011-05-20 12:19 Message generated for change (Tracker Item Submitted) made by jouni You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720017&aid=3304991&group_id=130558 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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jouni K Seppnen (jouni) Assigned to: Nobody/Anonymous (nobody) Summary: Fix crash in case of escaped double-quote at line beginning Initial Comment: Since Cobertura is implemented via instrumenting class files, it is to some degree usable for JVM languages other than Java. When running Cobertura against a project written in Clojure, I had a crash because the code-colorizing parser tried to access a character before the beginning of a line in a multi-line string. This does not happen in syntactically correct Java, but IMHO crashing on unexpected input should be fixed. The patch adds a test case for the problem and changes the logic to prevent the crash. The copyright to this patch belongs to my employer, ZenRobotics Ltd., and I have received permission to submit the patch to Cobertura. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720017&aid=3304991&group_id=130558 |