Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336420 - [compiler] NPE during reporting "abstract relevant role"
Summary: [compiler] NPE during reporting "abstract relevant role"
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 0.8   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 0.8 M6   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-05 10:11 EST by Stephan Herrmann CLA
Modified: 2011-06-07 09:55 EDT (History)
0 users

See Also:


Attachments
new tests (5.45 KB, patch)
2011-02-05 10:11 EST, Stephan Herrmann CLA
no flags Details | Diff
test & fix (9.81 KB, patch)
2011-02-05 10:15 EST, 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 2011-02-05 10:11:02 EST
Created attachment 188387 [details]
new tests

If a (potentially) abstract relevant role is inherited from a super team
without overriding in the current team (aka phantom role), error reporting
can cause an NPE if an existing .class file of the phantom role is reused.

Witnesses are in the tests attached.
Comment 1 Stephan Herrmann CLA 2011-02-05 10:15:27 EST
Created attachment 188388 [details]
test & fix

Fixed by using the RoleModel instead of it's AST which might be absent.
Comment 2 Stephan Herrmann CLA 2011-02-05 10:17:15 EST
committed as r1296, r1297.
Comment 3 Stephan Herrmann CLA 2011-06-07 09:55:22 EDT
Verified using build 201106070730.