Bug 84801

Summary: Bad code generated for Java 5.0
Product: [Eclipse Project] JDT Reporter: Michael Dudzik <spamcatcher>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: karsten
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
This file generates bad code when compiled for Java 5 none

Description Michael Dudzik CLA 2005-02-09 12:30:56 EST
I will attach a testcase which crashes with a stack overflow when a recursion
occurs when a subclass method should properly be called.  The error can be
eliminated with an explicit cast or, interestingly, the removal of a method
which is never called or executed.

This testcase executes properly when compiled as Java 1.4 or when compiled with
the Sun JDK 1.5.0.0_01
Comment 1 Michael Dudzik CLA 2005-02-09 12:33:56 EST
Created attachment 17794 [details]
This file generates bad code when compiled for Java 5

This file crashes with a stack overflow error when compiled under Eclipse 3.1M4
as  Java 5
Comment 2 Philipe Mulet CLA 2005-02-09 12:55:08 EST
I suspect this to be due to some missing bridge method
Comment 3 Kent Johnson CLA 2005-02-11 13:44:45 EST
We did not search for a better match in inherited interfaces if we had found 
more than 1 visible match.

Added AutoBoxingTest test099
Comment 4 David Audel CLA 2005-02-16 09:23:52 EST
Verified in I20050215-2300