steinarb commented on issue #2083: URL: https://github.com/apache/shiro/issues/2083#issuecomment-2800052243
Nope. It is an OSGi import problem, which https://github.com/apache/shiro/issues/1449 also is, but very different in nature (different packages and different bundles involved). This issue is a class in shiro-lang not able to create an instance of a class in shiro-core (because shiro-lang doesn't import the package). And shiro-lang can't import the package from shiro-core because shiro-core imports a package from shiro-lang and introducing a cross dependency would make the bundles refuse to load. I tried splitting subject out into a separate bundle, but the classes in subject require a lot of packages in shiro-core ``` org.apache.shiro.authc org.apache.shiro.authc.pam org.apache.shiro.authz org.apache.shiro.lang org.apache.shiro.lang.util org.apache.shiro.mgt org.apache.shiro.session org.apache.shiro.util ``` Most troublesome are org.apache.shiro.lang because that means that the classes here and the classes in lang that wants to use them have a cross dependency (even if I were to split out all of the reset of the packages which are all in shiro-core). Short story: I don't know any way of fixing this other than moving shiro-lang back into shiro-core (which IMO would be the wrong thing to do). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
