mbien commented on PR #3923:
URL: https://github.com/apache/netbeans/pull/3923#issuecomment-1087135364
@BradWalker would this work?
```diff
diff --git a/platform/openide.compat/src/org/openide/util/WeakListener.java
b/platform/openide.compat/src/org/openide/util/WeakListener.java
index 39f5210..ac5f3f3 100644
--- a/platform/openide.compat/src/org/openide/util/WeakListener.java
+++ b/platform/openide.compat/src/org/openide/util/WeakListener.java
@@ -918,14 +918,14 @@
/** Reference that also holds ref to WeakListener.
*/
- private static final class ListenerReference extends WeakReference
implements Runnable {
+ private static final class ListenerReference<T> extends
WeakReference<T> implements Runnable {
private static Class lastClass;
private static String lastMethodName;
private static Method lastRemove;
private static Object LOCK = new Object();
final WeakListener weakListener;
- public ListenerReference(Object ref, WeakListener weakListener) {
+ public ListenerReference(T ref, WeakListener weakListener) {
super(ref, Utilities.activeReferenceQueue());
this.weakListener = weakListener;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists