spring-boot/spring-boot-tools
Andy Wilkinson ee08667e81 Exclude Java agent jars from class path of launching class loader
ExecutableArchiveLauncher creates a ClassLoader that is used by the
Launcher to load an application’s classes. During the creation of this
ClassLoader URLs from another ClassLoader are copied over. This was
resulting in Java agents that are added to the system class loader
via the -javaagent launch option being available on both the system
class loader and the created class loader. Java agents are intended to
always be loaded by the system class loader. Making them available on
another class loader breaks this model.

This commit updates ExecutableArchiveLauncher so that it skips the URLs
of any Java agents (found by examining the JVM’s input arguments) when
copying URLs over to the new classloader, thereby ensuring that Java
agents are only ever loaded by the system class loader.

Fixes #863
2014-05-21 13:37:05 +01:00
..
spring-boot-dependency-tools Add spring-boot-versions project 2014-05-20 23:55:31 +01:00
spring-boot-gradle-plugin Require single main class 2014-05-16 10:45:17 +01:00
spring-boot-loader Exclude Java agent jars from class path of launching class loader 2014-05-21 13:37:05 +01:00
spring-boot-loader-tools Require single main class 2014-05-16 10:45:17 +01:00
spring-boot-maven-plugin Polish 2014-05-20 18:26:56 +01:00
pom.xml Move master to 1.1.0.BUILD-SNAPSHOT 2014-04-24 12:45:20 +01:00