When a TestNG unit test is named
com.basic.xml, com.basic.xmltoto but not com.basic.totoxml the test cannot be run in debug mode.
It doesn't find the class.
It's because the package suffix starts with xml.
Language / Project Type / NetBeans Component
Java application project with Ant
How to reproduce
Create a package com.basic.xmltoto
Create a class in it, add a test method (annotated with @Test) and run this method in debug mode
Apache NetBeans version
Apache NetBeans 22
What happened
When a TestNG unit test is named com.basic.xml, com.basic.xmltoto but not com.basic.totoxml the test cannot be run in debug mode. It doesn't find the class. It's because the package suffix starts with xml.
Language / Project Type / NetBeans Component
Java application project with Ant
How to reproduce
Create a package com.basic.xmltoto Create a class in it, add a test method (annotated with @Test) and run this method in debug mode
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 11
JDK
Java 21
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
The problem occurs systematically
Are you willing to submit a pull request?
No