Incorrect Imports for Session Bean in Generated Code #7994
Labels
Java EE/Jakarta EE
[ci] enable enterprise job
kind:bug
Bug report or fix
needs:triage
Requires attention from one of the committers
Apache NetBeans version
Apache NetBeans 23
What happened
When a Session Bean class is generated, the code incorrectly uses javax imports instead of jakarta imports, which causes compatibility issues. This problem is particularly evident in projects using Jakarta EE dependencies.
Language / Project Type / NetBeans Component
java maven project web application
How to reproduce
The generated code incorrectly uses javax.* imports, which are not compatible with Jakarta EE projects without additional manual configuration.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Linux Mint 22 Cinnamon with kernel 6.8.0-49-generic
JDK
OpenJDK Runtime Environment Zulu21.32+17-CA (build 21.0.2+13-LTS)
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
Whenever a session bean class is generated, the imported library is still of type javax. instead of being of the jakarta type
Are you willing to submit a pull request?
Yes
The text was updated successfully, but these errors were encountered: