Community
Participate
Working Groups
package de.neze.bugreport.eclipse; /** * Compilation ERROR in eclipse-SDK-I20040407-linux-gtk.zip * "Missing code implementation in the compiler" * caused by @throws in Javadoc. * * Perhaps you also consider to reopen my bug report: * https://bugs.eclipse.org/bugs/show_bug.cgi?id=48131 * There are multpile ways to reproduce the error, they are marked with [*] * * This is my (compiler) bug report number 8 or so, and now you have to PAY ;-): * I need a job and, if you believe a developer like me is helpful for the * Eclipse Team, please send me a mail addresse where I can send my resume * to. My first try to become a Eclispe Team member failed :-( */ interface InterfaceWithProblem { /** * Rename this class to Problem to reporduce the error. [*] */ public static class Problem0 extends Exception { } } public abstract class ClassWithProblem { public static class Problem extends Exception { } public abstract static class InnerClass implements InterfaceWithProblem { /** <-- remove this * and the error is gone [*] * If you remove the next line, then the error is also gone:[*] * @throws Problem */ public void aMehtod() { } } }
The only thing I could get is: Exception Problem is not declared I don't get anything else. I am also using build 0407.
You have to rename InterfaceWithProblem.Problem0 to InterfaceWithProblem.Problem Sorry, I have noted that in an comment: /** * Rename this class to Problem to reporduce the error. [*] */ Please try it.
Cannot reproduce either. Please indicate your exact settings and reopen.
You are right: With the default settings there is no error. Can you tell me an easy way to mail all my compiler settings? If no such possibility exists, please try to use "compiler complicane level: 1.3" to reproduce the error message. If that fials I will send you may complete compiler settings.
I missed to reopen the bug report -sorry
Are these project custom preferences or global preferences ?
The error was first reported with the global settings. To check the setting dependencies I modifed the project settings for the compiler and the problem disapeared for the setting "compiler complicane level: 1.4" and reappeared for "compiler complicane level: 1.3" But I use 3-5 compiler settings unequal to the default values, ... . Tell me how I can send my settings to you without writting everything by hand ... .
In the global prefs menu, export them to a file, and attach this file to the bug report.
Created attachment 9563 [details] My global preferences file The file you requested....
BTW: Does the setting "compiler complicane level: 1.3" not cuase the problem, or why do you request that file?
Reproduced. The compliance 1.3 does the trick. Really weird.
It only occurs when enabling the javadoc checking.
It was trying to report the following error in 1.3 mode: ---------- 1. ERROR in ... * @throws Problem ^^^^^^^ Javadoc: The type Problem is defined in an inherited type and an enclosing scope ---------- Frederic, pls add regression tests + check field&method diagnosis for similar adjustments. You were missing handling of InheritedNameHidesEnclosingName in #javadocInvalidType. I suspect you have the same issue for fields and methods.
Released my changes for the type case. No test added.
Test cases added in Compliance_1_3/Compliance_1.4. Also added specific messages and tests for fields and methods...
Verified in 200405180816