Bug 82147 - [5.0][content assist] Content Assist infos don't work for Class#getAnnotation(Class<A>)
Summary: [5.0][content assist] Content Assist infos don't work for Class#getAnnotation...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 RC2   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-04 11:29 EST by Markus Keller CLA
Modified: 2006-05-10 10:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-01-04 11:29:52 EST
I200412210800

class X {
    void m() {
        X.class.//Ctrl+Space
    }
}

Content Assist for "<U> Class<? extends U> asSubclass(Class<U> clazz)":
- misses argument name and type argument
    (shows "asSubclass(Class arg0) Class - Class")
- does not show javadoc

Also doesn't work for isAssignableFrom(Class<?> cls) and isAnnotationPresent(..).
Comment 1 Markus Keller CLA 2005-08-22 07:00:13 EDT
In I20050818-0800, asSubclass(..) works fine, but isAnnotationPresent(..) still
fails (probably due to bug 88023).
Comment 2 Tom Hofmann CLA 2006-04-20 06:08:23 EDT
works for me in N20060418
Comment 3 Markus Keller CLA 2006-04-20 09:00:58 EDT
N20060418-0010

Added note about isAnnotationPresent(..) to bug 88023.

The Javadoc hover and the content assist info are still not shown for Class#getAnnotation(Class<A>) if Javadoc attachments are disabled.

The reason for this is probably that JavadocContentAccess.findDocInHierarchy(..) uses JavaModelUtil.findMethod(..), which fails to find AnnotatedElement#getAnnotation(Class<T>) because the type parameter has a different name in the supertype.

MethodOverrideTester should be able to find the overridden method.
Comment 4 Martin Aeschlimann CLA 2006-04-25 11:57:25 EDT
fixed > 20060425
Comment 5 Johannes Rieken CLA 2006-05-10 09:02:27 EDT
verifying
Comment 6 Johannes Rieken CLA 2006-05-10 09:38:39 EDT
verified