Issue Details (XML | Word | Printable)

Key: SFOS-1097
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Steve Loughran
Reporter: Steve Loughran
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
SmartFrog

LoadClass to provide better diagnostics when a class is not found

Created: 04/Feb/09 11:50 AM (GMT)   Updated: 09/Feb/09 03:27 PM (GMT)
Component/s: .sfCore
Affects Version/s: 3.17.010
Fix Version/s: 3.17.010

Time Tracking:
Not Specified

Issue Links:
Depends
Metabug
 

Compatibility: backwards compatible


 Description  « Hide
when LoadClass cannot load a class, it reports a ClassNotFoundException. Which identifies the problem, but not any causes.

Here is the proposed fallback
1. Look for the class as a resource; this identifies other classloading issues. Indicate that the .class is found, even though the class will not load.

2. Look for the parent package. This identifies bad packaging problems. Question is, can it be done?

3. Include a list of JAR files in the exception

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Steve Loughran added a comment - 04/Feb/09 04:51 PM (GMT)
better attempts to identify problem, slightly better error messages