JaroslavTulach commented on a change in pull request #3223:
URL: https://github.com/apache/netbeans/pull/3223#discussion_r725791685



##########
File path: java/java.source/src/org/netbeans/modules/java/JavaDataObject.java
##########
@@ -90,6 +93,30 @@ protected DataObject handleCopyRename(DataFolder df, String 
name, String ext) th
     public static MultiViewEditorElement createMultiViewEditorElement(Lookup 
context) {
         return new MultiViewEditorElement(context);
     }
+
+    @Override
+    protected DataObject handleCreateFromTemplate(DataFolder df, String name) 
throws IOException {
+        if (name == null) {
+            return super.handleCreateFromTemplate(df, name);
+        }
+        String[] packageAndName = name.split("\\.");
+        if (packageAndName.length > 1) {
+            verifyJavaNames(packageAndName);

Review comment:
       Yup. I had to do it in 1162ab742b61fff07e2655ef29e8fe1a8ade71dd 
otherwise existing tests were failing.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to