Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Test failure in Test_org_eclipse_swt_widgets_Text on Windows x86 64-bit with Java 21

Aperta
#3,534 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
49/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
desktop, testing

Direzione di ricerca

Start with Test_org_eclipse_swt_widgets_Text.test_paste at line 957, which fails on Windows x86 64-bit with Java 21; compare the expected and actual pasted text and check the test's setup and related SWT Text behavior. Reproduce the failure on the reported environment and run the relevant SWT test; done when the test passes there without weakening its intended assertion.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

Test failure on Windows x86 64-bit with Java 21
The test org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text is failing on Windows x86 64-bit with Java 21.

The stack trace is attached below :

expected: <0 10 1> but was: <230 1>

org.opentest4j.AssertionFailedError: expected: <0
10
1> but was: <230
1>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text.test_paste(Test_org_eclipse_swt_widgets_Text.java:957)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Suppressed: java.lang.RuntimeException: AwtScreenshot VM finished with exit code 1:
Exception in thread "main" java.awt.AWTError: no screen devices
at java.desktop/sun.awt.Win32GraphicsEnvironment.getDefaultScreenDevice(Win32GraphicsEnvironment.java:101)
at java.desktop/java.awt.Robot.<init>(Robot.java:135)
at org.eclipse.test.AwtScreenshot.main(AwtScreenshot.java:43)

at org.eclipse.test.AwtScreenshot.dumpAwtScreenshot(AwtScreenshot.java:113)
at org.eclipse.test.Screenshots.takeScreenshot(Screenshots.java:102)
at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Widget.lambda$1(Test_org_eclipse_swt_widgets_Widget.java:79)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Widget.lambda$0(Test_org_eclipse_swt_widgets_Widget.java:75)
... 2 more

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
Lingua principale
Java
Stelle
202
Fork
206
Merge medio
14h 7m
PR unite (30g)
103

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-platform/eclipse.platform.swt

Tutte le issue di eclipse-platform/eclipse.platform.swt

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.