Bug 10881 - DOM/AST: SwitchCase.isDefault always returns false
Summary: DOM/AST: SwitchCase.isDefault always returns false
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-06 12:11 EST by Dirk Baeumer CLA
Modified: 2002-03-06 13:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2002-03-06 12:11:29 EST
Build 20020305

For the switch statement

switch (i) {
  case 1:
    return true;
  default:
    return false;
}

calling SwitchCase.isDefault on the node respresenting the default statement 
returns false. The reason is that the optionalExpression is a SimpleName with 
the identifier MISSING.
Comment 1 Olivier Thomann CLA 2002-03-06 12:51:32 EST
Easy to fix. I'll do it immediately.
Comment 2 Olivier Thomann CLA 2002-03-06 13:13:54 EST
Fixed and released in HEAD.