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.

View | Details | Raw Unified | Return to bug 91141
Collapse All | Expand All

(-)/space/src/r551/ant/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java (+12 lines)
Lines 507-517 Link Here
507
                fs[i].set(p, null);
507
                fs[i].set(p, null);
508
            }
508
            }
509
            // #43113: IntrospectionHelper can hold strong refs to dynamically loaded classes
509
            // #43113: IntrospectionHelper can hold strong refs to dynamically loaded classes
510
            boolean found16helpers = false;
511
            boolean found17helpers = false;
512
            try {
510
            Field helpersF = IntrospectionHelper.class.getDeclaredField("helpers");
513
            Field helpersF = IntrospectionHelper.class.getDeclaredField("helpers");
511
            helpersF.setAccessible(true);
514
            helpersF.setAccessible(true);
512
            Object helpersO = helpersF.get(null);
515
            Object helpersO = helpersF.get(null);
513
            Map helpersM = (Map) helpersO;
516
            Map helpersM = (Map) helpersO;
514
            helpersM.clear();
517
            helpersM.clear();
518
                found16helpers = true;
519
            } catch (NoSuchFieldException nsfe) {
520
                Field helpers17F = IntrospectionHelper.class.getDeclaredField ("HELPERS");
521
                helpers17F.setAccessible (true);
522
                Object helpers170 = helpers17F.get (null);
523
                Map helpers17M = (Map) helpers170;
524
                helpers17M.clear ();
525
                found17helpers = true;
526
            }
515
            // #46532: java.beans.Introspector caches not cleared well in all cases.
527
            // #46532: java.beans.Introspector caches not cleared well in all cases.
516
            Introspector.flushCaches();
528
            Introspector.flushCaches();
517
        } catch (Exception e) {
529
        } catch (Exception e) {

Return to bug 91141