Bug 27890 - Batch compiler option -nowarn or -warn:none doesn't remove the warning for conversion from char[] to String
Summary: Batch compiler option -nowarn or -warn:none doesn't remove the warning for co...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-07 13:26 EST by Olivier Thomann CLA
Modified: 2002-12-18 04:52 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.