Closed sf202020sf closed 5 years ago
This is not an error but a warning and it doesn't prevent your bot to run properly.
If you are running your bot on Java 9+, there is nothing you can do to prevent this warning, as it is generated by a dependency (Guice) and not by this library itself.
More info on this warning: http://openjdk.java.net/jeps/261#Relaxed-strong-encapsulation
ok thx!
I followed the instruction on: https://github.com/rubenlagus/TelegramBotsExample/blob/master/HOWTO.md
but when i execute the file I get the following error:
WARNING:
An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/C:/Users/sfladi/.m2/repository/com/google/inject/guice/4.2.2/guice-4.2.2.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 com.google.inject.internal.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 releaseAttached you will find my code:
`import java.util.logging.Level; import java.util.logging.Logger;
import org.telegram.telegrambots.meta.TelegramBotsApi; import org.telegram.telegrambots.meta.api.methods.send.SendMessage; import org.telegram.telegrambots.meta.api.objects.Update; import org.telegram.telegrambots.bots.TelegramLongPollingBot;
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
public class Telegrambot extends TelegramLongPollingBot {
}
`