Open bvn13 opened 6 years ago
Java9 is, according to Oracle a short term release
, quite probably I'll update to Java10 directly at some point in the future. Not planned at the moment.
I have the same issue for the Java 10 Do we have any ways to use TelegramBots with Java 9+?
A bit more details:
module your.module {
...
requires telegrambots.meta;
requires telegrambots;
...
}
You will get this error:
module 'your.module' reads package 'org.telegram.telegrambots' from both 'telegrambots' and 'telegrambots.meta'.
Seems like it is impossible to use the same package name from different modules with Java's module system. https://stackoverflow.com/questions/40985153/with-java-9-modules-will-multiple-modules-be-able-to-export-the-same-package
Besides the above mentioned problem with using the same package name for different modules seems bad practice just because you must know which classes you have in another modules not to intersect names for them.
@bvn13 @ChmilevFA Can we close this issue with last release?
@rubenlagus not checked yet
Have an error: module 'my-module' reads package 'org.telegram.telegrambots' from both 'telegrambots' and 'telegrambots.meta'.
Seems it need to reneme sub-projects' packages like org.telegram.telegrambotsmeta or place it into one project (worse).