[Type] BugFix
[Module] JSDT (ProblemReporter)
[Priority]
[CQ#]
[Redmine#] 6451
[Problem]
[Cause]
[Solution] Initialize defaultCase field to null when resolving
SwitchStatement.
[TestCase]
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;
-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>