spring-projects / spring-projects/spring-ldap
Possible ClassCastException when creating ConversionServiceConverterManager
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 375
- Forks
- 501
- Avg merge
- 6h 4m
- Merged PRs (30d)
- 63
Description
If GenericConversionService was loaded by WebappClassLoader and thread context classloader is, for example, activemq-osgi classloader, then ClassCastException will be thrown in https://github.com/spring-projects/spring-ldap/blob/master/core/src/main/java/org/springframework/ldap/odm/typeconversion/impl/ConversionServiceConverterManager.java#L45
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at core/src/main/java/org/springframework/ldap/odm/typeconversion/impl/ConversionServiceConverterManager.java#L45 and inspect how the GenericConversionService is obtained and cast. Reproduce the WebappClassLoader and activemq-osgi classloader combination, then verify the reported ClassCastException no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100