Community
Participate
Working Groups
The code: double pi = Math.PI; System.out.printf("pi = %5.3f%n", pi); underlines printf and reports: The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, String, double) However, this same piece of code compiles using BlueJ on the same machine. I have Java 5.0 version 6 installed as both my development kit and runtime environment. This code also works on my Mac using Eclipse. It only fails on my PC.
Are you sure that you're compiler settings are 1.5?
Compiler settings must be set to 5.0
Reopen to change resolution
This was an invalid usage not a fix in the code...
I had failed to set the compliler compliance to 5.0. When that was done, there is no problem. Thus there is no bug.
Fixed when the complier compliance was set to 5.0.
Reopen to set as invalid (again...)
As I said in comment 4 and as you agreed in comment 5, this was an invalid usage, _NOT_ a bug => we must set resolution to INVALID. Resolution FIXED is _only_ used when we modify our code to fix a real bug. There was no code change and this was not a bug => FIXED _cannot_ be used in this case. Please, do NOT reopen again this bug, thanks