Skip to content

Commit

Permalink
Fixed exception and error catching from class loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Jan 25, 2024
1 parent 802bdef commit 28a6e70
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2020, 2023 Obeo.
* Copyright (c) 2020, 2024 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -468,7 +468,7 @@ public Class<?> getClass(String qualifiedName) {

try {
res = classLoader.loadClass(qualifiedName.replace(qualifierSeparator, DOT));
} catch (ClassNotFoundException e) {
} catch (Exception | Error e) {
res = null;
}

Expand Down

0 comments on commit 28a6e70

Please sign in to comment.