rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.68k stars 1.18k forks source link

Java Compiler.1.7 or 1.8 #49

Closed moosaei closed 8 years ago

moosaei commented 8 years ago

when i set java Compiler to 1.7 this error shows

Cannot refer to the non-final local variable callback defined in an enclosing scope AbsSender.java /telegrambots/src/main/java/org/telegram/telegrambots/bots line 802

but i must set java build path to 1.7

rubenlagus commented 8 years ago

The code is built using java 1.8, can't be sure what's going on.. I'll check

rubenlagus commented 8 years ago

Ok, I can confirm now that with latest changes (current dev branch), it won't work with java 7, sorry.