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);
}
}
Please sign in to leave a comment.
I've submitted a fix for this. It should be in the first Irida EAP. Somebody please mark it.
--Dave Griffith
Dave Griffith wrote:
What was the tracker id for this?
--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Whoops, looks like it never got into the tracker. I'll submit one.
--Dave Griffith
ok, I'll put bugs in the tracker next time...