Bug 79254 - autoboxing does not work in combination with downcasting
Summary: autoboxing does not work in combination with downcasting
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 3.1 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-23 00:13 EST by Eric Goff CLA
Modified: 2004-12-14 23:13 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 Eric Goff CLA 2004-11-23 00:13:16 EST
If I have a method like so:
       void foo(Object o) ;

I can not call it like so:
       foo(2) ;

It should convert 2 to an Integer.
This works with Sun's 1.5.0 javac
Comment 1 Olivier Thomann CLA 2004-11-23 10:10:10 EST
Autoboxing is not supported yet.
Comment 2 Kent Johnson CLA 2004-12-08 11:08:11 EST
Added AutoBoxing test #24
Comment 3 Olivier Thomann CLA 2004-12-14 23:11:49 EST
This case is not supported yet.
Comment 4 Olivier Thomann CLA 2004-12-14 23:13:24 EST
My mistake.
This is fixed.
Comment 5 Olivier Thomann CLA 2004-12-14 23:13:31 EST
Verified in 200412140800