Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 76846 Details for
Bug 198085
Invalid annotation cracks the annotation parsing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_198085_tests.txt (text/plain), 1.85 KB, created by
Olivier Thomann
on 2007-08-23 21:15:21 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-08-23 21:15:21 EDT
Size:
1.85 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java,v >retrieving revision 1.247.2.3 >diff -u -r1.247.2.3 ASTConverter15Test.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 13 Aug 2007 19:02:32 -0000 1.247.2.3 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 24 Aug 2007 01:16:21 -0000 >@@ -46,7 +46,7 @@ > } > > static { >-// TESTS_NUMBERS = new int[] { 277 }; >+// TESTS_NUMBERS = new int[] { 281 }; > // TESTS_RANGE = new int[] { 277, -1 }; > // TESTS_NAMES = new String[] {"test0204"}; > } >@@ -9322,4 +9322,26 @@ > > assertTrue("Doesn't overrides", methodBinding2.overrides(methodBinding1)); > } >+ >+ //https://bugs.eclipse.org/bugs/show_bug.cgi?id=198085 >+ public void test0281() throws JavaModelException { >+ this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); >+ String contents = >+ "@Invalid\n" + >+ "@Deprecated\n" + >+ "public class X {}"; >+ ASTNode node = buildAST( >+ contents, >+ this.workingCopy, >+ false); >+ assertEquals("Not a compilation unit", ASTNode.COMPILATION_UNIT, node.getNodeType()); >+ CompilationUnit unit = (CompilationUnit) node; >+ assertProblemsSize(unit, 1, "Invalid cannot be resolved to a type"); >+ node = getASTNode(unit, 0); >+ assertEquals("Not a type declaration", ASTNode.TYPE_DECLARATION, node.getNodeType()); >+ TypeDeclaration typeDeclaration = (TypeDeclaration) node; >+ ITypeBinding typeBinding = typeDeclaration.resolveBinding(); >+ IAnnotationBinding[] annotations = typeBinding.getAnnotations(); >+ assertEquals("wrong size", 1, annotations.length); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198085
:
74785
|
76668
|
76845
| 76846