Bug 3414

Summary: JCK 1.4 - BINC - the new field is less accessible than the old one (1GK7VMD)
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: 2.0 M2   
Hardware: All   
OS: Windows 2000   
Whiteboard:

Description Olivier Thomann CLA 2001-10-10 22:54:44 EDT
http://www.ott.oti.com/uvm/OTIIBM/numbat/Testing/JCK-
14/tests/lang/BINC/binc057/binc05701/binc05701.html - POSITIVE TEST
	This is a binary compatibility test. You need to compile the test cases 
in the same order I put them below one by one. And then execute it. The problem 
with the Eclipse
	compiler occurs only at runtime.

Test cases:

	javac 1.4:
		compilation: OK
		runtime: passed with java.lang.IllegalAccessError: try to 
access field javasoft.sqe.tests.lang.binc057.binc05701.binc05701s.f from class 
javasoft.sqe.tests.lang.binc057.binc05701.binc05701c

	javac 1.3:
		compilation: OK
		runtime: failed

	Eclipse compiler:
		compilation: OK
		runtime: failed

NOTES:

	OT (19/09/2001 12:38:42 PM)
		Same explanation than for 1GK7VSN: ITPJCORE:WIN2000 - JCK 1.4 - 
the new field is a static (respectively instance) field.
		We specify Super to the declaring class of the field. Then we 
never go through binc05701s to do the lookup and we don't detect that there is 
a new field with the same 
		signature that is not visible. We definitely need to change the 
declaring class of the field to fix these PRs, but this would break the 1.3 
compatibility.
Comment 1 Philipe Mulet CLA 2002-01-21 14:17:49 EST
Adapted to this change for 1.4 mode only.
Fixed