Bug 268495

Summary: More than 10 annotations in a class breaks type hierarchy
Product: [Eclipse Project] JDT Reporter: Jan Zuchhold <Jan>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: nitram509, Olivier_Thomann
Version: 3.5   
Target Milestone: 3.6 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Bug Demo
none
Alternative bug demo, little bit smaller none

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 ***