This repository is a minimal reproducible case for a bug in Intellij.
The conditions for the problem as demonstrated here are
- a field references a class with a dollar sign (
$) in the name - the class is defined in a separate class to the field
- all classes being used as a dependency in
jarform
- Run
mvn clean installon the top-level pom and confirm it completes successfully - Open this project in IntelliJ (IntelliJ IDEA 2023.2.1 (Ultimate Edition) Build #IU-232.9559.62)
- Open
Main.javaand observe the failure to resolve type information ont.topLevelWithDollar- If none of the types from
org.example.testare resolving, opendepender/pom.xml, tweak any property (e.g. the artifactId of dependency todependee), load maven changes
- If none of the types from
