Taack opened a new issue, #14806:
URL: https://github.com/apache/grails-core/issues/14806

   ### Expected Behavior
   
   Declaring 2 services in 2 different plugins should be equally injected. 
   
   File `server/grails-app/controllers/TestController`:
   
   ```groovy
   package com.example
   
   class TestController {
   
       TestService testService
       Test2Service test2Service
   
       def test() {
           render testService.toString()
       }
   
       def test2() {
           render test2Service.toString()
       }
   }
   ```
   
   
   
   ### Actual Behaviour
   
   Accessing `test` action return null, but not `test2` ...
   
   ```bash
   ❯ curl http://localhost:8080/test/test
   null⏎                                                                        
                                                                            
   ~
   ❯ curl http://localhost:8080/test/test2
   com.example.Test2Service@5ca3d1c2⏎                                           
                                                                            
   ```
   
   
   ### Steps To Reproduce
   
   1. unzip test.zip
   2. cd test
   3. ./gradlew server:bootRun
   4. access http://localhost:8080/test/test or http://localhost:8080/test/test2
   
   
[test-plugin-inject-grails700M4.zip](https://github.com/user-attachments/files/20706560/test-plugin-inject-grails700M4.zip)
   
   
   ### Environment Information
   
   either using Java 17 ou Java 24 on Linux.
   
   ### Example Application
   
   _No response_
   
   ### Version
   
   7.0.0-M4


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to