Skip to content

Conversation

@raufbyrmv8
Copy link

What does this PR do?

Adds a warning log when a service defined in XML is found to use @Autowired either
on fields or constructors. This helps identify potential DI conflicts between
XML-based bean definitions and Spring annotations.

What issue does this address?

https://issues.openmrs.org/browse/TRUNK-6421

How was this tested?

  • Maven build completed successfully with mvn -DskipTests compile
  • Manual code inspection performed
  • Logs display warning messages for XML services using annotations

Checklist

  • Code compiles
  • Logging added
  • Checked ModuleUtil.java logic for edge cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant