jlahoda closed pull request #526: Naive fix for Java 10 as WeakPairMap
URL: https://github.com/apache/incubator-netbeans/pull/526
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/lib.profiler/src/org/netbeans/lib/profiler/server/ProfilerInterface.java 
b/lib.profiler/src/org/netbeans/lib/profiler/server/ProfilerInterface.java
index 1cdc79531..ada29b68c 100644
--- a/lib.profiler/src/org/netbeans/lib/profiler/server/ProfilerInterface.java
+++ b/lib.profiler/src/org/netbeans/lib/profiler/server/ProfilerInterface.java
@@ -162,10 +162,10 @@ private void initiateInstrumentation(final int instrType) 
{
             if (Platform.getJDKVersionNumber() >= CommonConstants.JDK_19) {
                 try {
                     // preload classes for classLoadHook()
-                    Class.forName("java.lang.reflect.WeakPairMap$Pair"); // 
NOI18N
-                    
Class.forName("java.lang.reflect.WeakPairMap$WeakRefPeer");    // NOI18N
-                    Class.forName("java.lang.reflect.WeakPairMap$Pair$Weak"); 
// NOI18N
-                    
Class.forName("java.lang.reflect.WeakPairMap$Pair$Weak$1"); // NOI18N
+                    Class.forName("java.lang.WeakPairMap$Pair"); // NOI18N
+                    Class.forName("java.lang.WeakPairMap$WeakRefPeer");    // 
NOI18N
+                    Class.forName("java.lang.WeakPairMap$Pair$Weak"); // NOI18N
+                    Class.forName("java.lang.WeakPairMap$Pair$Weak$1"); // 
NOI18N
                 } catch (ClassNotFoundException e) {
                     e.printStackTrace(System.err);
                 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to