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.
Step Over Expression and (smart) Step Into do not work in the following code: public class Main { private static boolean flag = false; public static void main(String[] args) { boolean b; b = flag ? isOdd(3) : isOdd(4); // Step Over Expression fails b = false ? isOdd(3) : isOdd(4); // Step Over Expression fails } public static boolean isOdd(int number) { return number % 2 == 1; } }
The first case was already fixed by the fix of issue #197751. The second case is still not recognized, because the compiler resolves the condition and in the bytecode there is only one method call. Therefore the matching algorithm fails.
Fixed by changeset: 277005:79820f947a60 http://hg.netbeans.org/core-main/rev/79820f947a60
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/79820f947a60 User: mentlicher@netbeans.org Log: #182791: Detect boolean literal in the condition of a ternary operator.