Intention Power Pack Exception

I suppose that the expection occurs when a method doesn't exist yet.
Example:

public class Bla {
public void method() {
this.getA().equals("");
}
}

Error message: Assertion failed
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:60)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:68)
at
com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionUtil.java:423)
at com.intellij.psi.PsiType.isAssignableFrom(PsiType.java:30)
at
com.siyeh.ipp.commutative.CommutativeMethodCallPredicate.satisfiedBy(CommutativeMethodCallPredicate.java:70)
at com.siyeh.ipp.Intention.findMatchingElement(Intention.java:125)
at
com.siyeh.ipp.MutablyNamedIntention.isAvailable(MutablyNamedIntention.java:26)
at com.intellij.codeInsight.d.a.m.d(m.java:100)
at com.intellij.codeInsight.d.a.m.c(m.java:153)
at com.intellij.codeInsight.d.a.e$3.run(e$3.java:3)
at com.intellij.openapi.l.a.d$b_.run(d$b_.java:5)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.r.b(r.java:43)
at com.intellij.ide.r.a(r.java:30)
at com.intellij.ide.r.dispatchEvent(r.java:99)
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)

Many thx, DAni
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

2 comments
Comment actions Permalink

DAni wrote:

I suppose that the expection occurs when a method doesn't exist yet.
Example:

public class Bla {
public void method() {
this.getA().equals("");
}
}


Fixed in 2014

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink


Very cool.

--Dave Griffith

0

Please sign in to leave a comment.