Bug 27890

Summary: Batch compiler option -nowarn or -warn:none doesn't remove the warning for conversion from char[] to String
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Olivier Thomann CLA 2002-12-07 13:26:56 EST
Try to compile the following source with -nowarn on the command line.

class X {
    public static void main(String args[]) {
		char[] tab = null;
		System.out.println("" + c);
    }
}

You will end up with:
----------
1. WARNING in D:\temp\X.java (at line 4)
	System.out.println("" + tab);
	                        ^^^
Must explicitly convert the char[] to a String

-nowarn should remove ALL possible warnings. The Eclipse compiler fails two
jacks tests because of this.
Comment 1 Olivier Thomann CLA 2002-12-09 11:19:34 EST
Fixed and released in 2.1 stream.
Comment 2 Olivier Thomann CLA 2002-12-09 11:20:03 EST
Change milestone.
Comment 3 David Audel CLA 2002-12-18 04:52:43 EST
Verified.