coherence-community / oracle-bedrock

Oracle Bedrock
Other
54 stars 31 forks source link

Use Thread's context ClassLoader instead of Class.forName #420

Closed thegridman closed 7 years ago

thegridman commented 7 years ago

There are some places in Bedrock code that executes in a launched Java application's JVM where Class.forName() is called to load classes. This can break if the application code has changed the ClassLoader for the executing Thread and result in a ClassNotFoundException.

Instances of Class.forName() should be changed to use the current Thread's context ClassLoader in JavaApplicationRunner and AbstractRemoteChannel.

brianoliver commented 7 years ago

The requirement for this is no longer valid.