Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 236379

Summary: [compiler][1.5] javac 6 no more warns about arrays used in place of varargs
Product: [Eclipse Project] JDT Reporter: Maxime Daniel <maxime_daniel>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: kent_johnson, philippe_mulet
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard: stalebug

Description Maxime Daniel CLA 2008-06-10 03:32:27 EDT
I20080604-2000

Bug 83379 was opened to match javac 5 behavior on the following (warn about arrays vs varargs in method signatures):
public class X { void count(int ... values) {} }
class Y extends X { void count(int[] values) {} }
class Z extends Y { void count(int... values) {} }

- this is VarargsTest#11 indeed.

javac 6 and 7 have dropped those warnings, which probes a change on our side as well (either make the warning configurable, or tie it with the source level, unless we believe javac is wrong).
Comment 1 Philipe Mulet CLA 2008-06-10 17:08:30 EDT
Feels odd that this warning would have been removed entirely...
Also, it is strange that this warning is not configurable in ECJ.

Low prio to me, should try to understand why it got removed from javac 6/7 before taking action.
Comment 2 Eclipse Genie CLA 2020-02-06 15:10:35 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.