bernard01 commented on issue #4766:
URL: https://github.com/apache/netbeans/issues/4766#issuecomment-1345645376

   Hi,
   Sorry for the delay.
   
   The attached project reproduces the error most of the time.
   Candidate for the NetBeans bug of the year.
   
   It appears that nb-javac loses vital info that causes its failure to find 
main classes in the test hierarchy of a maven project.
   
   This error disappears if complexity is reduced in the test classes which is 
a concern.
   
   However the root cause seems to be a package-info.java file in the main 
source tree. This file, which javac and nb-javac do not complain about, is 
missing the package statement.
   
   This is a bad trap where it is unlikely that a user will find that problem 
in a larger project where package-info.java is mainly used for documentation 
purposes.
   
   
   
[TestProject.zip](https://github.com/apache/netbeans/files/10203139/TestProject.zip)
   


-- 
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