diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionFailedTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionFailedTest.java index 3cb2b28440fe8..f054c9482ba5f 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionFailedTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionFailedTest.java @@ -37,7 +37,7 @@ public class InjectionFailedTest { assertTrue(s.getMessage().contains( "No template found for path [foo] defined at io.quarkus.qute.deployment.inject.InjectionFailedTest#foo") || s.getMessage().contains( - "No template found for path [alpha] defined at io.quarkus.qute.deployment.inject.InjectionFailedTest$Client()"), + "No template found for path [alpha] defined at parameter 'alpha' of io.quarkus.qute.deployment.inject.InjectionFailedTest$Client constructor"), s.getMessage()); } }); diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java index 3174b2976989f..e79adfdaa8da4 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java @@ -292,11 +292,11 @@ public String getTargetInfo() { } String method = target.asMethod().name(); if (method.equals(Methods.INIT)) { - method = ""; + method = " constructor"; } else { - method = "#" + method; + method = "#" + method + "()"; } - return target.asMethod().declaringClass().name() + method + "()" + ":" + param; + return "parameter '" + param + "' of " + target.asMethod().declaringClass().name() + method; default: return target.toString(); } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableInitializerInjectionPointTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableInitializerInjectionPointTest.java index a82cd637dce02..76224e6c4b102 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableInitializerInjectionPointTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableInitializerInjectionPointTest.java @@ -24,7 +24,7 @@ public void testError() { assertNotNull(failure); assertTrue(failure instanceof DefinitionException); assertEquals( - "Type variable is not a legal injection point type: io.quarkus.arc.test.injection.illegal.TypeVariableInitializerInjectionPointTest$Head#setIt():it", + "Type variable is not a legal injection point type: parameter 'it' of io.quarkus.arc.test.injection.illegal.TypeVariableInitializerInjectionPointTest$Head#setIt()", failure.getMessage()); }