Mantis - Hessian
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4320 | minor | always | 12-08-10 01:44 | 12-08-10 01:47 | |
|
|||||
Reporter: | ccampo | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | 3.2.0 | ||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0004320: Catching ClassNotFoundException and continue in SerializerFactory | ||||
Description: |
I recently fell over a piece of code in the SerializerFactory that looks like this try { Class cl = Class.forName(type, false, loader); derserializer = getDeserializer(cl); } catch (Exception e) { log.warning("Hessian/Burlap: '" + type + "' is an unknown class in " + loader +":\n" + e); log.log(LEVEL.FINER, e.toString(), e); } I am a little puzzeled about this piece of code. So a class cannot be found and the code prints out a log and continues as if nothing happens so it'll be only harder to find 3 steps later when interpreting the hessian protocol will fail with some other exception ? Who would do something like this ? Wouldnt it be way better and really the only way to deal with this, to pack the Exception into a RuntimeException that you throw ? This problem is also in version 4.0.7 (the current one) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|