Modify

Opened 19 months ago

Last modified 19 months 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?

  1. Launch JOSM
  2. 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)

Change History (1)

comment:1 Changed 19 months ago by Don-vip

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to simon04
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.