Skip to content

System Classloader getting closed by the GroovyParser.clearCache() method #851

@rbioteau

Description

@rbioteau

When GroovyParser.clearCache() is called (when a project is closed or a Full build is invoked), all URLClassloader in the parent hierachy are closed including the System Classloader.

It leads to errors when the application try to load classes from the JRE like the crypto classes.
The side effect is that it is no more possible to fetch a git repository by example, you get exceptions like

java.security.NoSuchAlgorithmException: SunTls12RsaPremasterSecret KeyGenerator not available

The GroovyClassLoaderFactory should filter the Classloader.getSystemClassloader() in the close() method.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions