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.
org.netbeans.modules.bpel.model.validation.imports.BPELImportsValidator has an instance variable which refers to the last validation. This causes all the referenced models to be strongly referenced until the next validation is performed. This variable needs to either be removed or set to null following validation to avoid a memory leak.
Fix is quiet simple. .validation field is exposed thru .getValidation() method to all BPELImportsVisitors, which are calling this method during validation procedure. Cleaninig .validation field in the end of .validate method is sufficient fix for this bug.
diff -r1.1.2.5.2.2 -r1.1.2.5 55c55 < --- > this.validation = validation; 70,71d69 < this.validation = validation; < 97,100d94 < < //Fix for IZ86249 < //Release reference to last vallidation, causing memory leaks < this.validation = null;
Reviewed fix. Looks trivial. Should commit to release55 and close.
fix merged into release55 branch
Close "FIXED" issue against previous releases