B4J Question Error WARNING: An illegal reflective

ivanomonti

Expert
Licensed User
Longtime User
Good morning everyone, today this error appears, my application makes many requests and I can't do anything differently, new errors like this appear randomly that I don't know what to do with


B4X:
WARNING: package com.sun.javafx.embed.swing.oldimpl not in javafx.swing
Waiting for debugger to connect...
Program started.
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by anywheresoftware.b4j.object.JavaObject (file:/C:/Program%20Files/Anywhere%20Software/B4J/Libraries/JavaObject.jar) to method sun.awt.windows.WToolkit.beep()
WARNING: Please consider reporting this to the maintainers of anywheresoftware.b4j.object.JavaObject
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
 

Daestrum

Expert
Licensed User
Longtime User
The only way to stop the warnings is to stop calling 'sun.awt.windows.WToolkit.beep()'.

ANY package that starts sun is not meant to be called by user code.
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
As previously mentioned in another thread, this is not an error, but a WARNING about a backward breaking change that may be upcoming. Even then, you will be able to allow such access if you want to. For a more detailed explanation, please see https://stackoverflow.com/a/63408659
 
Upvote 0
Top