You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the ApplicationModuleSource.from(…) with the package com.acme results in two instances returned, both with the calculated identifier foo-bar. This is due to the package containing all nested classes, and thus the lookup for the package-info.java finds the nested file and is interpreted as identifier source.
A simple fix would be to insert a call to JavaPackage.toSingle() to only consider the class present in the very package.
The text was updated successfully, but these errors were encountered:
Before this commit, ApplicationModuleSource inspected all package-info.java contained in given packages, including the sub-packages of those. That caused identifiers explicitly defined in an @ApplicationModule on a package-info.java in nested packages picked up for top-level packages. This is now fixed by only considering the files in the top-level packages.
Given a package setup
the
ApplicationModuleSource.from(…)
with the packagecom.acme
results in two instances returned, both with the calculated identifierfoo-bar
. This is due to the package containing all nested classes, and thus the lookup for thepackage-info.java
finds the nested file and is interpreted as identifier source.A simple fix would be to insert a call to
JavaPackage.toSingle()
to only consider the class present in the very package.The text was updated successfully, but these errors were encountered: