mbien commented on code in PR #4012:
URL: https://github.com/apache/netbeans/pull/4012#discussion_r856321188


##########
java/java.editor/test/unit/src/org/netbeans/modules/editor/java/GoToSupportTest.java:
##########
@@ -1581,7 +1581,10 @@ private static boolean hasRecords() {
     }
 
     public void testJavadocSnippetHighlightRecord() throws Exception {
-        if (!TreeShims.isJDKVersionRelease18_Or_Above()) {
+        try {
+            SourceVersion.valueOf("RELEASE_18"); //NOI18N
+        } catch (IllegalArgumentException ex) {
+            //OK, no RELEASE_18, skip tests
             return;
         }

Review Comment:
   yes. but tests can be configured to use nb-javac.
   looking at the properties:
   
   
https://github.com/apache/netbeans/blob/497377ca9c0825e1d0606194fccd0d120b0b1adc/java/java.editor/nbproject/project.properties#L113-L114
   
   it looks like nb-javac is already enabled for the tests. It should work 
without this check I believe.



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