Bug 39771 - BCEL 5.2 is not source compatible with 5.1
Summary: BCEL 5.2 is not source compatible with 5.1
Status: NEW
Alias: None
Product: BCEL - Now in Jira
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: issues@commons.apache.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-09 21:56 UTC by Alex Kinneer
Modified: 2007-03-29 08:31 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.