Re: module readability and exceptions in api

2018-10-10 Thread Michał Zegan
W dniu 10.10.2018 o 20:36, Alan Bateman pisze: > On 10/10/2018 17:43, Michał Zegan wrote: >> 2. What is the use for Module.addReads and >> ModuleLayer.Controller.addReads methods? > Module addReads is important when generating bytecode in your own module > with references to classes in modules

Re: module readability and exceptions in api

2018-10-10 Thread Alan Bateman
On 10/10/2018 17:43, Michał Zegan wrote: 2. What is the use for Module.addReads and ModuleLayer.Controller.addReads methods? Module addReads is important when generating bytecode in your own module with references to classes in modules that you don't read. Another example  is where you create

module readability and exceptions in api

2018-10-10 Thread Michał Zegan
Hello, I have following 2 questions: 1. Reflection and MethodHandles throw exceptions deriving from java.lang.ReflectiveOperationException, that are checked exceptions. However, the whole module related api throws unchecked exceptions. What is the actual reason/motivation for using unchecked

Re: module annotations

2018-10-10 Thread Peter Levart
Hi Michał, On 10/09/2018 09:11 PM, Alan Bateman wrote: On 09/10/2018 17:27, Michał Zegan wrote: Hello, I know that modules/module declarations can be annotated. Contrary to other elements from packages downwards, java has a way to read module descriptions before creating modules themselves (in