Skip to content

Incomplete module-info.java #148

@niabot

Description

@niabot

I wanted to experiment with the library (version 6.10), because it provided an example for module usage. But im stuck at the following error:

Exception in thread "main" java.util.ServiceConfigurationError: io.avaje.inject.spi.Module: 
module io.avaje.inject does not declare `uses`
    at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:589)
    at java.base/java.util.ServiceLoader.checkCaller(ServiceLoader.java:575)
    at java.base/java.util.ServiceLoader.<init>(ServiceLoader.java:504)
    at java.base/java.util.ServiceLoader.load(ServiceLoader.java:1687)
    at io.avaje.inject@6.10/io.avaje.inject.DBeanScopeBuilder.build(DBeanScopeBuilder.java:135)
    at de.asysgmbh.app.avajetest@16.0.0/de.asysgmbh.app.avajetest.Main.main(Main.java:13)

To me it looks like that the module-info.java of the library is incomplete and should contain at least the following line:

uses io.avaje.inject.spi.Module;

or ServiceLoader.load() in DBeanScopeBuilder will fail.

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