Bug 86531

Summary: Javadoc: class AST has several parameterless methods claiming to throw IllegalArgumentException
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: jeem
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-02-24 14:24:13 EST
I20050222-0821

Javadoc: class AST has several parameterless methods claiming to throw an
IllegalArgumentException. I guess that's a copy-paste error and the affected
@exception tags can simply be removed:

	 * @exception IllegalArgumentException if:
	 * <ul>
	 * <li>the node belongs to a different AST</li>
	 * <li>the node already has a parent</li>
	 * </ul>

newWildcardType()
newPackageDeclaration()
newImportDeclaration()
Comment 1 Olivier Thomann CLA 2005-02-24 14:42:10 EST
Fixed and released in HEAD.
Jim, please review the changes. I also updated some doc to say in what
conditions an IllegalArgumentException can be thrown.
Comment 2 Olivier Thomann CLA 2005-03-30 17:01:21 EST
Jim, please verify.
Comment 3 Olivier Thomann CLA 2005-03-31 17:33:29 EST
Verified in I20050330-0500.