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 30449
Collapse All | Expand All

(-)WeakListenerImpl.java (-1 / +10 lines)
Lines 344-350 Link Here
344
                    constructors.put (c, new SoftReference (proxyConstructor));
344
                    constructors.put (c, new SoftReference (proxyConstructor));
345
                }
345
                }
346
346
347
                proxy = proxyConstructor.newInstance(new Object[] { this });
347
                Object p;
348
                try {
349
                    p = proxyConstructor.newInstance(new Object[] { this });
350
                } catch (java.lang.NoClassDefFoundError err) {
351
                    // if for some reason the actual creation of the instance
352
                    // from constructor fails, try it once more using regular
353
                    // method, see issue 30449
354
                    p = Proxy.newProxyInstance (c.getClassLoader (), new Class[] { c }, this);
355
                }
356
                proxy = p;
348
            } catch (Exception ex) {
357
            } catch (Exception ex) {
349
                IllegalStateException e = new IllegalStateException (ex.getMessage ());
358
                IllegalStateException e = new IllegalStateException (ex.getMessage ());
350
                ErrorManager.getDefault ().annotate (e, ex);
359
                ErrorManager.getDefault ().annotate (e, ex);

Return to bug 30449