Bug 87127 - Erroneous compiler error
Summary: Erroneous compiler error
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-04 05:07 EST by Alexander Veit CLA
Modified: 2005-03-04 11:15 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 Alexander Veit CLA 2005-03-04 05:07:32 EST
final Object var;

try
{
 var = doSomethingThatThrowsAnException();
}
catch (Exception e)
{
 var = doFallback(); // error
}

results in "The final local variable var may already have been assigned", what 
seems to be incorrect.
Comment 1 Philipe Mulet CLA 2005-03-04 11:15:49 EST
This is the result of conservative flow analysis. 

Javac agrees with us.