#624 ejbCreate ejbPostCreate matching
一人关注
It seems that now IDEA is not able to find the matching between ejbCreate
and ejbPostCreate methods. It complains on both of them.
When I use the intension on the ejbCreate method with some parameters, the
ejbPostCreate method without any parameter gets created. When I tried to
remove this method I got the following exception which put IDEA to the
infinite loop:
ERROR - com.intellij.ide.q - OS: Windows XP
ERROR - com.intellij.ide.q -
java.lang.IndexOutOfBoundsException: Wrong offset: 6519
at com.intellij.editor.f.a.f.a(f.java:51)
at com.intellij.editor.g.bs.a(bs.java:73)
at com.intellij.editor.g.o.a(o.java:75)
at com.intellij.editor.g.k.k(k.java:32)
at com.intellij.editor.g.ce.paintComponent(ce.java:4)
at javax.swing.JComponent.paint(JComponent.java:804)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at com.intellij.openapi.a.b.br.paint(br.java:62)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:552)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at javax.swing.JComponent.paint(JComponent.java:813)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:552)
at javax.swing.JComponent.paintChildren(JComponent.java:643)
at
javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4742)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688)
at javax.swing.JComponent.paint(JComponent.java:794)
at
java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:
60)
at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97
)
at java.awt.Container.paint(Container.java:1268)
at sun.awt.RepaintArea.paint(RepaintArea.java:180)
at
sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
at java.awt.Component.dispatchEventImpl(Component.java:3586)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Window.dispatchEventImpl(Window.java:1581)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at com.intellij.ide.q.a(q.java:9)
at com.intellij.ide.q.dispatchEvent(q.java:18)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:191)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:144)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
ERROR - com.intellij.ide.q - Error during dispatching
of
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Syste
mEve
ntQueueUtilities$ComponentWorkRequest@47f419,notifier=null,catchExceptions=f
alse
,when=1026501963082] on sun.awt.windows.WToolkit@ea9c1e
ERROR - com.intellij.ide.q - IntelliJ IDEA (Ariadna)
3.0
Build #635
ERROR - com.intellij.ide.q - JDK: 1.4.0_01
ERROR - com.intellij.ide.q - VM: Java HotSpot(TM)
Client
VM
ERROR - com.intellij.ide.q - Vendor: Sun Microsystems
Inc
..
ERROR - com.intellij.ide.q - OS: Windows XP
ERROR - com.intellij.ide.q -
java.lang.IndexOutOfBoundsException: Wrong offset: 6519
at com.intellij.editor.f.a.f.a(f.java:51)
at com.intellij.editor.g.bs.a(bs.java:73)
at com.intellij.editor.g.o.a(o.java:75)
at com.intellij.editor.g.k.k(k.java:32)
at com.intellij.editor.g.ce.paintComponent(ce.java:4)
at javax.swing.JComponent.paint(JComponent.java:804)
at
javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4735)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688)
at javax.swing.JComponent._paintImmediately(JComponent.java:4632)
at javax.swing.JComponent.paintImmediately(JComponent.java:4464)
at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:404)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System
EventQueueUtilities.java:117)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
at com.intellij.ide.q.a(q.java:9)
at com.intellij.ide.q.dispatchEvent(q.java:18)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:191)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:144)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
/kesh
请先登录再写评论。
I have the same thing (#635).
I have in the bean "Long ejbCreateFoo(String s)" and "void ejbPostCreateFoo(String s)".
IDEA shows them as errors ("There should be method 'ejbPostCreateFoo' in addition to 'ejbCreateFoo'"
and "There should be method 'ejbCreateFoo' in addition to 'ejbPostCreateFoo'").
And if you follow the intention actions it will create methods without parameters.
"kesh" <kesha@cosite.com> wrote in message news:agnapl$j04$1@is.intellij.net...
>
Hello,
Will be fixed in #636, thanks
--
regards,
Alexey Kudravtsev.
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"
"kesh" <kesha@cosite.com> wrote in message
news:agnapl$j04$1@is.intellij.net...
>
>
>
javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688)
>
>
>
dispatching
>
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Syste
>
ntQueueUtilities$ComponentWorkRequest@47f419,notifier=null,catchExceptions=f
(Ariadna)
Microsystems
>
javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688)
>
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
>
>
>
>
>