Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
Product Version: Apache NetBeans IDE 11.2
Java: 13.0.1; OpenJDK 64-Bit Server VM 13.0.1+9
Runtime: OpenJDK Runtime Environment 13.0.1+9
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
Description
There are two Maven projects and both have a class with the same name in the same package (which might be a bit unusual, I admit). Both projects are open in Netbeans. After adding (line) breakpoint and attaching the debugger, there is an error in "Output - Debugger Console":
Not able to submit breakpoint LineBreakpoint Main.java : 7, reason: Breakpoint's source file does not belong into the preferred source root 'C:\path\to\other\project\src\main\java'. See Window/Debugging/Sources and assure that the intended source roots are selected for debugging. Invalid LineBreakpoint Main.java : 7
Example class:
package my.package; public class Main { public static int foo() { int i = 3; i++; return i; } }
This works after the other project is closed in Netbeans or the class is moved to a different package.