Modify ↓
Opened 4 years ago
Last modified 4 years ago
#19908 new defect
HelpBrowser: Illegal reflective access … o field javax.swing.text.html.ImageView.image
Reported by: | simon04 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report java9 reflection | Cc: |
Description
What steps will reproduce the problem?
- Launch JOSM
- Press F1 to launch help browser
What is the expected result?
What happens instead?
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.openstreetmap.josm.tools.ReflectionUtils (file:/home/simon/src/josm.svngit/build/production/JOSM/) to field javax.swing.text.html.ImageView.image WARNING: Please consider reporting this to the maintainers of org.openstreetmap.josm.tools.ReflectionUtils WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
Please provide any additional information below. Attach a screenshot if possible.
Revision:17137 Is-Local-Build:true Build-Date:2020-10-10 06:56:41 Identification: JOSM/1.5 (17137 SVN en_GB) Linux Arch Linux Memory Usage: 216 MB / 7872 MB (71 MB allocated, but free) Java version: 16-ea+19-985, Oracle Corporation, OpenJDK 64-Bit Server VM Look and Feel: com.formdev.flatlaf.FlatDarkLaf Screen: :0.0 3840x2160 (scaling 1.0x1.0) Maximum Screen Size: 3840x2160 Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32 Desktop environment: i3
Attachments (0)
Note:
See TracTickets
for help on using tickets.
I remember introducing all of this in r8933 to fix #11262. Couldn't find a way without reflection back then, and the ImageView class didn't improve in Java 11. I guess the only proper way is to use JavaFX components which have native SVG support.