Bug 37548 - Array protected methods should use array type as receiver type in bytecodes
Summary: Array protected methods should use array type as receiver type in bytecodes
Status: RESOLVED DUPLICATE of bug 36307
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: 3.0 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-13 08:23 EDT by Philipe Mulet CLA
Modified: 2003-06-02 06:13 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-05-13 08:23:22 EDT
Build R2.1

Once 1.4.2 target support is enabled, the compiler should encode the array 
receiver type inside the method reference instead of Object for message 
sendings like  array.clone();

see http://developer.java.sun.com/developer/bugParade/bugs/4329886.html
Comment 1 Philipe Mulet CLA 2003-05-13 08:25:00 EDT
Olivier - can you verify whether all array message sendings are modified in 
this way, or only Object protected methods (clone(), finalize()).
Comment 2 Philipe Mulet CLA 2003-05-13 08:25:27 EDT
This requires addition of target 1.4.2
Comment 3 Olivier Thomann CLA 2003-05-13 09:38:28 EDT
Only clone() seems to be concerned by this change. finalize() doesn't compile.
Comment 4 Philipe Mulet CLA 2003-05-21 07:26:05 EDT
No need for 1.4.2 target, will have the fix enabled for 1.4 targets and 
better. -target 1.4.2 is a pure javac artifact, which doesn't exist in 
classfiles.

Comment 5 Philipe Mulet CLA 2003-05-21 07:27:04 EDT

*** This bug has been marked as a duplicate of 36307 ***