Bug 268495 - More than 10 annotations in a class breaks type hierarchy
Summary: More than 10 annotations in a class breaks type hierarchy
Status: CLOSED DUPLICATE of bug 254738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-13 04:42 EDT by Jan Zuchhold CLA
Modified: 2009-09-13 20:17 EDT (History)
2 users (show)

See Also:


Attachments
Bug Demo (1.54 KB, text/x-java)
2009-03-13 04:42 EDT, Jan Zuchhold CLA
no flags Details
Alternative bug demo, little bit smaller (679 bytes, text/plain)
2009-09-11 18:11 EDT, Martin W. Kirst CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Zuchhold CLA 2009-03-13 04:42:16 EDT
Created attachment 128674 [details]
Bug Demo

If I put more than ten annotations in a class that contains an anonymous interface implementation, this implementation does not get shown in type hierarchy.

Maybe this is related to org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter,
where there is a comment which says:

"// if more than 10 annotations, diet parse as this is faster".

I've just confirmed this with a clean install of eclipse-SDK-3.5M5-linux-gtk on Sun Java 1.6.0_12.

To reproduce this problem: See attached AnonymousImplementationWithAnnotationsTypeHierarchyBug.java and follow instructions in Javadoc.
Comment 1 Martin W. Kirst CLA 2009-09-11 18:09:50 EDT
Same problem.
Verified under Windows Vista, Eclipse 3.5, Build: 20090619-0625, Sun JDK 1.6.0_u16
Comment 2 Martin W. Kirst CLA 2009-09-11 18:11:03 EDT
Created attachment 147011 [details]
Alternative bug demo, little bit smaller
Comment 3 Martin W. Kirst CLA 2009-09-11 18:36:15 EDT
Seems to be duplicated to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=254738

After testing the current CVS head (20090911) it seems,
that this bug is already fixed.
After all, with the CVS head, the above bug demos are working perfect :-)
Comment 4 Olivier Thomann CLA 2009-09-13 20:17:12 EDT
Closing as a dup of bug 254738.

*** This bug has been marked as a duplicate of bug 254738 ***