Autoboxing exception for array->list conversion

Hi there,

Using the autoboxing intention to convert an array into a list throws an exception if java.util.Arrays is not already imported. I attached a stacktrace.

Thanks for a great plugin,
Andrei

java.lang.NoSuchMethodError: com.intellij.psi.search.GlobalSearchScope.createAllScope(Lcom/intellij/openapi/project/Project;)Lcom/intellij/p
si/search/GlobalSearchScope;
at org.intellij.autoboxing.ArrayToCollectionIntention.addImportStatement(ArrayToCollectionIntention.java:33)
at org.intellij.autoboxing.ArrayToCollectionIntention.invoke(ArrayToCollectionIntention.java:18)
at com.intellij.codeInsight.intention.b.u$8.run(u$8.java:3)
at com.intellij.openapi.application.b.b.runWriteAction(b.java:38)
at com.intellij.codeInsight.intention.b.u$11.run(u$11.java:1)
at com.intellij.openapi.command.impl.a.executeCommand(a.java:18)
at com.intellij.codeInsight.intention.b.u$0.run(u$0.java:1)
at com.intellij.openapi.application.LaterInvocator$FlushQueue.run(LaterInvocator.java:16)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.q.b(q.java:101)
at com.intellij.ide.q.a(q.java:71)
at com.intellij.ide.q.dispatchEvent(q.java:46)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
ERROR - api.application.LaterInvocator -
ERROR - api.application.LaterInvocator - IntelliJ IDEA 4.0 Build #1168
ERROR - api.application.LaterInvocator - JDK: 1.4.2_03
ERROR - api.application.LaterInvocator - VM: Java HotSpot(TM) Client VM
ERROR - api.application.LaterInvocator - Vendor: Sun Microsystems Inc.
ERROR - api.application.LaterInvocator - OS: Windows XP
ERROR - api.application.LaterInvocator - Last Action: ShowIntentionActions
ERROR - api.application.LaterInvocator -
java.lang.NoSuchMethodError: com.intellij.psi.search.GlobalSearchScope.createAllScope(Lcom/intellij/openapi/project/Project;)Lcom/intellij/p
si/search/GlobalSearchScope;
at org.intellij.autoboxing.ArrayToCollectionIntention.addImportStatement(ArrayToCollectionIntention.java:33)
at org.intellij.autoboxing.ArrayToCollectionIntention.invoke(ArrayToCollectionIntention.java:18)
at com.intellij.codeInsight.intention.b.u$8.run(u$8.java:3)
at com.intellij.openapi.application.b.b.runWriteAction(b.java:38)
at com.intellij.codeInsight.intention.b.u$11.run(u$11.java:1)
at com.intellij.openapi.command.impl.a.executeCommand(a.java:18)
at com.intellij.codeInsight.intention.b.u$0.run(u$0.java:1)
at com.intellij.openapi.application.LaterInvocator$FlushQueue.run(LaterInvocator.java:16)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.q.b(q.java:101)
at com.intellij.ide.q.a(q.java:71)
at com.intellij.ide.q.dispatchEvent(q.java:46)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

2 comments

I've fixed it. The new version is available via PluginManager.

0

Great, thanks a lot.

Andrei

k> I've fixed it. The new version is available via PluginManager.
k>

0

Please sign in to leave a comment.