Summary: | Doc should be updated for org.eclipse.jdt.ui.SharedASTProvider.getAST(ITypeRoot, WAIT_FLAG, IProgressMonitor) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | UI | Assignee: | Dani Megert <daniel_megert> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | trivial | ||
Priority: | P3 | CC: | daniel_megert, Michael_Rennie |
Version: | 3.7 | Keywords: | Documentation |
Target Milestone: | 3.7 RC1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Olivier Thomann
2011-05-11 10:28:23 EDT
(In reply to comment #0) > This method can return null if the operation is canceled. This is not clearly > specified right now. It specifies that 'null' can be returned. What is the other thing that you would expect to get back if you cancel the operation? When WAIT_YES is specified, I don't see null as a possible return value. (In reply to comment #2) > When WAIT_YES is specified, I don't see null as a possible return value. Right, but cancel isn't mentioned in any of the cases explicitly. But again: what would you expect if it gets canceled? Anyway, I've added an additional blurb so that it's crystal clear. . (In reply to comment #3) > Right, but cancel isn't mentioned in any of the cases explicitly. But again: > what would you expect if it gets canceled? > Anyway, I've added an additional blurb so that it's crystal clear. I would expect null, but I think this should be mentioned in the doc. Also check all callers of this method, I found a couple of places where null is not handled. Verified in I20110512-2000 that the Javadoc mentions the cancel case. |