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 31758 Details for
Bug 120902
Member.getJavadocRange() causes AIOOBE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_120902_tests.txt (text/plain), 1.40 KB, created by
Olivier Thomann
on 2005-12-14 12:20:10 EST
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-12-14 12:20:10 EST
Size:
1.40 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/CompilationUnitTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/CompilationUnitTests.java,v >retrieving revision 1.38 >diff -u -r1.38 CompilationUnitTests.java >--- src/org/eclipse/jdt/core/tests/model/CompilationUnitTests.java 24 Nov 2005 12:14:42 -0000 1.38 >+++ src/org/eclipse/jdt/core/tests/model/CompilationUnitTests.java 14 Dec 2005 17:20:43 -0000 >@@ -1153,4 +1153,28 @@ > deleteFile("/P/src/X.java"); > } > } >+public void test120902() throws CoreException { >+ try { >+ String source = >+ "/**\r\n" + >+ " * Toy\r\n" + >+ " */\r\n" + >+ "public class X {\r\n" + >+ "}"; >+ createFile("/P/src/X.java", source); >+ final ICompilationUnit compilationUnit = getCompilationUnit("/P/src/X.java"); >+ IType type = compilationUnit.getType("X"); >+ ISourceRange javadocRange = type.getJavadocRange(); >+ assertNotNull("No source range", javadocRange); >+ compilationUnit.getBuffer().setContents(""); >+ try { >+ javadocRange = type.getJavadocRange(); >+ assertNull("Got a source range", javadocRange); >+ } catch (ArrayIndexOutOfBoundsException e) { >+ assertFalse("Should not happen", true); >+ } >+ } finally { >+ deleteFile("/P/src/X.java"); >+ } >+} > }
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 120902
:
31757
| 31758