Summary: | Unresolved import in superclass causes 'Cannot reduce the visibility of the inherited method' in subclass | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Josh Micich <josh.micich> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | minor | ||||||
Priority: | P3 | CC: | amj87.iitr, jarthana, Olivier_Thomann, srikanth_sankaran, stephan.herrmann | ||||
Version: | 3.6 | ||||||
Target Milestone: | 3.6 M5 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Josh Micich
2009-12-18 20:47:50 EST
Olivier, I happened to look at this bug and I think the issue is with the following code: org.eclipse.jdt.internal.compiler.ClassFile#addAbstractMethod(AbstractMethodDeclaration, MethodBinding) This is where we mark the method with errors as public and abstract. However, I am not quite sure why it has to be made public. Yes, I believe this is the issue. Thanks for looking at it. I'll take care of it. Created attachment 155431 [details]
Proposed fix
Released for 3.6M5. I'll add a regression test for it. Added regression test: org.eclipse.jdt.core.tests.compiler.regression.ProblemTypeAndMethodTest#test104 Verified for 3.6M5 using build I20100122-0800. Verified. |