lahodaj commented on code in PR #8037:
URL: https://github.com/apache/netbeans/pull/8037#discussion_r1880232234


##########
java/java.source.base/src/org/netbeans/api/java/source/ElementUtilities.java:
##########
@@ -521,6 +523,21 @@ public Iterable<? extends TypeElement> 
getGlobalTypes(ElementAcceptor acceptor)
         return membersList;
     }
 
+    private static final Object ORDINARY_SCOPE_TYPE;
+    private static final Logger LOG = 
Logger.getLogger(ElementUtilities.class.getName());
+
+    static {
+        Object ordinary = null;
+
+        try {
+            ordinary = Enum.valueOf((Class<Enum>) 
Class.forName("com.sun.tools.javac.api.JavacScope$ScopeType"), "ORDINARY");

Review Comment:
   The ScopeType is currently `private` in `JavacScope`. I'll see if there's 
something that can be done about it, but it seems somewhat unlikely it could be 
done in JDK24. So it seems we may need to live with code like this. My mistake.



-- 
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

Reply via email to