Bug 79641 - boolean autoboxing does not work with Object varargs
Summary: boolean autoboxing does not work with Object varargs
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-28 16:47 EST by Garret Wilson CLA
Modified: 2004-12-14 23:14 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 Garret Wilson CLA 2004-11-28 16:47:08 EST
Eclipse cannot find a vararg Object method when passed a boolean to be
autoboxed. For example:

public void test1()
{
  test2(true);
}

public void test2(final Object... objects)
{
}

I didn't take the time to make sure this is part of the specification, but it
seems to compile fine on NetBeans.
Comment 1 Olivier Thomann CLA 2004-11-29 09:56:11 EST
Autoboxing is not supported yet.
Comment 2 Kent Johnson CLA 2004-12-08 11:08:05 EST
Added AutoBoxing test #25
Comment 3 Olivier Thomann CLA 2004-12-14 23:14:03 EST
Verified in 200412140800