Open declaration (F3) on annotation fails
If I select a java annotation in a scala file and select "Open declaration" the IDE fails to present the source file where the annotation is defined. If I do the same on a java class it works, annotation just seem to not to:
Reproduce (try to select one of the uses of @Descriptor in the example, then right click and select "Open declaration" - make sure sources for the felix gogo runtime is present):
import org.osgi.framework.BundleContext
import org.osgi.framework.Bundle
import org.osgi.framework.BundleContext
import org.osgi.framework.BundleException
import org.apache.felix.service.command.Descriptor
class HelloCommand (val context:BundleContext)
{
@Descriptor("test method one")
def test(@Descriptor("first argument") arg1: String, @Descriptor("second argument") arg2: String) {
System.out.println("testing test");
}
@Descriptor("test method two")
def trial() {
System.out.println("testing trail");
}
}
Reproduce (try to select one of the uses of @Descriptor in the example, then right click and select "Open declaration" - make sure sources for the felix gogo runtime is present):
import org.osgi.framework.BundleContext
import org.osgi.framework.Bundle
import org.osgi.framework.BundleContext
import org.osgi.framework.BundleException
import org.apache.felix.service.command.Descriptor
class HelloCommand (val context:BundleContext)
{
@Descriptor("test method one")
def test(@Descriptor("first argument") arg1: String, @Descriptor("second argument") arg2: String) {
System.out.println("testing test");
}
@Descriptor("test method two")
def trial() {
System.out.println("testing trail");
}
}
Leave a comment