Request reopening of SCR #6798

http://www.intellij.net/tracker/idea/viewSCR?publicId=6798

There is still a crash in case of if-statements that have
an empty body AND are located directly at the end
of a method:

class Test {
void a() {
if (true) {
}
}
}


Regards,
Sascha


Stack trace in #672:

ERROR - mand.impl.CommandProcessorImpl -
ERROR - mand.impl.CommandProcessorImpl - IntelliJ IDEA 3.0 Build #672
ERROR - mand.impl.CommandProcessorImpl - JDK: 1.4.1_01
ERROR - mand.impl.CommandProcessorImpl - VM: Java HotSpot(TM) Client VM
ERROR - mand.impl.CommandProcessorImpl - Vendor: Sun Microsystems Inc.
ERROR - mand.impl.CommandProcessorImpl - OS: Windows XP
ERROR - mand.impl.CommandProcessorImpl - Last Action: ShowIntentionActions
ERROR - mand.impl.CommandProcessorImpl - Current Command: Invert If Condition
ERROR - mand.impl.CommandProcessorImpl -
java.lang.ArrayIndexOutOfBoundsException: 0
at com.intellij.codeInsight.b.u.a(u.java:103)
at com.intellij.codeInsight.b.u.a(u.java:113)
at com.intellij.codeInsight.b.u.a(u.java:45)
at com.intellij.codeInsight.b.ci.run(ci.java:2)
at com.intellij.openapi.application.b.e.runWriteAction(e.java:229)
at com.intellij.codeInsight.b.ch.run(ch.java:2)
at com.intellij.openapi.command.a.b.executeCommand(b.java:12)
at com.intellij.codeInsight.b.cq.run(cq.java:2)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at com.intellij.ide.q.a(q.java:114)
at com.intellij.ide.q.dispatchEvent(q.java:76)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)


17 comments
Comment actions Permalink

Either post a dev report, or add a comment to the existing one, which I believe will
get noticed by the developers.


Sascha Weinreuter wrote:

http://www.intellij.net/tracker/idea/viewSCR?publicId=6798

There is still a crash in case of if-statements that have
an empty body AND are located directly at the end
of a method:

class Test {
void a() {
if (true) {
}
}
}


Regards,
Sascha


Stack trace in #672:

ERROR - mand.impl.CommandProcessorImpl -
ERROR - mand.impl.CommandProcessorImpl - IntelliJ IDEA 3.0 Build #672
ERROR - mand.impl.CommandProcessorImpl - JDK: 1.4.1_01
ERROR - mand.impl.CommandProcessorImpl - VM: Java HotSpot(TM) Client VM
ERROR - mand.impl.CommandProcessorImpl - Vendor: Sun Microsystems Inc.
ERROR - mand.impl.CommandProcessorImpl - OS: Windows XP
ERROR - mand.impl.CommandProcessorImpl - Last Action: ShowIntentionActions
ERROR - mand.impl.CommandProcessorImpl - Current Command: Invert If Condition
ERROR - mand.impl.CommandProcessorImpl -
java.lang.ArrayIndexOutOfBoundsException: 0
at com.intellij.codeInsight.b.u.a(u.java:103)
at com.intellij.codeInsight.b.u.a(u.java:113)
at com.intellij.codeInsight.b.u.a(u.java:45)
at com.intellij.codeInsight.b.ci.run(ci.java:2)
at com.intellij.openapi.application.b.e.runWriteAction(e.java:229)
at com.intellij.codeInsight.b.ch.run(ch.java:2)
at com.intellij.openapi.command.a.b.executeCommand(b.java:12)
at com.intellij.codeInsight.b.cq.run(cq.java:2)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at com.intellij.ide.q.a(q.java:114)
at com.intellij.ide.q.dispatchEvent(q.java:76)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)



--

Erb

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

0
Comment actions Permalink

Unfortunately it's not always true: http://www.intellij.net/tracker/idea/viewSCR?publicId=2709
Lots of posts and no reaction at all.

BTW, still reproducible 100% and not fixed in #672.


"Erb" <dont@evenbother.com> wrote in message news:aqbfe9$tdk$1@is.intellij.net...

Either post a dev report, or add a comment to the existing one, which I believe will
get noticed by the developers.

>
>

Sascha Weinreuter wrote:

http://www.intellij.net/tracker/idea/viewSCR?publicId=6798

>

There is still a crash in case of if-statements that have
an empty body AND are located directly at the end
of a method:

>

class Test {
void a() {
if (true) {
}
}
}

>
>

Regards,
Sascha

>
>

Stack trace in #672:

>

ERROR - mand.impl.CommandProcessorImpl -
ERROR - mand.impl.CommandProcessorImpl - IntelliJ IDEA 3.0 Build #672
ERROR - mand.impl.CommandProcessorImpl - JDK: 1.4.1_01
ERROR - mand.impl.CommandProcessorImpl - VM: Java HotSpot(TM) Client VM
ERROR - mand.impl.CommandProcessorImpl - Vendor: Sun Microsystems Inc.
ERROR - mand.impl.CommandProcessorImpl - OS: Windows XP
ERROR - mand.impl.CommandProcessorImpl - Last Action: ShowIntentionActions
ERROR - mand.impl.CommandProcessorImpl - Current Command: Invert If Condition
ERROR - mand.impl.CommandProcessorImpl -
java.lang.ArrayIndexOutOfBoundsException: 0
at com.intellij.codeInsight.b.u.a(u.java:103)
at com.intellij.codeInsight.b.u.a(u.java:113)
at com.intellij.codeInsight.b.u.a(u.java:45)
at com.intellij.codeInsight.b.ci.run(ci.java:2)
at com.intellij.openapi.application.b.e.runWriteAction(e.java:229)
at com.intellij.codeInsight.b.ch.run(ch.java:2)
at com.intellij.openapi.command.a.b.executeCommand(b.java:12)
at com.intellij.codeInsight.b.cq.run(cq.java:2)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at com.intellij.ide.q.a(q.java:114)
at com.intellij.ide.q.dispatchEvent(q.java:76)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

>
>

>
>

--

>

Erb

>

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

>


0
Comment actions Permalink

Yeah, I already added a comment to the existing request
but I suspect such comments often don't reach a developer.
Posting this into the newsgroup in such a case is suggested here:
http://www.intellij.net/forums/thread.jsp?forum=14&thread=12894&tstart=60&trange=15

And I hesitated to post a second request about this in the
tracker because I personally think that doing so would
generate unnecessary traffic.

However, if it is the preferred procedure to simply submit
new requests, an official statement from IntelliJ staff could
clarify this for possible future cases.

Regards,
Sascha


"Erb" <dont@evenbother.com> schrieb im Newsbeitrag news:aqbfe9$tdk$1@is.intellij.net...

Either post a dev report, or add a comment to the existing one, which I believe will
get noticed by the developers.

>
>

Sascha Weinreuter wrote:

http://www.intellij.net/tracker/idea/viewSCR?publicId=6798

>

There is still a crash in case of if-statements that have
an empty body AND are located directly at the end
of a method:

>

class Test {
void a() {
if (true) {
}
}
}

>
>

Regards,
Sascha

>
>

Stack trace in #672:

>

ERROR - mand.impl.CommandProcessorImpl -
ERROR - mand.impl.CommandProcessorImpl - IntelliJ IDEA 3.0 Build #672
ERROR - mand.impl.CommandProcessorImpl - JDK: 1.4.1_01
ERROR - mand.impl.CommandProcessorImpl - VM: Java HotSpot(TM) Client VM
ERROR - mand.impl.CommandProcessorImpl - Vendor: Sun Microsystems Inc.
ERROR - mand.impl.CommandProcessorImpl - OS: Windows XP
ERROR - mand.impl.CommandProcessorImpl - Last Action: ShowIntentionActions
ERROR - mand.impl.CommandProcessorImpl - Current Command: Invert If Condition
ERROR - mand.impl.CommandProcessorImpl -
java.lang.ArrayIndexOutOfBoundsException: 0
at com.intellij.codeInsight.b.u.a(u.java:103)
at com.intellij.codeInsight.b.u.a(u.java:113)
at com.intellij.codeInsight.b.u.a(u.java:45)
at com.intellij.codeInsight.b.ci.run(ci.java:2)
at com.intellij.openapi.application.b.e.runWriteAction(e.java:229)
at com.intellij.codeInsight.b.ch.run(ch.java:2)
at com.intellij.openapi.command.a.b.executeCommand(b.java:12)
at com.intellij.codeInsight.b.cq.run(cq.java:2)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at com.intellij.ide.q.a(q.java:114)
at com.intellij.ide.q.dispatchEvent(q.java:76)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

>
>

>
>

--

>

Erb

>

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

>


0
Comment actions Permalink

Timur,

Unfortunately your 100% is not our 100%. I still don't see the specified
behaviour on my computer.

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0
Comment actions Permalink

Mike,

Interesting. It's 100% reproducible here for me after a clean install on Win2k SP3
with all defaults, default templates and provided JRE.
I wonder what could be a factor here.


Timur


"Mike Aizatsky" <mike@intellij.com> wrote in message news:aqbi59$3qf$1@is.intellij.net...

Timur,

>

Unfortunately your 100% is not our 100%. I still don't see the specified
behaviour on my computer.

>

--
Best regards,
Mike Aizatsky.
------------------------------
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>


0
Comment actions Permalink

Possible difference in target (project) JDK version?

Timur Zambalayev wrote:

Mike,

Interesting. It's 100% reproducible here for me after a clean install on Win2k SP3
with all defaults, default templates and provided JRE.
I wonder what could be a factor here.


Timur


"Mike Aizatsky" <mike@intellij.com> wrote in message news:aqbi59$3qf$1@is.intellij.net...

>>Timur,
>>
>>Unfortunately your 100% is not our 100%. I still don't see the specified
>>behaviour on my computer.
>>
>>--
>>Best regards,
>>Mike Aizatsky.
>>----


>>JetBrains, Inc / IntelliJ Software
>>http://www.intellij.com
>>"Develop with pleasure!"
>>
>>




--

Erb

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

0
Comment actions Permalink

I don't think so (btw, I use 1.4.1_01 as target) but then who knows.


"Erb" <dont@evenbother.com> wrote in message news:aqbkm5$8gq$1@is.intellij.net...

Possible difference in target (project) JDK version?

>

Timur Zambalayev wrote:

Mike,

>

Interesting. It's 100% reproducible here for me after a clean install on Win2k SP3
with all defaults, default templates and provided JRE.
I wonder what could be a factor here.

>
>

Timur

>
>

"Mike Aizatsky" <mike@intellij.com> wrote in message news:aqbi59$3qf$1@is.intellij.net...

>
>>Timur,
>>
>>Unfortunately your 100% is not our 100%. I still don't see the specified
>>behaviour on my computer.
>>
>>--
>>Best regards,
>>Mike Aizatsky.
>>------------------------------
>>JetBrains, Inc / IntelliJ Software
>>http://www.intellij.com
>>"Develop with pleasure!"
>>
>>
>
>
>

>
>

--

>

Erb

>

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

>


0
Comment actions Permalink

It may not be easy to track down some issues, but
I don't think it is that simple to say: "I can't
reproduce it, it is not there".

I reported a few bugs, I can still see them 670,
but they are just ignored by IntelliJ.


Mike Aizatsky wrote:

Timur,

Unfortunately your 100% is not our 100%. I still don't see the specified
behaviour on my computer.

--
Best regards,
Mike Aizatsky.
------------------------------
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0
Comment actions Permalink

Marius,
exactly which SCRs from you are ignored by us?

Yours,
Dmitry

Marius Scurtescu wrote:

It may not be easy to track down some issues, but
I don't think it is that simple to say: "I can't
reproduce it, it is not there".

I reported a few bugs, I can still see them 670,
but they are just ignored by IntelliJ.


Mike Aizatsky wrote:

>> Timur,
>>
>> Unfortunately your 100% is not our 100%. I still don't see the specified
>> behaviour on my computer.
>>
>> --
>> Best regards,
>> Mike Aizatsky.
>> -


>> JetBrains, Inc / IntelliJ Software
>> http://www.intellij.com
>> "Develop with pleasure!"
>>
>>

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

0
Comment actions Permalink

5771 CVS diff is corrupting the file in the repository
3513 private empty constructor is marked as unused code
5199 debugger steps into ClassLoader

I am not sure if 5199 is still in 670.

Dmitry Lomov wrote:

Marius,
exactly which SCRs from you are ignored by us?

Yours,
Dmitry

Marius Scurtescu wrote:

>>It may not be easy to track down some issues, but
>>I don't think it is that simple to say: "I can't
>>reproduce it, it is not there".
>>
>>I reported a few bugs, I can still see them 670,
>>but they are just ignored by IntelliJ.
>>
>>
>>Mike Aizatsky wrote:
>>
>>>Timur,
>>>
>>>Unfortunately your 100% is not our 100%. I still don't see the specified
>>>behaviour on my computer.
>>>
>>>--
>>>Best regards,
>>>Mike Aizatsky.
>>>----


>>>JetBrains, Inc / IntelliJ Software
>>>http://www.intellij.com
>>>"Develop with pleasure!"
>>>
>>>
>>


0
Comment actions Permalink

Seems to be finally fixed in build #673. Thanks.

http://www.intellij.net/tracker/idea/viewSCR?publicId=6798

>

There is still a crash in case of if-statements that have
an empty body AND are located directly at the end
of a method:

>

class Test {
void a() {
if (true) {
}
}
}

>
>

Regards,
Sascha

>
>

Stack trace in #672:

>

ERROR - mand.impl.CommandProcessorImpl -
ERROR - mand.impl.CommandProcessorImpl - IntelliJ IDEA 3.0

Build #672

ERROR - mand.impl.CommandProcessorImpl - JDK: 1.4.1_01
ERROR - mand.impl.CommandProcessorImpl - VM: Java HotSpot(TM)

Client VM

ERROR - mand.impl.CommandProcessorImpl - Vendor: Sun

Microsystems Inc.

ERROR - mand.impl.CommandProcessorImpl - OS: Windows XP
ERROR - mand.impl.CommandProcessorImpl - Last Action:

ShowIntentionActions

ERROR - mand.impl.CommandProcessorImpl - Current Command:

Invert If Condition

ERROR - mand.impl.CommandProcessorImpl -
java.lang.ArrayIndexOutOfBoundsException: 0
at com.intellij.codeInsight.b.u.a(u.java:103)
at com.intellij.codeInsight.b.u.a(u.java:113)
at com.intellij.codeInsight.b.u.a(u.java:45)
at com.intellij.codeInsight.b.ci.run(ci.java:2)
at com.intellij.openapi.application.b.e.runWriteAction(e.java:229)
at com.intellij.codeInsight.b.ch.run(ch.java:2)
at com.intellij.openapi.command.a.b.executeCommand(b.java:12)
at com.intellij.codeInsight.b.cq.run(cq.java:2)
at

java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at com.intellij.ide.q.a(q.java:114)
at com.intellij.ide.q.dispatchEvent(q.java:76)
at

java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:197)

at

java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:150)

at

java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)

at

java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

>
>


0
Comment actions Permalink

Marius Scurtescu wrote:

3513 private empty constructor is marked as unused code


As mentioned by Carlos Costa e Silva in that bug's discussion, the Java
compiler generates an empty public noargs constructor ONLY when no
constructors have been defined for that class. Thus, if you have other
constructors then a private no-args constructor is totally unecessary.

Ciao,
Gordon

--
Gordon Tyler
Software Developer, R&D
Sitraka -- Performance is Mission Critical

0
Comment actions Permalink

You are right, I missed Carlos' reply (and obviously
not read properly his first post).

The issue should be closed then.

Thanks,
Marius

Gordon Tyler wrote:

Marius Scurtescu wrote:

>> 3513 private empty constructor is marked as unused code


As mentioned by Carlos Costa e Silva in that bug's discussion, the Java
compiler generates an empty public noargs constructor ONLY when no
constructors have been defined for that class. Thus, if you have other
constructors then a private no-args constructor is totally unecessary.

Ciao,
Gordon


0
Comment actions Permalink

Timur Zambalayev wrote:

Interesting. It's 100% reproducible here for me after a clean install
on Win2k SP3 with all defaults, default templates and provided JRE.
I wonder what could be a factor here.


I see this too. Also on Win2k.

Bas


0
Comment actions Permalink

Hi Marius,

Concerning SCR 5199 (
http://www.intellij.net/tracker/idea/viewSCR?publicId=5199 ):
It is really not repeatable here. And we did try to reproduce it.
Since you did not respond on my last question I concluded that everything is
working fine for you and the behaviour is not repeatable in the latest
builds.That's why the request is closed.
BTW, is the behaviour reproducible for someone else?

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"

"Marius Scurtescu" <mscurtescu@healthmetrx.com> wrote in message
news:aqbre5$jsq$1@is.intellij.net...

5771 CVS diff is corrupting the file in the repository
3513 private empty constructor is marked as unused code
5199 debugger steps into ClassLoader

>

I am not sure if 5199 is still in 670.

>

Dmitry Lomov wrote:

Marius,
exactly which SCRs from you are ignored by us?

>

Yours,
Dmitry

>

Marius Scurtescu wrote:

>
>
>>It may not be easy to track down some issues, but
>>I don't think it is that simple to say: "I can't
>>reproduce it, it is not there".
>>
>>I reported a few bugs, I can still see them 670,
>>but they are just ignored by IntelliJ.
>>
>>
>>Mike Aizatsky wrote:
>>
>>>Timur,
>>>
>>>Unfortunately your 100% is not our 100%. I still don't see the

specified

>>>behaviour on my computer.
>>>
>>>--
>>>Best regards,
>>>Mike Aizatsky.
>>>------------------------------
>>>JetBrains, Inc / IntelliJ Software
>>>http://www.intellij.com
>>>"Develop with pleasure!"
>>>
>>>
>>
>

>


0
Comment actions Permalink

Mike,

Can you please post a screenshot after a clean install of #673
( http://www.intellij.net/eap/products/idea/download.jsp ; I mean not an internal version/build)
on a Win2k (or XP if it's too difficult) computer for the same code snippet
( http://www.intellij.net/tracker/idea/viewSCR?publicId=2709 ).

I'm just curious what exactly you see.


Timur Zambalayev


"Mike Aizatsky" <mike@intellij.com> wrote in message news:aqbi59$3qf$1@is.intellij.net...

Timur,

>

Unfortunately your 100% is not our 100%. I still don't see the specified
behaviour on my computer.

>

--
Best regards,
Mike Aizatsky.
------------------------------
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>


0
Comment actions Permalink

Hi Marius,

Concerning SCR 5199 (http://www.intellij.net/tracker/idea/viewSCR?publicId=199 ):
It is really not repeatable here. And we did try to reproduce it.

BTW, is the behaviour reproducible for someone else?


Yes, I am having the same behavior occasionally, under the same circumstances (debugging a Tomcat-Web application). Every once in a while, the debugger steps into java.lang.ClassLoader. Hitting Shift-F8 four or five times gets me back out, so I considered this annoying, but not such a big problem; that's why I did not pay too much attention to the exact circumstances and have not tried to reproduce it. If it happens again, I will take a closer look and let you know.
BTW, I am using build #664.

Jens

0

Please sign in to leave a comment.