When running an analysis of our php project which includes javascript as well there is allways an illegal reflection access warning logged during the analysis:
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/Admin.FW/.sonar/cache/866bb1adbf016ea515620f1aaa15ec53/sonar-javascript-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1 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
hello @flyerwire,
this warning comes from Java 11, because we use reflection in our parsing library. We don’t have a fix for it yet (it’s quite complicated), however it is safe to ignore it for the time being, it doesn’t affect the analysis.
@saberduck I see this too. Do you have a ticket for this problem that can be followed?
@peter.toft unfortunately I can’t provide the ticket. There are multiple components which trigger this warning, however, as I stated above it is harmless. If it bothers you too much, you can run analysis on Java 8.