Hi,
Using IJ Idea 12.0.4 on Xubuntu x64, Sun JDK 1.6.39. I made a small console demo that displays a few lines lines using System.out.printf(). Let's assume the very last line of the program cause an exception. In the console, the text of the normal output is interspersed with the red error messages from the runtime error. As a result, it is very confusing as I cannot know after which printf() the runtime error occurred. Can you please confirm?
Basically the console currently look like that:
Normal printf() Line1
Exception in thread "main" java.lang.IllegalArgumentException: blabla...
Normal printf() Line2
at com.bogus.testIJ.ClockDemo.setTime(ClockDemo.java:29)
at com.bogus.testIJ.ClockDemoTest.main(ClockDemoTest.java:43)
Normal printf() Line3
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Normal printf() Line4
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Normal printf() Line5. This program finishes with an intentional exception below.
I would expect the console output to be:
Normal printf() Line1
Normal printf() Line2
Normal printf() Line2
Normal printf() Line2
Normal printf() Line5. This program finishes with an intentional exception below.
Exception in thread "main" java.lang.IllegalArgumentException: blabla...
at com.bogus.testIJ.ClockDemo.setTime(ClockDemo.java:29)
at com.bogus.testIJ.ClockDemoTest.main(ClockDemoTest.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)