David Holmes wrote:
Say you've caught a RuntimeException e:

if (e.getClass().getName().equals("gnu.classpath.NYIException")) {
        // do the classpath dance
}

can compile just fine against any not-gnu-classpath-using VM. You could use reflection, too, but there is no need here.


e.getClass().getName() *is* reflection in my book :-)

Kind of ;) I think it's been around since java 1.0, so it would predate the reflection APIs that ararived with java 1.1, AFAIK. ;)


cheers,
dalibor topic



_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to