This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 49790 - Children of switch statement not initialized correctly in a special case.
Summary: Children of switch statement not initialized correctly in a special case.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-01 13:37 UTC by Daniel Prusa
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.59 KB, text/plain)
2004-10-01 13:39 UTC, Daniel Prusa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Prusa 2004-10-01 13:37:56 UTC
Steps to reproduce:

1) insert the following piece of code into a method

char c;
switch (c) {
    case 'a':
    case 'b':
}

2) force children of the switch to be inited
(e.g., by invoking fix all imports or by finding
usages of variable 'c') - RuntimeException is thrown
Comment 1 Daniel Prusa 2004-10-01 13:39:44 UTC
Created attachment 17970 [details]
stack trace
Comment 2 Daniel Prusa 2004-10-01 13:40:31 UTC
java.lang.RuntimeException: Unexpected type of ASTree: 62
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getElementProxy(MetadataElement.java:606)
Comment 3 Pavel Flaska 2005-02-11 09:53:29 UTC
This was fixed in the past, unfortunately I was not able to find the
original issue. Not reproducible anymore, closing as fixed.
Comment 4 Quality Engineering 2007-09-20 12:31:49 UTC
Reorganization of java component