IPath.isValidPath() [message #289357] |
Thu, 04 August 2005 00:02 |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
The method IPath.isValidPath() is prototyped as:
public boolean isValidPath(String path);
This is kind of confusing to me. I would have thought it would either be a
static method, or take no parameters (i.e., validate the object it was
called on). But it's neither. So, what is the interaction between the Path
object on which the method is called, and the string passed in? The javadoc
comment doesn't help me.
Thanks,
-Walter Harley
BEA Systems Inc.
|
|
|
|
|
Re: IPath.isValidPath() [message #289443 is a reply to message #289392] |
Thu, 04 August 2005 23:54 |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"Martin Olsson" <mnemo@minimum.se> wrote in message
news:dcsupv$2tm$1@news.eclipse.org...
>
> [...]
> John Arthorne (which wrote books about Eclipse etc) gave the following
> answer:
>
> The answer is simply that interfaces cannot define static methods. At the
> time this was written, the goal was to define the API purely in terms of
> interfaces. [...]
Thanks, now I understand. (To me it's a good argument against the
desirability of that goal!)
It would be nice if the javadoc was explicit about these "de facto statics".
I hate to put in a bug for "less-than-ideal javadoc," though.
|
|
|
Powered by
FUDForum. Page generated in 0.02868 seconds