File tree 1 file changed +8
-2
lines changed
core/src/main/java/org/springframework/ldap/core/support
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2005-2013 the original author or authors.
2
+ * Copyright 2005-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
18
18
19
19
import java .io .IOException ;
20
20
import java .lang .reflect .InvocationHandler ;
21
+ import java .lang .reflect .InvocationTargetException ;
21
22
import java .lang .reflect .Method ;
22
23
import java .lang .reflect .Proxy ;
23
24
import java .util .Hashtable ;
@@ -203,7 +204,12 @@ else if (method.getName().equals(GET_TARGET_CONTEXT_METHOD_NAME)) {
203
204
return this .target ;
204
205
}
205
206
else {
206
- return method .invoke (this .target , args );
207
+ try {
208
+ return method .invoke (this .target , args );
209
+ }
210
+ catch (InvocationTargetException ex ) {
211
+ throw ex .getTargetException ();
212
+ }
207
213
}
208
214
}
209
215
You can’t perform that action at this time.
0 commit comments