Skip to content

Commit

Permalink
#569 - Removed usage of Class.forName(...) in ModelCacheImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgonzalez committed Feb 25, 2021
1 parent 8d72ecb commit 613a640
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ content/src/main/content/jcr_root/etc/.content.xml
content/src/main/content/jcr_root/etc/designs/.content.xml
content/src/main/content/jcr_root/etc/clientlibs/.content.xml

ui.tests/node_modules/
ui.tests/node_modules/

#VS Code
.history
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unrelease]
## [Unreleased]

### Changed

- 0531: Release to maven central (instead of bintray)
- 0596: Updated ModelCacheImpl to use the DynamicClassLoaderManager.getDynamicClassLoader().loadClass(...) rather than Class.forName(..)

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final Object get(Object key) {
Class clazz = null;

try {
clazz = Class.forName((String) key, true, dynamicClassLoaderManager.getDynamicClassLoader());
clazz = dynamicClassLoaderManager.getDynamicClassLoader().loadClass((String) key);
return get(clazz);
} catch (ClassNotFoundException e) {
throw new IllegalArgumentException("Unable to derive a class from " + (String)key);
Expand Down

0 comments on commit 613a640

Please sign in to comment.