Skip to content

Commit 6ac3df7

Browse files
authored
Merge pull request #123 from Ladicek/jandex-3.4.0-improvement
improve the Jandex 3.4.0 release announcement
2 parents 6ee9d5b + 34ee506 commit 6ac3df7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

_posts/2025-07-21-jandex-3-4-0.adoc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ Jandex now also includes integration with Gizmo 2.
1717
Gizmo 2 is an evolution of Gizmo, the bytecode generation framework used in Quarkus.
1818
Gizmo version 1 used Jandex in its core, but Gizmo version 2 does not.
1919
Therefore, an integration package is needed.
20-
This version of Jandex includes one, providing all the necessary methods like `classDescOf(org.jboss.jandex.Type)` or `genericTypeOf(org.jboss.jandex.Type)`.
21-
All integration code is present in `static` methods of the class `Jandex2Gizmo`.
20+
This version of Jandex includes a new module, `io.smallrye:jandex-gizmo2`, which contains a class called `Jandex2Gizmo` with these `static` methods:
21+
22+
* `classDescOf()` to create `java.lang.constant.ClassDesc`
23+
* `fieldDescOf()` to create `io.quarkus.gizmo2.desc.FieldDesc`
24+
* `methodDescOf()` to create `io.quarkus.gizmo2.desc.MethodDesc`
25+
* `constructorDescOf()` to create `io.quarkus.gizmo2.desc.ConstructorDesc`
26+
* `genericTypeOf*()` to create `io.quarkus.gizmo2.GenericType` and its subtypes
27+
* `typeArgumentOf()` to create `io.quarkus.gizmo2.TypeArgument`
28+
* `copyTypeParameters()` and `addTypeParameter()`
29+
* `copyAnnotations()` and `addAnnotation()`
2230

2331
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

Comments
 (0)