Bug 84801 - Bad code generated for Java 5.0
Summary: Bad code generated for Java 5.0
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 M5   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-09 12:30 EST by Michael Dudzik CLA
Modified: 2005-02-16 09:23 EST (History)
1 user (show)

See Also:


Attachments
This file generates bad code when compiled for Java 5 (1.37 KB, text/plain)
2005-02-09 12:33 EST, Michael Dudzik CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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