You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mbien (via GitHub)" <gi...@apache.org> on 2024/02/01 16:09:09 UTC
Re: [PR] Prepare CI for NB 22 and bump minimum JDK requirement to 17 [netbeans]
mbien commented on code in PR #7019:
URL: https://github.com/apache/netbeans/pull/7019#discussion_r1473590559
##########
harness/nbjunit/src/org/netbeans/junit/MethodOrder.java:
##########
@@ -43,6 +43,9 @@ static void initialize() {
String orderS = findOrder();
if (!"natural".equals(orderS)) { // NOI18N
try {
+ // TODO: ClassLoader fields can not be accessed via reflection on JDK 12+
+ // see jdk.internal.reflect.Reflection#fieldFilterMap
+ // this won't work
Field classesF = ClassLoader.class.getDeclaredField("classes"); // NOI18N
Review Comment:
luckily nothing seems to be using test case ordering: https://github.com/search?q=repo%3Aapache%2Fnetbeans%20NbTestCase.order&type=code
so I haven't bothered to fix it. (I am also not sure if there is an easy fix, this might require instrumentation, a custom CL or some hooks into junit)
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists