[ https://issues.apache.org/jira/browse/CAUSEWAY-3326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827665#comment-17827665 ]
Andi Huber commented on CAUSEWAY-3326: -------------------------------------- Seems I found the bug in org.apache.causeway.core.metamodel.objectmanager.ObjectCreator.DefaultCreationHandler.createObject(ObjectSpecification) which does not inject services. However, it should by design. > Dependencies in @Types are not being injected > --------------------------------------------- > > Key: CAUSEWAY-3326 > URL: https://issues.apache.org/jira/browse/CAUSEWAY-3326 > Project: Causeway > Issue Type: Bug > Affects Versions: 2.0.0-M9 > Reporter: Martin Hesse > Assignee: Andi Huber > Priority: Major > Fix For: 2.0.0 > > > when using types, as in > {code:java} > public @interface Name { > int MAX_LEN = 40; > class Specification extends AbstractSpecification2<String> { > @Inject > private DomainModule.Configuration configuration; > {code} > then the dependencies are not correctly injected into the Specification which > will result in a NullPointerException (configuration is null). -- This message was sent by Atlassian Jira (v8.20.10#820010)