From 34ee50613b2c2763308b508c55ff9dc612e87f11 Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Mon, 21 Jul 2025 11:59:28 +0200 Subject: [PATCH] improve the Jandex 3.4.0 release announcement --- _posts/2025-07-21-jandex-3-4-0.adoc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/_posts/2025-07-21-jandex-3-4-0.adoc b/_posts/2025-07-21-jandex-3-4-0.adoc index 20435bec..ab8cb890 100644 --- a/_posts/2025-07-21-jandex-3-4-0.adoc +++ b/_posts/2025-07-21-jandex-3-4-0.adoc @@ -17,7 +17,15 @@ Jandex now also includes integration with Gizmo 2. Gizmo 2 is an evolution of Gizmo, the bytecode generation framework used in Quarkus. Gizmo version 1 used Jandex in its core, but Gizmo version 2 does not. Therefore, an integration package is needed. -This version of Jandex includes one, providing all the necessary methods like `classDescOf(org.jboss.jandex.Type)` or `genericTypeOf(org.jboss.jandex.Type)`. -All integration code is present in `static` methods of the class `Jandex2Gizmo`. +This version of Jandex includes a new module, `io.smallrye:jandex-gizmo2`, which contains a class called `Jandex2Gizmo` with these `static` methods: + +* `classDescOf()` to create `java.lang.constant.ClassDesc` +* `fieldDescOf()` to create `io.quarkus.gizmo2.desc.FieldDesc` +* `methodDescOf()` to create `io.quarkus.gizmo2.desc.MethodDesc` +* `constructorDescOf()` to create `io.quarkus.gizmo2.desc.ConstructorDesc` +* `genericTypeOf*()` to create `io.quarkus.gizmo2.GenericType` and its subtypes +* `typeArgumentOf()` to create `io.quarkus.gizmo2.TypeArgument` +* `copyTypeParameters()` and `addTypeParameter()` +* `copyAnnotations()` and `addAnnotation()` If you experience any troubles, or if you have any ideas for Jandex improvements, please https://github.com/smallrye/jandex/issues[file an issue].