Re: [Fwd: BCEL breaks compatibility]

Niclas Hedhman <[email protected]>
Newsgroups gmane.comp.apache.incubator.general,gmane.comp.jakarta.bcel.devel
Organization Private
Message-ID <200404060043.54939.niclas__48672.8235650391$1081212919@hedhman.org>
On Monday 05 April 2004 21:45, David Hovemeyer wrote:
> The downside, of course, is breaking backward compatibility.  But,
> the original APIs were flawed, and the new behavior is (IMO) better.

Ok, thanks for the background.

In principal, I can do  

try
{
    return currentClass.getSuperClass();
} catch( Exception e )
{
    return null;
}

in our code. I can't catch ClassCastException, since that is not compatible 
with the 5.5 release that we officially depend on.

But it works with reasonable amount of comments - - for us.

Is this a change that are in many other method signatures as well, or just a 
few?

If only a few, I would recommend the compatible approach of introducing a 
seperate method where the exceptions are thrown, to keep the compatibility.

Well, once the BCEL community can decide and hopefully release, please (if you 
remember) CC [email protected], so we can update the hack.

Cheers
Niclas
-- 
+---------//-------------------+
|   http://www.bali.ac         |
|  http://niclas.hedhman.org   |
+------//----------------------+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.