Bug 64097 - Service loader implementation incomplete
Summary: Service loader implementation incomplete
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: EL (show other bugs)
Version: 9.0.x
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-25 08:25 UTC by Mark Thomas
Modified: 2020-01-27 12:31 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Thomas 2020-01-25 08:25:37 UTC
The custom service loader implementation used by the EL API is incomplete. It does not skip comments causing it to use a comment line as a class name. This means it often fails to load a valid EL implementation present on the class path.

I suspect the issues are not limited to comment handling but I haven't dug further.

Switching to using ServiceLoader rather than a custom implementation looks to be the best solution.
Comment 1 Mark Thomas 2020-01-27 12:31:47 UTC
Fixed in:
- master for 10.0.0.0-M1 onwards
- 9.0.x for 9.0.31 onwards
- 8.5.x for 8.5.51 onwards
- 7.0.x for 7.0.100 onwards