[Title] Wrong duplicated default statements error is fixed.
authorHyukmin Kwon <hyukmin0530.kwon@samsung.com>
Sun, 26 Aug 2012 05:26:40 +0000 (14:26 +0900)
committerHyukmin Kwon <hyukmin0530.kwon@samsung.com>
Sun, 26 Aug 2012 05:26:40 +0000 (14:26 +0900)
[Type] BugFix
[Module] JSDT (ProblemReporter)
[Priority]
[CQ#]
[Redmine#] 6451
[Problem]
[Cause]
[Solution] Initialize defaultCase field to null when resolving
SwitchStatement.
[TestCase]

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

index 585c7ad..2fa004f 100644 (file)
@@ -146,6 +146,7 @@ public class SwitchStatement extends Statement implements ISwitchStatement{
                                int length;
                                // collection of cases is too big but we will only iterate until caseCount
                                caseCount = 0;
+                               defaultCase = null;
                                cases = new CaseStatement[length = statements.length];
                                this.constants = new Constant[length];
                                CaseStatement[] duplicateCaseStatements = null;
index 31055e0..e24170b 100644 (file)
@@ -1,4 +1,4 @@
-Version:1.0.21
+Version:1.0.22
 Source:product
 Maintainer:kangho kim <kh5325.kim@samsung.com>, yoonki park <yoonki.park@samsung.com>, hyunsik non <hyunsik.noh@samsung.com>, taeyoung son <taeyoung2.son@samsung.com>, gune Kim <gune.kim@samsung.com>, ho namkoong <ho.namkoong@samsung.com>, hyeongseok heo <hyeong-seok.heo@samsung.com>, gyeongseok seo <gyeongseok.seo@samsung.com>, jihoon song<jihoon80.song@samsung.com>, changhyun lee <changhyun1.lee@samsung.com>, Woongsik Choi <woongsik76.choi@samsung.com>, Hyukmin Kwon <hyukmin0530.kwon@samsung.com>, Wooyoung Cho <wooyoung1.cho@samsung.com>, Jaeheung Kim <jaeheung.kim@samsung.com>