Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Verified
Assignee
Eugene Zhuravlev
Subsystem
Debugger
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Alexander Chernikov
    4 years ago (27 Jan 2008 20:20)
  • Updated by   root
    2 years ago (17 Jan 2010 20:57)
  • Jira: IDEADEV-24451
    (history, comments)
 
IDEA-42636 Debugger: not qualified enum values in switch: auto variables are detected, but evaluation fails
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Provide enumeration type MyEnum with some values ONE, TWO, THREE.
Provide a method in different class with switch statement with argument of this enumeration:
...
	switch (myEnumVar) {
		case ONE:
			break;
		case TWO:
			break;
		case THREE:
			break;
	}
...

Java requires to specify not qualified name: "ONE" is enough.
In debugger step through this method. When execution is within switch, debugger generates auto variables "ONE", "TWO", "THREE", but immediately shows error message "Cannot find local variable" against them.

Issue was closed
Comments (1)
 
History
 
Linked Issues (?)
 
Alexander Chernikov
  Alexander Chernikov
21 Nov 2008 22:55
3 years ago
9158: fix confirmed.