Generify refactoring causing exceptions (and failing)

(I tried to report the expeection from IDEA but it does not seem to work at present)

Here is the exception i get

Assertion failed
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:96)
at com.intellij.refactoring.BaseRefactoringProcessor.doRun(BaseRefactoringProcessor.java:0)
at com.intellij.refactoring.BaseRefactoringProcessor.run(BaseRefactoringProcessor.java:135)
at com.intellij.refactoring.ui.RefactoringDialog.invokeRefactoring(RefactoringDialog.java:2)
at com.intellij.refactoring.typeCook.TypeCookDialog.doAction(TypeCookDialog.java:78)
at com.intellij.refactoring.ui.RefactoringDialog.doPreviewAction(RefactoringDialog.java:23)
at com.intellij.refactoring.ui.RefactoringDialog$PreviewAction.actionPerformed(RefactoringDialog.java:4)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:152)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:39)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:21)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:517)
at java.awt.Dialog$2.run(Dialog.java:545)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:543)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:28)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:3)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:745)
at com.intellij.refactoring.typeCook.TypeCookHandler.invoke(TypeCookHandler.java:1)
at com.intellij.refactoring.typeCook.TypeCookHandler.invoke(TypeCookHandler.java:5)
at com.intellij.codeInsight.daemon.impl.quickfix.GenerifyFileFix.invoke(GenerifyFileFix.java:7)
at com.intellij.codeInsight.intention.impl.IntentionHintComponent$5$1$1.run(IntentionHintComponent.java:1)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:2)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:126)
at com.intellij.codeInsight.intention.impl.IntentionHintComponent$5$1.run(IntentionHintComponent.java:8)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:7)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:152)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:154)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:21)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

3 comments
Comment actions Permalink

forgot to mention, this is using 5646

0
Comment actions Permalink

Hello Thibaut,

T> (I tried to report the expeection from IDEA but it does not seem to
T> work at present)
T>
T> Here is the exception i get
T>
T> Assertion failed
T> java.lang.Throwable
T> at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
T> at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:96)
T> at
T> com.intellij.refactoring.BaseRefactoringProcessor.doRun(BaseRefactori
T> ngProcessor.java:0)

Please post this to JIRA.

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.