You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "cruiztorresj (via GitHub)" <gi...@apache.org> on 2023/03/03 00:55:50 UTC

[GitHub] [netbeans] cruiztorresj opened a new issue, #5592: javax imports in a JakartaEE 10 Web Project - Validation Constraint.

cruiztorresj opened a new issue, #5592:
URL: https://github.com/apache/netbeans/issues/5592

   ### 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.
   
   ```Java
   import javax.validation.Constraint;
   import javax.validation.Payload;
   ```
   
   Instead of
   
   ```Java
   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.**
   
   - Right click over your project.
   - Select "New"
   - Select "Other" from the contextual submenu.
   - Select "Bean Validation" in the presented dialog box.
   - Choose "Validation Constraint" in the "File Types" section located to the right.
   - Click "Next" button.
   
   Fulfill the required information. e.g.
    ![NewValidationConstraintWizardNetBeans17](https://user-images.githubusercontent.com/75508473/222604185-cf615910-3821-420e-b3aa-526e0a1067bb.png)
   
   - Click "Finish" button.
   
   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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] javierllorente commented on issue #5592: javax imports in a JakartaEE 10 Web Project - Validation Constraint.

Posted by "javierllorente (via GitHub)" <gi...@apache.org>.
javierllorente commented on issue #5592:
URL: https://github.com/apache/netbeans/issues/5592#issuecomment-1659203108

   Duplicate of #4828


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists