Bug 164656 - IScanner.setSource should spec that 'null' is allowed
Summary: IScanner.setSource should spec that 'null' is allowed
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-15 11:18 EST by Dani Megert CLA
Modified: 2006-12-12 12: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 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.