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

Bug 336420

Summary: [compiler] NPE during reporting "abstract relevant role"
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8   
Target Milestone: 0.8 M6   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
new tests
none
test & fix none

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.