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 31757 Details for
Bug 120902
Member.getJavadocRange() causes AIOOBE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_120902.txt (text/plain), 1.16 KB, created by
Olivier Thomann
on 2005-12-14 12:11:31 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-12-14 12:11:31 EST
Size:
1.16 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/Member.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Member.java,v >retrieving revision 1.41 >diff -u -r1.41 Member.java >--- model/org/eclipse/jdt/internal/core/Member.java 20 Oct 2005 22:31:23 -0000 1.41 >+++ model/org/eclipse/jdt/internal/core/Member.java 14 Dec 2005 17:12:18 -0000 >@@ -253,7 +253,16 @@ > public ISourceRange getJavadocRange() throws JavaModelException { > ISourceRange range= this.getSourceRange(); > if (range == null) return null; >- IBuffer buf= this.isBinary() ? this.getClassFile().getBuffer() : this.getCompilationUnit().getBuffer(); >+ IBuffer buf= null; >+ if (this.isBinary()) { >+ buf = this.getClassFile().getBuffer(); >+ } else { >+ ICompilationUnit compilationUnit = this.getCompilationUnit(); >+ if (!compilationUnit.isConsistent()) { >+ return null; >+ } >+ buf = compilationUnit.getBuffer(); >+ } > final int start= range.getOffset(); > final int length= range.getLength(); > if (length > 0 && buf.getChar(start) == '/') {
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