<< Back to previous view

[CLJ-942] Calls to instance methods through the Reflector double unwrap exceptions Created: 01/Mar/12  Updated: 09/Mar/12  Resolved: 09/Mar/12

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.4
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Paul Stadig Assignee: Unassigned
Resolution: Completed Votes: 2
Labels: None

Attachments: File reflection-fix.diff    
Patch: Code and Test
Approval: Ok


When calling an instance method with one or more arguments, if an exception is thrown that has a cause, then that exception is wrapped in an InvocationTargetException. The Reflector tries to unwrap that, but it also unwraps the exception that is thrown by the method being called reflectively.

Comment by Stuart Halloway [ 06/Mar/12 8:58 PM ]

The main purpose of patch looks sound. The test cleanup stuff also looks sound, and is low risk as it only changes the build phase and subtracts a file that we should not be packaging from the release jar.

Thanks Paul.

Generated at Fri Jan 19 03:31:36 CST 2018 using JIRA 4.4#649-r158309.