Hello @compiler-dev <[email protected]> and @[email protected]
<[email protected]>,
Consider the following program.
/** blah. */
public class abc
{
@SuppressWarnings("unchecked")
/** Some comment. */
public void someMethod()
{
}
}
If I compile the above with javac -Xlint:all abc.java, I get the following
compiler error.
abc.java:6: warning: [dangling-doc-comments] documentation comment is not
attached to any declaration
/** Some comment. */
^
1 warning
But if I make the following change, it compiles without error.
/** blah. */
public class abc
{
/** Some comment. */
@SuppressWarnings("unchecked")
public void someMethod()
{
}
}
Is this intentional? I tried to look it up on bugs.java, but nothing showed
up on a cursory glance.
Thank you for your time, attention, and consideration.
David Alayachew