This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It would be better to rewrite org.netbeans.modules.java.hints.bugs.Unbalanced hint in such a way that it will not need static WeakHashMap seen variable. Current implementation crates memory leak, when Compilation instance is also indirectly held by value of seen's WeakHashMapEntry. See issue #246717 for one example of such memory leak indirectly caused by Unbalanced hint.
See issue #246778 for another example.
cache moved to compilation info, invalidates after source change - jet-main#54216150aa68
Integrated into 'main-silver', will be available in build *201507290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/54216150aa68 User: Svata Dedic <sdedic@netbeans.org> Log: #246777: identifier usage collected in the CompilationInfo to avoid leaks