Question regarding JavaType existence

Hugo Palma <[email protected]> Mon, 6 Feb 2006 17:33:35 +0000
Newsgroups gmane.comp.ide.eclipse.spindle.devel
Message-ID <[email protected]>
I was creating some tests and a problem came up with my implementation of
the exists() method of the IJavaType.

Like you said before, the exists() should return false if the underlying
real type is deleted. This is easy when you're talking about source types,
but gets tricky when it comes to classpath types. The problem is that at the
time the type is returned the project has the library in it's classpath,
sometime after that it's possible that the library was removed from the
project classpath, althout the .jar is still there. The exists() method
should return false now. I checked your implementation in
com.iw.plugins.spindle.core.eclipse.lang.EclipseJavaType and all you do is
call the IType.exists() method. Does Eclipse implementation provide this
behaviour ?

I can of course implement this behaviour but after i checked your
implementation to see how you handled this i just started to think if i
could be seeing problems where there are none.


Cheers

Hugo