From: SourceForge.net <no...@so...> - 2008-03-13 23:43:38
|
Bugs item #1913421, was opened at 2008-03-13 03:49 Message generated for change (Comment added) made by vzhabko You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=1913421&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: Stephen Connolly (stephen_c) Assigned to: Nobody/Anonymous (nobody) Summary: ArrayIndexOutOfBoundsException when measuring switch coverag Initial Comment: Cobertura 1.9 Maven2 cobertura plugin JVMs: Sun 1.5.0_14 Sun 1.6.0_04 IBM 1.5 (not sure the exact build) IBM 1.6 (not sure the exact build) BEA JRocket 1.5.0_12 BEA JRocket 1.6.0_02 OSes: Windows XP (x86_32) RHEL (x86_32) RHEL (x86_64) Exception in thread "Thread-106" java.lang.ArrayIndexOutOfBoundsException: 19 at net.sourceforge.cobertura.coveragedata.SwitchData.touchBranch(SwitchData.java:94) at net.sourceforge.cobertura.coveragedata.LineData.touchSwitch(LineData.java:264) at net.sourceforge.cobertura.coveragedata.ClassData.touchSwitch(ClassData.java:467) I am not in a position to share the exact source code tha t blows up, but if it helps, this is a switch based on an Enum ---------------------------------------------------------------------- Comment By: Vasyl Zhabko (vzhabko) Date: 2008-03-13 16:43 Message: Logged In: YES user_id=2035850 Originator: NO Also, there is a related bug# 1838589. ---------------------------------------------------------------------- Comment By: Vasyl Zhabko (vzhabko) Date: 2008-03-13 16:40 Message: Logged In: YES user_id=2035850 Originator: NO Here is an additional info on the same issue. It seems to be a concurrency issue. It happens when the same code is executed simultaneously from different threads. It is inconsistent from build to build, from PC to PC. Environment: JVM 1.5, WebLogic 10.0, OS Windows XP java.lang.IndexOutOfBoundsException: Index: 0, Size: 1 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) at net.sourceforge.cobertura.coveragedata.LineData.getJumpData(LineData.java:316) at net.sourceforge.cobertura.coveragedata.LineData.touchJump(LineData.java:259) at net.sourceforge.cobertura.coveragedata.ClassData.touchJump(ClassData.java:453) We need it fixed ASAP. It is a great tool. However, I am very sorry to say, we may move to other tool because of this issue. Our deadlines are too short. Thank you, Vasyl ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=1913421&group_id=130558 |