Community
Participate
Working Groups
build 20040210 1) create the follong test case public class Y { /** * @see * String @deprecated */ void foo() { } } public class Z { void bar() { Y y = new Y(); y.foo(); } } foo() is marked as a deprecated, but @deprecated must be at the beginning of a line. The behavior is the same with public class Y { /** * @see String * String @deprecated */ void foo() { } } But the error does not occur with public class Y { /** * @see String String * String @deprecated */ void foo() { } } see bug 50644.
Fixed. Now compiler does not complain for deprecation in this peculiar case. First token of next line was uncorrectly consumed after the @see declaration and scanner was incorrectly restarting at @deprecated. [jdt-core-dev internal] Change made in AbstractCommentParser and DocCommentParser. Test case added in jdt.core.tests.compiler.regression.JavadocTestMixed
Verified in 200402121200.