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.
Output windows displayed strange result for System.out.format statement: public class Test { public static void main(String[] args) { System.out.println("Number1: " + 11); System.out.format("Number2: %d ", 11); } } Output: Number1: 11 Number2: 11 Number2: 11 Using JDK 1.6_15; also tried with JDK 1.6_14 with the same result.
I can reproduce it in 6.7, but in 6.8 all work fine
Any possibility of patching 6.7.1?
I'm not sure what fixed it - reassigning to ant, maybe someone there knows ...
If reproducible in 6.7 then it is not WORKSFORME.
Tomas' area.
Probably FIXED in 6.8 but fixed by what? Duplicate of something else? Certainly a patch candidate if there was an intentional fix.
System.out.format("Number2: %d%n ", 11); (adding %n) produces a better result...
Yes, handling nonterminated lines in Ant output is a frequent source of issues.
The problem was with printing strings that matched hyperlink pattern. *** This issue has been marked as a duplicate of 167279 ***