apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.64k stars 846 forks source link

javax imports in a JakartaEE 10 Web Project - Validation Constraint. #5592

Open cruiztorresj opened 1 year ago

cruiztorresj commented 1 year ago

Apache NetBeans version

Apache NetBeans 17

What happened

Creating a new validation constraint (Bean Validation Section) through the UI Wizard still generates imports related to JavaEE even when the project is using JakartaEE 10.

import javax.validation.Constraint;
import javax.validation.Payload;

Instead of

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

Now. I am not sure if this is actually a bug or even an issue, because some folks may still be using NetBeans to develop JavaEE Applications.

How to reproduce

Steps to reproduce it.

Fulfill the required information. e.g. NewValidationConstraintWizardNetBeans17

You will see the aforementioned imports.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 11, NetBeans 17 is being run over WSL2 (Ubuntu 22.04.2 LTS)

JDK

java version "17.0.5" 2022-10-18 LTS Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191) Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

Every time.

Are you willing to submit a pull request?

Yes

javierllorente commented 1 year ago

Duplicate of #4828