[Task]: Investigate the possibility for using the CustomToolClassLoader for Compiler plugins #42077
Labels
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Task
Description
Any
bal tool
runs with a custom class loader that prioritises the child jars over parent jars.However, when trying to load a package within the tool and compile, and if that package contains compiler plugins, The compiler plugin does not use the parent
CustomToolClassLoader
. It uses the app class loader.This has caused issues in service loading during the implementation of
bal scan
.Describe your task(s)
[ ] - Check the feasibility of changing the compiler plugin related class loader creation to use the parent, in this case CustomToolClassLoader
[ ] - Introduce this to the 2201.8.5 fix
Related area
-> Compilation
Related issue(s) (optional)
#41957
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: