Skip to content

Commit

Permalink
Add debugging to resteasy / arc interactions
Browse files Browse the repository at this point in the history
This relates to: #39137
  • Loading branch information
geoand committed Mar 5, 2024
1 parent 58b0395 commit 2ddb693
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ public void transform(TransformationContext context) {
}

if (restConstructorFound) {
log.debug("Resource " + clazz.name()
+ " will not be considered a CDI bean because it has Jakarta REST annotations on its constructor parameters");
transformation.add(DotNames.VETOED);
}

Expand Down Expand Up @@ -736,8 +738,11 @@ private static void generateDefaultConstructors(BuildProducer<BytecodeTransforme

boolean hasNonJaxRSAnnotations = false;
for (AnnotationInstance instance : classInfo.declaredAnnotations()) {
final String packageName = packageName(instance.name());
DotName name = instance.name();
final String packageName = packageName(name);
if (packageName == null || !isPackageAllowed(allowedAnnotationPrefixes, packageName)) {
log.debug("Annotation " + name + " results in Quarkus not being able to generate a default constructor for "
+ classInfo.name());
hasNonJaxRSAnnotations = true;
break;
}
Expand Down

0 comments on commit 2ddb693

Please sign in to comment.