Commit 9c440d3
committed
Fix IndexOutOfBoundsException in ReflectionUtils
When looking for overridden methods, if the superclass or interface that is being used has overloaded methods with the same name, an IndexOutOfBoundsException will be generated (on line 93 in old code), because the code is not checking for the array lengths and using the length of the methodToFind.getParameterTypes to iterate arrays of different length.1 parent 400662d commit 9c440d3
File tree
1 file changed
+5
-1
lines changed- modules/swagger-jaxrs/src/main/java/io/swagger/jaxrs/utils
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| |||
0 commit comments