Bug 24403 - ArrayOutOfBoundsException in JavaCore.create(IFile)
Summary: ArrayOutOfBoundsException in JavaCore.create(IFile)
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-04 13:07 EDT by Unknown User CLA
Modified: 2005-01-18 16:44 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown User CLA 2002-10-04 13:07:09 EDT
The code:

else if(resource instanceof IFile){
    IFile file= (IFile)resource;
    IJavaElement element= JavaCore.create(file);

The filename is .classpath

This should return null but instead an ArrayOutOfBoundsExceptionIsThrown.

I tracked the exception to:
class: org.eclipse.jdt.internal.compiler.parser.Scanner
method: getNextToken()
line: if (((currentCharacter = source[currentPosition++]) == '\\')

>20020924. JRT.
Comment 1 Olivier Thomann CLA 2002-10-04 14:44:20 EDT
Would you have the complete stack trace?
Comment 2 Unknown User CLA 2002-10-07 05:36:07 EDT
Hmmmm. I cleaned up my workspace a bit and since have been unable to reproduce 
the error. Since you catch all OutOfBoundsExceptions I must have toyed with 
something I shouldn't have. Works now at any rate. Am invalidating PR.
JRT.