Community
Participate
Working Groups
For this code % cat CUnitTest.java package foo; public final class CUnitTest { /** Tests the method{@link ComparableUtils#compareTo(Object, Object, Class)} and * {@link ComparableUtils#compareTo(Object, Object)}. */ public void testCompareTo() { } } I get this error - Missing code implementation in the compiler (at line 1). If I remove the javadoc comment to the testCompareTo() method the error goes away.
ComparableUtils.compareTo are generic methods. public static <T extends Comparable< ? super T>> int compareTo(final Object first, final Object firstPrime, final Class<T> type) throws ClassCastException { return 0; } and public static <X extends Comparable< ? super X>> int compareTo(final X first, final X firstPrime) throws ClassCastException { return 0; }
Created attachment 17066 [details] Test case Put a breakpoint in ProblemReporter.javadocInvalidMethod(MessageSend messageSend, MethodBinding method, int modifiers).
Thanks Olivier for the test case. Fixed. Some of new 1.5 error messages were not implemented for Javadoc... [jdt-core-internal] Changes done in ProblemReporter javadocInvalidMethod, javadocInvalidConstructor and computeSeverity methods. Also add corresponding new constants in IProblem. Test case added in JavadocTest_1_5 (not duplicated in JavadocTest_1_4 and JavadocTest_1_3 as there were no interest to get all compiler error on 1.5 code)
Verified in I20050209 + JDT Core v_536 for 3.1M5