Community
Participate
Working Groups
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.
Would you have the complete stack trace?
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.