Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty Constructor Call in Handler method being generated for Beans that inject other beans #3637

Open
donndorf opened this issue Aug 26, 2024 · 0 comments
Assignees

Comments

@donndorf
Copy link

donndorf commented Aug 26, 2024

Describe the bug

Scenario:

Bean A
Bean B

Bean B is being injected into Bean A
Bean A is used in a BPMN service Task

Generating the code creates an Empty Constructor Call for Bean A.
This leads to failure at application Startup because the Injected Bean B is required as Argument

I uploaded a small example here: https://github.com/donndorf/kogito-inject-empty-constructor

Expected behavior

Either Constructor being called correctly or Bean being fetched vie CDI /Quarkus Arc container

Actual behavior

Empty constructor called for Bean

How to Reproduce?

https://github.com/donndorf/kogito-inject-empty-constructor

  1. Checkout the project
  2. Run a mvn clean compile
  3. run the Test and check the Terminal for Errors

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)

10.0.999-SNAPSHOT

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@fjtirado fjtirado self-assigned this Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants
@fjtirado @donndorf and others