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

Bug 335523

Summary: [compiler] separate tuning of severity of decapsulation in "set" callout-to-field
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.8   
Target Milestone: 0.8 M5   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
proposed implementation none

Description Stephan Herrmann CLA 2011-01-26 17:37:12 EST
At yesterday's Eclipse Stammtisch in Braunschweig it was suggested that
writing to an inaccessible field (using a decapsulating callout-to-field)
is more severe than reading.

For this reason we should support separate tuning of this diagnostic so that
this situation can be flagged as an error while read access remains a warning.
Comment 1 Stephan Herrmann CLA 2011-01-26 18:08:06 EST
Created attachment 187698 [details]
proposed implementation

This is basically what I came up with during yesterday's train ride back home
(made one existing test more expressive and implemented the feature).
Comment 2 Stephan Herrmann CLA 2011-01-26 18:12:27 EST
Patch has been committed as r1245 - r1249.
Comment 3 Stephan Herrmann CLA 2011-01-29 13:32:17 EST
Verified for 0.8M5 using build 201101290806.