Bug 164656

Summary: IScanner.setSource should spec that 'null' is allowed
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dani Megert CLA 2006-11-15 11:18:04 EST
3.2 and 3.3 M3

Currently IScanner.setSource(...) doesn't mention the 'null' case but its only implementation in JDT Core correctly handles 'null' which makes sense. Since IScanner states:
  This interface is not intended to be implemented by clients.

It is safe to add "<code>null</code> clears the source" to the Javadoc.
Comment 1 Olivier Thomann CLA 2006-11-15 19:07:34 EST
Released for 3.3M4.
To verify, check the javadoc.
Comment 2 Frederic Fusier CLA 2006-12-11 04:12:26 EST
Reopen to set assignee
Comment 3 Frederic Fusier CLA 2006-12-11 04:13:22 EST
.
Comment 4 David Audel CLA 2006-12-12 12:35:12 EST
Verified for 3.3M4 with I20061212-0010.