Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353126 - improve StubCreator
Summary: improve StubCreator
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.8 M7   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 11:08 EDT by Markus Keller CLA
Modified: 2012-04-16 14:11 EDT (History)
1 user (show)

See Also:


Attachments
Fix (5.30 KB, patch)
2011-07-26 11:08 EDT, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2011-07-26 11:08:01 EDT
Created attachment 200367 [details]
Fix

HEAD

The patch fixes problems with generated super(..) calls in constructor stubs:
- tries to find a super constructor that doesn't throw an exception
- tries to avoid calling overloaded constructors
- adds cast to null where necessary to avoid ambiguous method invocation