[Title] Exception in jQM code is fixed.
authorHyukmin Kwon <hyukmin0530.kwon@samsung.com>
Tue, 31 Jul 2012 09:17:34 +0000 (18:17 +0900)
committerHyukmin Kwon <hyukmin0530.kwon@samsung.com>
Tue, 31 Jul 2012 09:17:34 +0000 (18:17 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#] #6157
[Problem]
[Cause]
[Solution]
[TestCase]

org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/ast/SwitchStatement.java

index 2d4bc12..585c7ad 100644 (file)
@@ -145,6 +145,7 @@ public class SwitchStatement extends Statement implements ISwitchStatement{
                                scope = !JavaScriptCore.IS_ECMASCRIPT4 ? upperScope :  new BlockScope(upperScope);
                                int length;
                                // collection of cases is too big but we will only iterate until caseCount
+                               caseCount = 0;
                                cases = new CaseStatement[length = statements.length];
                                this.constants = new Constant[length];
                                CaseStatement[] duplicateCaseStatements = null;