Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] CompletionRequestor.accept

hi all,

The javadoc for CompletionRequestor.accept states that

"The proposal object passed is only valid for the duration of this call;
implementors must not hang on to these objects."


I assume this means the following - please clarify:

1) the passed instance of CompletionProposal is only valid during the 'accept' call (as opposed to during the entire code completion session between beingReporting - endReporting).

2) the values (char arrays) returned by the CompletionProposal instance' method are not covered by this limitation - the arrays can be stored for the completion session given that they are not modified.

Is this correct? Thanks for clearing this up
-tom




Back to the top