Community
Participate
Working Groups
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
Created attachment 198430 [details] Visitor.java
Created attachment 198431 [details] Caller.java
Additional comment: They compiled very well in the previous JDT version
I'll follow up.
Using HEAD, I get: ---------- 1. WARNING in C:\tests_sources\Caller.java (at line 3) private static class VisitorImpl extends VisitorAdapter<Object> { ^^^^^^^^^^^ The type Caller.VisitorImpl is never used locally ---------- 2. WARNING in C:\tests_sources\Caller.java (at line 21) private void accept(Visitor<Parameter1, Parameter2> v) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The method accept(Visitor<Parameter1,Parameter2>) from the type Caller is never used locally ---------- ---------- 3. WARNING in C:\tests_sources\Visitor.java (at line 2) public interface Visitor<R, A> { ^ The type parameter A is hiding the type A ---------- 4. WARNING in C:\tests_sources\Visitor.java (at line 16) abstract class VisitorAdapter<A> implements Visitor<Parameter1, A> { ^ The type parameter A is hiding the type A ---------- 4 problems (4 warnings) COMPILE FINISHED-------- Could you please specify the version of the bundle org.eclipse.jdt.core ?
More precisely I get: ---------- 1. WARNING in C:\tests_sources\Caller.java (at line 3) private static class VisitorImpl extends VisitorAdapter<Object> { ^^^^^^^^^^^ The type Caller.VisitorImpl is never used locally ---------- 2. WARNING in C:\tests_sources\Caller.java (at line 21) private void accept(Visitor<Parameter1, Parameter2> v) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The method accept(Visitor<Parameter1,Parameter2>) from the type Caller is never used locally ---------- If I remove the class A that I had in the same folder.
I use "3.7.0.v20110520-0800-7z8gFchFMTdFYKuLqBLqRja9B15B" version of "org.eclipse.jdt.feature.group".
Go to Help>About Eclipse SDK>Installation Details>Plugins and please provide the bundle id for the org.eclipse.jdt.core bundle. Thanks.
org.eclipse.jdt.core - 3.7.0.v_OTDT_r200_201106070730
Stephan, is this an issue with Object Team?
(In reply to comment #10) > Stephan, is this an issue with Object Team? Indeed so, I'll check what's going on here.
(In reply to comment #9) > org.eclipse.jdt.core - 3.7.0.v_OTDT_r200_201106070730 André, it seems you (accidentally?) installed the feature "Object Teams Patch for JDT/Core", which replaces the original jdt.core with a variant that is capable of compiling the Java-extension OT/J. If this install was indeed unintended I'd like to find out how this got included in your install. Uninstalling the mentioned feature should then resolve the issue for you: Help > About Eclipse SDK > Installation Details > Installed Software Identify the feature and click Uninstall. Additionally there seems to be a bug in Object Teams which should indeed be fully compatible with the original jdt.core but seems not to be.
Yes! I installed "Object Teams Patch for JDT/Core" believing it would be some kind of fix for JDT. When I uninstalled Oracle, compile the classes again. Sorry about bug ticket, but I thought it was an error of eclipse. Thanks for patience ^.^
(In reply to comment #13) > Yes! > I installed "Object Teams Patch for JDT/Core" believing it would be some kind > of fix for JDT. Thanks for confirming. Do you remember whether this was proposed during "check for updates" or else what workflow brought you to installing this patch feature? I'm asking, because we tried to avoid that this feature would be proposed unless you explicitly selected "Object Teams Development Tooling" (from the "Programming Languages" category). > Sorry about bug ticket, but I thought it was an error of eclipse. No reason to apologize, the ticket is helpful indeed, if not for JDT then for the Object Teams project.
I marked IP of the attachments because these are used in test cases for Object Teams (bug 350318). Changing resolution of this bug as duplicate of bug 350133, guessing that "check for updates" might have accidentally proposed to install the OT patch. *** This bug has been marked as a duplicate of bug 350133 ***