Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5699

Testcases failing with JDK17 in java.editor

    XMLWordPrintableJSON

Details

    Description

      Testcase: testModelToViewAtBoundaries(org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest): Caused an ERROR
      [junit] null
      [junit] java.lang.reflect.InvocationTargetException
      [junit] at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1368)
      [junit] at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1343)
      [junit] at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1479)
      [junit] at org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest.testModelToViewAtBoundaries(JavaViewHierarchyRandomTest.java:162)
      [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      [junit] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [junit] at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
      [junit] at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476)
      [junit] at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402)
      [junit] at java.base/java.lang.Thread.run(Thread.java:831)
      [junit] Caused by: java.lang.IllegalStateException: javax.swing.text.BadLocationException: Invalid position
      [junit] at org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest$1.run(JavaViewHierarchyRandomTest.java:173)
      [junit] at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
      [junit] at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
      [junit] at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      [junit] at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      [junit] at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      [junit] at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      [junit] at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
      [junit] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      [junit] at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      [junit] at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      [junit] at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      [junit] at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      [junit] at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      [junit] Caused by: javax.swing.text.BadLocationException: Invalid position
      [junit] at java.desktop/javax.swing.plaf.basic.BasicTextUI.getNextVisualPositionFrom(BasicTextUI.java:1202)
      [junit] at org.netbeans.editor.BaseTextUI.getNextVisualPositionFrom(BaseTextUI.java:339)
      [junit] at org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest$1.getNextVisualPositionFrom(JavaViewHierarchyRandomTest.java:183)
      [junit] at org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest$1.run(JavaViewHierarchyRandomTest.java:171)
      [junit]
      [junit]
      [junit] Test org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest FAILED

       

      Testcase: testException(org.netbeans.api.java.source.test.support.MemoryValidator): FAILED
      [junit] expected:<Element:[[com.sun.java.util.jar.pack.Attribute.Layout.Element, ]javax.swing.text.Ele...> but was:<Element:[[]javax.swing.text.Ele...>
      [junit] junit.framework.ComparisonFailure: expected:<Element:[[com.sun.java.util.jar.pack.Attribute.Layout.Element, ]javax.swing.text.Ele...> but was:<Element:[[]javax.swing.text.Ele...>
      [junit] at org.netbeans.modules.java.editor.imports.ComputeImportsTest.doTest(ComputeImportsTest.java:454)
      [junit] at org.netbeans.modules.java.editor.imports.ComputeImportsTest.doTest(ComputeImportsTest.java:422)
      [junit] at org.netbeans.modules.java.editor.imports.ComputeImportsTest.doTest(ComputeImportsTest.java:399)
      [junit] at org.netbeans.modules.java.editor.imports.ComputeImportsTest.testException(ComputeImportsTest.java:158)
      [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      [junit] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [junit] at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
      [junit] at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476)
      [junit] at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402)
      [junit] at java.base/java.lang.Thread.run(Thread.java:831)

      Attachments

        Issue Links

          Activity

            People

              mishra.sandeep Sandeep Mishra
              mishra.sandeep Sandeep Mishra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m