[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NYIException

From: Dalibor Topic
Subject: Re: NYIException
Date: Mon, 29 Sep 2003 04:02:46 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312

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. ;)

dalibor topic

reply via email to

[Prev in Thread] Current Thread [Next in Thread]