Skip to content

Frequent ClassCastExceptions when handling CSS in JavaFX #12168

@ytzemih

Description

@ytzemih

JabRef version

Latest development branch build (please note build date below)

Operating system

GNU / Linux

Details on version and operating system

Linux Mint Debian 12

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Keep using JR.
  2. For example, change focus from entry editor to entry list.

These exceptions appear quite frequently, sometimes several at a time. I can't quite pinpoint when exactly.

Appendix

Log File
2024-11-09 10:43:56 [JavaFX Application Thread] sun.util.logging.internal.LoggingProviderImpl$JULWrapper.log()
WARN: Caught 'java.lang.ClassCastException: class java.lang.String cannot be cast to class javafx.scene.paint.Color (java.lang.String is in module java.base of loader 'bootstrap'; javafx.scene.paint.Color is in module [email protected] of loader 'app')' while converting value for '-fx-background-color' from rule '*.main-table *.table-row-cell:matching-groups-not-search' in stylesheet jrt:/org.jabref/org/jabref/gui/Base.css

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: depends-on-externalA bug or issue that depends on an update of an external library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions