This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When using "Run File" (Shift-F6) to run a class with a main method, the compiler does not do any dependency checking, which means that classes that are modified and used by the main class are not re-compiled leading to incorrect behaviour when running the main class
It has two parts. First, it works fine on the javac layer. If you run a single file which is modified and it depends on the other modified files in the single project it works fine, the javac does the dependency checking. If the dependent source is from other project, it would require an incremental build done by ant, see issue #36033. If the file, which is started using run single, is not modified, the javac is not started and no compilation is done, it is already reported in the issue #52749 I've closed the issue as duplicate of #36033 since it is s superset of #52749. *** This issue has been marked as a duplicate of 36033 ***
verified duplicate