Where to place module-info.java using Java 9?

前端 未结 3 1558
無奈伤痛
無奈伤痛 2021-02-19 03:33

I have an OSGI application and I have around 30 bundles (jar files). Today I decided to see how it works/if it works with Java 9.

So I started my application and got

3条回答
  •  旧巷少年郎
    2021-02-19 03:57

    You should submit a bug to Apache Felix as it's the code in org.apache.felix.framework-5.4.0.jar that is doing the illegal access and needs to be fixed. I did a quick test with newer version 5.6.8 and with --illegal-access=debug and it appears that Felix has several issues that need attention. Yes, you can temporarily eliminate the specific warning above by opening the java.net package to "ALL-UNNAMED" but that is just one or many issues.

提交回复
热议问题