istinnstudio opened a new issue, #4145: URL: https://github.com/apache/netbeans/issues/4145
### Apache NetBeans version Apache NetBeans 13 ### What happened Error parsing file (red mark) when having 2 or more java classes in the same java file, inside the same package, that share same class names (e.g after cloning/copying). If public class then we give the file name of the class. If other classes (more than the main one) exist in the same java file (nested or separate non public), then we get this error without any guidance to resolve the naming conflict. Background scanning of projects could then be triggered, and this scanning time period, will be long. ### How to reproduce Create a public class, rename the New Class to the class name Create a non public class inside the same file, nested and/or separated. Copy Paste the Java file to the same package from projects list. ### Did this work correctly in an earlier version? No ### Operating System windows 7 ### JDK 17 ### Apache NetBeans packaging Apache NetBeans provided installer ### Anything else _No response_ ### Are you willing to submit a pull request? No ### Code of Conduct 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: [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
