Review fix for issue #196493

Petr Pisl <[email protected]> Thu, 10 Mar 2011 13:54:09 +0100
Newsgroups gmane.comp.java.netbeans.reviewers
Message-ID <[email protected]>
#196493 - OOM in 
org.netbeans.modules.php.editor.indent.FormatVisitor.addFormatToken
http://netbeans.org/bugzilla/show_bug.cgi?id=196493

The PHP formatting is done in two phases. The first phase creates 
formatting rules from lexer tokens. During this phase there can be 
cases, when the same rule is added many times for one lexer token. It 
can lead to OOM.

There is assertion in dev build to prevent this situation. The fix 
solves the situation also for builds, where the assertions are switched 
off.

There is no a risk.

Changeset:http://hg.netbeans.org/web-main/rev/092e8aad777c

Regards,
Petr