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

Incorrect Imports for Session Bean in Generated Code #7994

Open
mahammad-fathi opened this issue Nov 26, 2024 · 1 comment
Open

Incorrect Imports for Session Bean in Generated Code #7994

mahammad-fathi opened this issue Nov 26, 2024 · 1 comment
Labels
Java EE/Jakarta EE [ci] enable enterprise job kind:bug Bug report or fix needs:triage Requires attention from one of the committers

Comments

@mahammad-fathi
Copy link

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
Uploading netbeans bug1.png…

Are you willing to submit a pull request?

Yes

@mahammad-fathi mahammad-fathi added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Nov 26, 2024
@mbien mbien added the Java EE/Jakarta EE [ci] enable enterprise job label Nov 26, 2024
@matthiasblaesing
Copy link
Contributor

Please check RC3/4 for NB24. #7898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java EE/Jakarta EE [ci] enable enterprise job kind:bug Bug report or fix needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

3 participants