Bug 419987 - "restricted" warning is incorrectly flagged at team of sub role
Summary: "restricted" warning is incorrectly flagged at team of sub role
Status: RESOLVED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 2.2.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.3 M3   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-21 11:10 EDT by Stephan Herrmann CLA
Modified: 2014-02-02 08:35 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 Stephan Herrmann CLA 2013-10-21 11:10:08 EDT
The following situation causes a bogus warning ("Discouraged access ...")

@SuppressWarnings("restriction")
public team class Super {
	protected class RSuper playedBy RestrictedFoo {
	}
}


public team class Sub extends Super { // warning is here on "Super"
	protected class RSub extends RSuper {
	}
}

I also observed that trying to suppress this warning the @SW token is flagged as unnecessary :)
But I cannot reproduce that part in a small example.
Comment 1 Stephan Herrmann CLA 2013-11-03 16:50:24 EST
Test & fix released for 2.3M3 via commit 235aac64377cb73110d833cb8180126955618b6e
Comment 2 Stephan Herrmann CLA 2014-02-02 08:35:22 EST
back ported for 2.2.2 via commit 536a052120f0f360a229dee6732d0949f9e9dae1