Skip to content

Missing imports for classes in package names with _ in 2.11.3 #1588

@PtrTeixeira

Description

@PtrTeixeira

Affected version: 2.11.3
Demo: build / code

Given a immutable class com.github.ptrteixeira._private.MyPrivateClass and some other class com.github.ptrteixeira.MyCoreClass, the imports for MyCoreClass don't seem to appear in the generated code for MyPrivateClass.

This doesn't occur if instead of _private the package name is privateapp, and it doesn't occur if the other class is com.github.ptrteixeira.core.MyCoreClass (ie in a sibling package, rather than above it). It does occur if the package name is _beans, so it seems underscore-related rather than keyword related. It does work in Immutables 2.10.1 and not in 2.11.0, so I think it affects all of the 2.11.x line

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions