This is an automated email from the ASF dual-hosted git repository. akhileshsingh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 39496d3 Fixed two test cases failing on JDK17 (#2968) 39496d3 is described below commit 39496d3400eada7398a8428f05c90589aa1f3b74 Author: Sandeep Mishra <72914639+mishrasand...@users.noreply.github.com> AuthorDate: Thu May 27 14:04:47 2021 +0530 Fixed two test cases failing on JDK17 (#2968) --- .../editor/imports/ComputeImportsTest/14/testException-filtered.pass | 2 ++ .../editor/imports/ComputeImportsTest/14/testException-unfiltered.pass | 2 ++ .../netbeans/modules/java/editor/view/JavaViewHierarchyRandomTest.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/java/java.editor/test/unit/data/goldenfiles/org/netbeans/modules/java/editor/imports/ComputeImportsTest/14/testException-filtered.pass b/java/java.editor/test/unit/data/goldenfiles/org/netbeans/modules/java/editor/imports/ComputeImportsTest/14/testException-filtered.pass new file mode 100644 index 0000000..4face9f --- /dev/null +++ b/java/java.editor/test/unit/data/goldenfiles/org/netbeans/modules/java/editor/imports/ComputeImportsTest/14/testException-filtered.pass @@ -0,0 +1,2 @@ +Element:[javax.swing.text.Element, javax.swing.text.html.parser.Element, org.w3c.dom.Element] +d:[] diff --git a/java/java.editor/test/unit/data/goldenfiles/org/netbeans/modules/java/editor/imports/ComputeImportsTest/14/testException-unfiltered.pass b/java/java.editor/test/unit/data/goldenfiles/org/netbeans/modules/java/editor/imports/ComputeImportsTest/14/testException-unfiltered.pass new file mode 100644 index 0000000..4face9f --- /dev/null +++ b/java/java.editor/test/unit/data/goldenfiles/org/netbeans/modules/java/editor/imports/ComputeImportsTest/14/testException-unfiltered.pass @@ -0,0 +1,2 @@ +Element:[javax.swing.text.Element, javax.swing.text.html.parser.Element, org.w3c.dom.Element] +d:[] diff --git a/java/java.editor/test/unit/src/org/netbeans/modules/java/editor/view/JavaViewHierarchyRandomTest.java b/java/java.editor/test/unit/src/org/netbeans/modules/java/editor/view/JavaViewHierarchyRandomTest.java index 48706ea..5279312 100644 --- a/java/java.editor/test/unit/src/org/netbeans/modules/java/editor/view/JavaViewHierarchyRandomTest.java +++ b/java/java.editor/test/unit/src/org/netbeans/modules/java/editor/view/JavaViewHierarchyRandomTest.java @@ -167,6 +167,8 @@ public class JavaViewHierarchyRandomTest extends NbTestCase { int endOffset = doc.getLength() + 1; modelToView(startOffset); modelToView(endOffset); + if(System.getProperty("java.specification.version").compareTo("1.8") > 0) + endOffset = doc.getLength(); getNextVisualPositionFrom(startOffset); getNextVisualPositionFrom(endOffset); } catch (BadLocationException e) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists