Skip to content

Fix Wildcard Imports in External Projects#203

Open
rcosta358 wants to merge 1 commit intomainfrom
fix-wildcard-imports-external
Open

Fix Wildcard Imports in External Projects#203
rcosta358 wants to merge 1 commit intomainfrom
fix-wildcard-imports-external

Conversation

@rcosta358
Copy link
Copy Markdown
Collaborator

This PR is a follow-up on #192, which only fixed the issue for examples in the current project. In external projects that used import liquidjava.specification.*, Spoon would mis-resolve LiquidJava annotations to the current package, for example com.example.Refinement instead of liquidjava.specification.Refinement.

To fix this, added the liquidjava-api to Spoon's source classpath in CommandLineLauncher, while keeping noClasspath mode enabled. The path is obtained from the loaded Refinement annotation class and points to the liquidjava-api artifact, which contains all LiquidJava annotations. This allows Spoon to resolve wildcard-imported LiquidJava annotations correctly in external projects.

@rcosta358 rcosta358 self-assigned this Apr 6, 2026
@rcosta358 rcosta358 added the bug Something isn't working label Apr 6, 2026
@rcosta358 rcosta358 requested a review from CatarinaGamboa April 6, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant