GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — spring-framework-issues/SPR-8502 at master · nickstreet/spring-framework-issues

Expand file tree

/

SPR-8502

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

SPR-8502

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
lib
lib
 
 
src
src
 
 
README.markdown
README.markdown
 
 
pom.xml
pom.xml
 
 

README.markdown

Steps to reproduce:

  1. run mvn test; note BUILD SUCCESSFUL
  2. edit src/test/java/poc/configurable/ServiceInjectionTests.java and uncomment someMethod(Entity)
  3. run mvn test; note BUILD FAILED

You'll notice in the pom that tests are being run with

-javaagent:/path/to/org.springframework.instrument.jar

Examine the small application and the assertion in ServiceInjectionTests and you'll see that Entity is a @Configurable and uses @Autowired to receive injection of a Service. The assertion shows that this injection fails when someMethod(Entity) is present in ServiceInjectionTests. If this method is commented out or placed within any other type in the application, the injection occurs as expected and the test passes.

See https://jira.springsource.org/browse/SPR-8502 for analysis of the causes of this problem

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.