New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.AssertionError scaladoc'ing class with a Java annotation #5684
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5684?orig=1
|
@VladUreche said: public @interface MyAnnotation { String value(); } with javac? |
James Koch (jameskoch) said: import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.FIELD})
public @interface MyAnnotation { String value(); } |
@VladUreche said: Can you please also show me the output of {{scaladoc -version}}? I tried reproducing the bug on 2.10 trunk and 2.9.2 and the assertion failure doesn't kick in. Also can you check the classpath is the same as when you're compiling with scalac? |
@VladUreche said: |
James Koch (jameskoch) said: These were produced using Scala 2.9.2 on OSX w/ the command line: If I compile the Java first and pull it in through the classpath, then scaladoc completes without error. So perhaps this is just user error on my part? |
@VladUreche said: |
@VladUreche said: For the time being, can you compile the java class and put in the classpath? |
@VladUreche said: |
@vigdorchik said: |
Given a Java annotation:
@retention(RetentionPolicy.RUNTIME)
@target({ElementType.PARAMETER, ElementType.FIELD})
public @interface MyAnnotation {
String value();
}
And a Scala class:
class MyClass(@(MyAnnotation@getter)("foo") var bar: String)
Scaladoc fails w/ java.lang.AssertionError. Last scaladoc-related frame of the stack is ModelFactory$$anon$15.(ModelFactory.scala:461)
The text was updated successfully, but these errors were encountered: