eclipse-ee4j / eclipse-ee4j/jersey
OsgiRegistry attempts to load classes from comment lines
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/eclipse-ee4j/jersey/blob/12a057315292a624ceb31b58bd04eec3cb19a819/core-common/src/main/java/org/glassfish/jersey/internal/OsgiRegistry.java#L209
I've run into a problem in my (admittedly bizarre) environment where I'm attempting to bind Jersey with Weld in an OSGi environment that's a bit too old to use the non-SE Weld container. Setting aside the ugliness of my project, I found that the `OsgiLoader` class attempts to load lines from factory files that start with "#", such as this one from the cdi2-se package:
https://github.com/eclipse-ee4j/jersey/blob/12a057315292a624ceb31b58bd04eec3cb19a819/inject/cdi2-se/src/main/resources/META-INF/services/org.glassfish.jersey.internal.inject.InjectionManagerFactory
Contributor guide
Assessment
This issue has not been assessed yet.