Skip to content

Missing full qualifier on private fields in module classes #145

@mikehearn

Description

@mikehearn

I tried upgrading to 6.9 but the generated code doesn't build:

@Generated("io.avaje.inject.generator")
@InjectModule(requires={hydraulic.factory.builds.Build.class,hydraulic.parts.config.views.PartConfigView.class,hydraulic.parts.config.models.SiteConfigModel.class,hydraulic.parts.tool.KeyManager.class}, customScopeType="hydraulic.parts.tool.RepositoryTask")
public class RepositoryTaskModule implements Module.Custom {

  private final Class<?>[] provides = new Class<?>[]{};
  private final Class<?>[] requires = new Class<?>[]{hydraulic.factory.builds.Build.class,hydraulic.parts.config.views.PartConfigView.class,hydraulic.parts.config.models.SiteConfigModel.class,hydraulic.parts.tool.KeyManager.class};
  private Builder builder;

  private Build build;
  private PartConfigView partConfigView;
  private SiteConfigModel siteConfigModel;
  private KeyManager keyManager;

  /**
   * Create providing the external dependencies.
   */
  public RepositoryTaskModule(Build build, PartConfigView partConfigView, SiteConfigModel siteConfigModel, KeyManager keyManager) {

As you can see, the private fields aren't using FQNs and thus cannot be imported. They're used correctly elsewhere. The same is also true in the constructor. Perhaps import lines should be added, or alternatively, everywhere the class name is used should be fully qualified.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions