Bug 350318

Summary: [compiler] Erroneous name clash error in @Override methods
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: andre.luiz.lehmann, stephan.herrmann
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 7   
Whiteboard: Also released in 2.1 M1
Attachments:
Description Flags
Unit test & fix under test none

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.