Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318309 - [compiler] warnings re unused exceptions from generated code
Summary: [compiler] warnings re unused exceptions from generated code
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 0.7   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 0.7.1   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 09:04 EDT by Stephan Herrmann CLA
Modified: 2010-09-22 18:41 EDT (History)
0 users

See Also:


Attachments
patch (732 bytes, patch)
2010-07-24 07:51 EDT, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2010-06-29 09:04:27 EDT
When compiling the FlightBonus example with the following option enabled:
  "Unnecessary declaration of thrown exception -> Warning"
some internal callin-wrappers are complained about like
  The declared exception BookingException is not actually thrown by the method _OT$Subscriber$buy$book(Passenger, ITeam[], int[], int, int, int, Object[], Flight) from type FlightBonus

Such messages should never surface.
Comment 1 Stephan Herrmann CLA 2010-07-24 07:51:23 EDT
Created attachment 175133 [details]
patch

Fixed by checking for callin wrapper right before complaining.
Comment 2 Stephan Herrmann CLA 2010-07-24 07:52:28 EDT
Patch has been committed as r639.
Comment 3 Stephan Herrmann CLA 2010-09-22 18:41:20 EDT
Verified using I201009211735