Quarkus decorator for a JPA repository component causes bytecode error

Solution Unverified - Updated -

Issue

Attaching an interceptor and decorator to a component results in the following exception:

com.example.JpaWidgetRepositoryTest#add(JpaWidgetRepositoryTest.java:19) JpaWidgetRepositoryTest#add() Method expects a return value
Exception Details:
com/example/JpaWidgetRepository_Subclass$$function$$1.apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; @26: return
Reason:
Error exists in the bytecode

Environment

  • Red Hat build of Quarkus 3.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content