|
| 1 | +:page-layout: post |
| 2 | +:page-title: Jandex 3.5.0 |
| 3 | +:page-synopsis: Jandex 3.5.0 released! |
| 4 | +:page-tags: [announcement] |
| 5 | +:page-date: 2025-09-12 12:00:00.000 +0100 |
| 6 | +:page-author: lthon |
| 7 | + |
| 8 | += Jandex 3.5.0 |
| 9 | + |
| 10 | +Today, we announce the https://github.com/smallrye/jandex/releases/tag/3.5.0[release] of Jandex 3.5.0. |
| 11 | +This release contains multiple optizations, bug fixes and and small new features. |
| 12 | + |
| 13 | +Class `MethodSignatureKey` was added, together with `MethodInfo.signatureKey()`. |
| 14 | +A method signature key implements `equals()` and `hashCode()` according to the method signature (that is, method name, parameter types, return type). |
| 15 | +This allows skipping methods during processing of an inheritance hierarchy if another method with the same signature has already been processed. |
| 16 | +The concept has already existed in Quarkus, but the implementation added in Jandex is slightly more optimized. |
| 17 | + |
| 18 | +Method `MethodParameterInfo.nameOrDefault()` was added. |
| 19 | +As opposed to `MethodParameterInfo.name()`, this method never returns `null`; instead, when the parameter name is not known, it returns `argN`, where `N` is a zero-based parameter index. |
| 20 | + |
| 21 | +Methods `copyModifiers()` and `constOfEnum()` were added to `Jandex2Gizmo`, simplifying the Gizmo 2 integration in certain cases. |
| 22 | + |
| 23 | +Index reproducibility was fixed in case of type annotations. |
| 24 | +Jandex has been trying to produce reproducible output since version link:/blog/jandex-3-1-0[ 3.1.0], but since that version, several bugs have been found. |
| 25 | +This time, a bug was found in case type annotations were used. |
| 26 | +This bug was fixed, leading to reproducible output in even more cases. |
| 27 | +Thanks Robert Stupp for the issue report, reproducer and an attempt to fix! |
| 28 | + |
| 29 | +Finally, several optimizations were performed especially to reduce allocations. |
| 30 | +Thanks Guillaume Smet for issues and fixes! |
| 31 | + |
| 32 | +If you experience any troubles, or if you have any ideas for Jandex improvements, please https://github.com/smallrye/jandex/issues[file an issue]. |
0 commit comments