warning on windows 10

Post here questions and problems related to oXygen frameworks/document types.
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

warning on windows 10

Post by sderrick »

When our sdk editor loads on windows 10 I see the following warning

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by ro.sync.ui.te (files:c:/Users/Scott/Desktop/ide/oxygen-21.0.0.0.jar) to field javax.swing.text.DefaultHighLighter.highlights

Scott
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: warning on windows 10

Post by Radu »

Hi Scott,

What Java version are you using to run the component? Indeed sometimes we are using reflection in our code and newer Java versions report this as a warning.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: warning on windows 10

Post by sderrick »

on my windows test machine its running 11.0.2

Scott
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: warning on windows 10

Post by Radu »

Hi Scott,

We'll try to fix this warning on our side in a future version, for now you can ignore it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: warning on windows 10

Post by sderrick »

When loading the SDK on my linux box.

I thought this had been fixed in version 22.0?

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by ro.sync.ui.qe (file:/home/scott/.m2/repository/com/oxygenxml/oxygen/22.0.0.0/oxygen-22.0.0.0.jar) to field javax.swing.text.DefaultHighlighter.highlights
WARNING: Please consider reporting this to the maintainers of ro.sync.ui.qe
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

Scott
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: warning on windows 10

Post by Radu »

Hi Scott,

Oxygen and its Author Component still show in the command line a couple of similar warnings when being run with Java 9 or newer.
I have issues logged on my side to remove these warnings. Honestly there are some warnings like this one you encountered which I'm not sure how I could resolve. For this I would need to copy and maintain on our side a bunch of classes from the Swing package, classes which may differ between Java versions. So I will probably postpone fixing these problems until Java removes completely the possibility to call by reflection methods from its packages.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply