Community
Participate
Working Groups
Hello, I tried to create a Java project from existing source but that fails because of: !ENTRY org.eclipse.ui 4 4 2005-07-29 17:53:12.656 !MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 2005-07-29 17:53:12.656 !MESSAGE Failed to execute runnable (java.lang.ArrayIndexOutOfBoundsException: 0) !STACK 0 org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ArrayIndexOutOfBoundsException: 0) [...] Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 [...] !ENTRY org.eclipse.ui 4 4 2005-07-29 17:53:18.234 !MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 2005-07-29 17:53:18.250 !MESSAGE 0 !STACK 0 java.lang.ArrayIndexOutOfBoundsException: 0 [...] I will create an attachment with comple log message. Regards, Martin
Created attachment 25468 [details] Log file mentioned in comment 1. The complete trace taken from {workspace}\.metadata\.log
That's because of the follwing entry in the .classpath file: <classpathentry excluding="" including="plugin.jelly|plugin.properties|project.properties|project.xml|" kind="src" path="."> </classpathentry> If I remove that entry, I can open the project. I think the last '|' is the problem. If I remove only that character, the error does not occur. The .classpath file is generated by "maven eclipse" (http://maven.apache.org/reference/plugins/eclipse/). With Eclipse 3.0.x that was not a problem.
I created an issue in project maven-eclipse-plugin: http://jira.codehaus.org/browse/MPECLIPSE-96 But Eclipse 3.0.1 ignored that pipe character, so perhaps Eclipse 3.1 should ignore it, too: .classpath files working with earlier versions of Eclipse should work because of backward compatibility, shouldn't?
Changed ClasspathEntry#decodePatterns(...) to ignore empty patterns. Added regression test ClasspathTests#testEmptyInclusionPattern*()
Verified in I20050920-0010 for 3.2M2