ClassCastException in IPP/3341

Hey Dave,

I got a ClassCastException with IntentionPowerPack today trying
to do a if-to-switch conversion. It's tracked at:
http://www.intellij.net/tracker/idea/viewSCR?publicId=47873

It seems that it broke because of extra parentheses in the conditions,
like:
if ((condition)) {
...
} else if ((condition) || (condition)) {
...
}

After cleaning up parentheses with "Remove unnecessary parentheses"
(another Godsend given the codebase I'm looking at) the if-to-switch
conversion worked fine.

Thanks,

Vince.


3 comments
Comment actions Permalink


Yup, just about to sit down to fix it. Should be easy.

FYI, Once you submit exceptions with the reporting widget, they automatically get routed to my inbox, so there's no need to repeat that here.

--Dave Griffith

0
Comment actions Permalink

Okay cool. I repeated it just to add the extra information but next time
I'll just add it directly to the tracker.

Thanks,

Vince.


0
Comment actions Permalink

No problem. I just submitted a fix.

--Dave Griffith

0

Please sign in to leave a comment.