Bug 350318 - [compiler] Erroneous name clash error in @Override methods
Summary: [compiler] Erroneous name clash error in @Override methods
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard: Also released in 2.1 M1
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 14:46 EDT by Stephan Herrmann CLA
Modified: 2011-08-21 11:43 EDT (History)
2 users (show)

See Also:


Attachments
Unit test & fix under test (4.38 KB, patch)
2011-06-24 16:17 EDT, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2011-06-24 14:46:56 EDT
+++ This bug was initially created as a clone of Bug #350093 +++

Build Identifier: I20110613-1736

In a hierarchy envolving a interface, a abstract class and a concrete class, with Generic declarations in interface and abstract class, the JDT compiler cause a 'Name clash erro', meanwhile javac 6 compiles fine.

Reproducible: Always

Steps to Reproduce:
1. Compile the attacheds files with JDT
2. Compile the attacheds files with Javac
3. See the difference
Comment 1 Stephan Herrmann CLA 2011-06-24 14:50:05 EDT
I'll leave the original bug to investigate the releng/deploy/install issues:
was the Object Teams patch indeed installed unintentionally?

I opened this clone for tracking the bug in the OT/J compiler.
Comment 2 Stephan Herrmann CLA 2011-06-24 16:17:50 EDT
Created attachment 198572 [details]
Unit test & fix under test

Here's the same test packaged as a JUnit test, plus a potential fix.
Comment 3 Stephan Herrmann CLA 2011-06-24 16:19:16 EDT
Removing dependency on original bug.
Comment 4 Stephan Herrmann CLA 2011-08-13 12:05:43 EDT
Patch works find and has been released as r1755 for 2.0.1
Comment 5 Stephan Herrmann CLA 2011-08-17 15:33:25 EDT
Verified for 2.0.1 using build 201108160141.