Bug 3411 - JCK 1.4 - BINC - Overriding instance and class methods (1GK7U6C)
Summary: JCK 1.4 - BINC - Overriding instance and class methods (1GK7U6C)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:54 EDT by Olivier Thomann CLA
Modified: 2002-01-17 17:08 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 2001-10-10 22:54:41 EDT
http://www.ott.oti.com/uvm/OTIIBM/numbat/Testing/JCK-
14/tests/lang/BINC/binc044/binc04401/binc04401.html - POSITIVE TEST
	This is a binary compatibility test. You need to compile first the 
first test case and then the second. Not both at the same time. And then 
execute it. The problem with the Eclipse
	compiler occurs only at runtime.

Test cases:
	javac 1.4:
		compilation: OK
		runtime:
cm_Super
im_Super

	javac 1.3: 
		compilation: OK
		runtime:
cm_Hyper
im_Super
failed

	Eclipse compiler:
		compilation: OK
		runtime:
cm_Hyper
im_Super
failed

NOTES:

	Again the problem is related to the declaring class of the method 
invocation. We twice generate Hyper and javac generates Super. We generate all 
the time the declaring 
	class of the method whereas javac generates the receiver class for the 
declaring class of the method. This is a big change since 1.3.
Comment 1 Philipe Mulet CLA 2002-01-17 17:08:18 EST
Changing the declaring class of binding in message sendings if declaring class 
isn't receiver type.
Fixed