Adding Javadoc via PSI erros

Hmmm, PSI is throwing up the following:

com.intellij.util.IncorrectOperationException: Incorrect comment "/**

  • @sometag FOO

*/
".
at com.intellij.psi.impl.r.createCommentFromText(r.java:35)

I'm using the following code:

String comment = "/**\n * @sometag FOO\n */\n";
PsiComment element = elementFactory.createCommentFromText(comment, null);

Any idea why I'd be getting an Incorrect comment?

1 comment
Comment actions Permalink

On Sun, 25 Jan 2004 14:11:38 +1300, Mark Derricutt wrote:

String comment = "/**\n * @sometag FOO\n */\n"; PsiComment element =


Right, removing the \n's solved that. Now I'm just getting generic
Throwables coming at me with no error message :(

0

Please sign in to leave a comment.