Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318309

Summary: [compiler] warnings re unused exceptions from generated code
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 0.7   
Target Milestone: 0.7.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch none

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