Bug 39771

Summary: BCEL 5.2 is not source compatible with 5.1
Product: BCEL - Now in Jira Reporter: Alex Kinneer <alkinneer>
Component: MainAssignee: issues <issues>
Status: NEW ---    
Severity: minor    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Alex Kinneer 2006-06-09 21:56:10 UTC
At least two methods now declare checked exceptions that did not previously;
there may be others:

org.apache.bcel.generic.ObjectType.subclassOf(ObjectType)
org.apache.bcel.generic.ReferenceType.getFirstCommonSuperclass(ReferenceType)
--> Both now declare ClassNotFoundException

This of course causes a compile-time error in existing code that does not
provide (inadvertent) exception handling around these methods.

Suggest revising release notes or remapping these exceptions to some type of
RuntimeException.
Comment 1 Torsten Curdt 2007-03-10 06:58:49 UTC
well, 5.2 is out as is ...but it would be could to document these changes for
the 5.3 release. Care to send a fix for the documentation?
Comment 2 Alex Kinneer 2007-03-29 08:24:55 UTC
Sure, you mean along the lines of a patch for the JavaDocs, or in some other
location (changes, readme)?
Comment 3 Torsten Curdt 2007-03-29 08:31:15 UTC
Whereever you would have expected it :)

But changes, readme and javadocs sounds good.