Infinite Recursion Intention

this code is wrongly highlighted as infinite recursion,
the try-catch at beginning causes the problem (when removing the try-catch IDEA no longer thinks it recurses infinitely)

//dummy code:
private void rec(BasePageConfig pageConfig)
{
try
{
new File("c:/").getCanonicalFile();
}
catch (IOException e)
{

}
final List subpages = pageConfig.getSubpages();
for (int j = 0; j < subpages.size(); j++)
{
BasePageConfig pc = (BasePageConfig) subpages.get(j);
rec(pc);
}
}

4 comments
Comment actions Permalink


I've submitted a fix for this. It should be in the first Irida EAP. Somebody please mark it.

--Dave Griffith

0
Comment actions Permalink

Dave Griffith wrote:

I've submitted a fix for this. It should be in the first Irida EAP. Somebody please mark it.

--Dave Griffith

What was the tracker id for this?

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

0
Comment actions Permalink

Whoops, looks like it never got into the tracker. I'll submit one.

--Dave Griffith

0
Comment actions Permalink

ok, I'll put bugs in the tracker next time...

0

Please sign in to leave a comment.