Javadoc view not updated property for methods and fields
From the mailing list:
In Eclipse, I use the Javadoc view a lot, it's always open under the
Outline view and is very helpful to me. In Scala, while the content
generally reflect the Javadoc (or Scaladoc) I write for my classes and
traits, it doesn't seem to work with methods and fields. Besides, if I
hover over a nested object or class, the popup help always shows the
Scaladoc of the containing parent class or object
In Eclipse, I use the Javadoc view a lot, it's always open under the
Outline view and is very helpful to me. In Scala, while the content
generally reflect the Javadoc (or Scaladoc) I write for my classes and
traits, it doesn't seem to work with methods and fields. Besides, if I
hover over a nested object or class, the popup help always shows the
Scaladoc of the containing parent class or object
Leave a comment
on 2010-12-22 03:02 *
By Iulian Dragos
This seems to work fine on wip_experiment. Can you please confirm? It may simply be a problem with positions that is solved now.
with wip_exp_backport of 20101222
I put here my notes to reproduce javadoc issue (sometimes) with the code below :
Iulian can be right, in ErrorView, I've got several :
After restart (to have console log), same result no javadoc, but **no Error**
After clean+build,same result no javadoc, but **no Error**
I put here my notes to reproduce javadoc issue (sometimes) with the code below :
- Open the javadocView (Alt+Shift+Q J)
- navigate on declaration in classD2, javadoc seems to display ok
- navigate on call on parameter z in object objectD1.m01, only the type is displayed (empty javadoc)
/**
*
*/
package idetest
/**
* Doc ClassD2
*/
class ClassD2 {
/**
* Doc method m01 of ClassD2
* @param s parameter 1
*/
def m01(s : String) = "xx" + s
/**
* Doc method m02 of ClassD2
* @param s parameter 1
*/
def m02(s : String) = m01(s) + "zzz"
/**
* Doc val v02 of ClassD2
* @param s parameter 1
*/
val v02 = "foo"
/**
* Doc nested object o01 of ClassD2
*/
object o01 extends ClassD2
/**
* Doc nested class D2D1
*/
class ClassD2D1 {
}
}
/**
* Doc objectD1
* @author david.bernard
*
*/
object objectD1 {
/**
* Doc method m01 of objectD1
* @param s parameter 1
*/
def m01(z : ClassD2) = {
println(z)
println(z.o01)
println(new z.ClassD2D1())
println(z.m02("foo"))
}
}
Iulian can be right, in ErrorView, I've got several :
Caused by: java.lang.IllegalArgumentException
at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2614)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:430)
at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:179)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2694)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1264)
at scala.tools.eclipse.contribution.weaving.jdt.core.DOMAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_core_DOMAspect$1$3b9eae81(DOMAspect.aj:145)
at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:823)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:677)
at org.eclipse.jdt.internal.ui.text.correction.ASTResolving.createQuickFixAST(ASTResolving.java:1
After restart (to have console log), same result no javadoc, but **no Error**
After clean+build,same result no javadoc, but **no Error**
on 2011-03-22 05:48 *
By Iulian Dragos
Scaladoc/javadoc does not seem to work at all.
I close this ticket then as a duplicate of #1000255.