java sub,Java 9子软件包跨模块拆分
In Java 9, can I split sub-packages across modules? For example, can I have com.example.foo in one module and com.example.foo.bar in another module?
This seems like a simple question, but for some reason I'm not able to find a direct answer after some searching. An authoritative reference would be appreciated.
I assume I can have sibling sub-packages in different modules, e.g. com.example.foo and com.example.other.
解決方案
There's no such thing as a "sub-package". my.package and my.package.sub have nothing more in common than any two random packages: they just have similar names. See this answer which starts
In reality there is no such thing as a sub-package in Java
That being the case, yes you can include them in different modules.
總結
以上是生活随笔為你收集整理的java sub,Java 9子软件包跨模块拆分的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: java切片_ java中一个极其强悍的
- 下一篇: 只能获取fixed语句初始值_因用了In
