You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Sandeep Mishra (Jira)" <ji...@apache.org> on 2021/05/20 05:09:00 UTC

[jira] [Created] (NETBEANS-5699) Testcases failing with JDK17 in java.editor

Sandeep Mishra created NETBEANS-5699:
----------------------------------------

             Summary: Testcases failing with JDK17 in java.editor
                 Key: NETBEANS-5699
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5699
             Project: NetBeans
          Issue Type: Bug
          Components: java - Editor, java - Hints
    Affects Versions: 12.4
            Reporter: Sandeep Mishra
            Assignee: Sandeep Mishra


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)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists