Skip to content

Commit

Permalink
[GR-1355] Fix incomplete class path issue (oracle#947).
Browse files Browse the repository at this point in the history
PullRequest: graal/2839
  • Loading branch information
cstancu committed Jan 30, 2019
2 parents 528ece0 + cda36d3 commit f64799e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private void fillGenericInfo(AnalysisType type, DynamicHub hub) {
Type[] allGenericInterfaces;
try {
allGenericInterfaces = javaClass.getGenericInterfaces();
} catch (MalformedParameterizedTypeException | TypeNotPresentException t) {
} catch (MalformedParameterizedTypeException | TypeNotPresentException | NoClassDefFoundError t) {
/*
* Loading generic interfaces can fail due to missing types. Ignore the exception and
* return an empty array.
Expand All @@ -313,7 +313,7 @@ private void fillGenericInfo(AnalysisType type, DynamicHub hub) {
Type genericSuperClass;
try {
genericSuperClass = javaClass.getGenericSuperclass();
} catch (MalformedParameterizedTypeException | TypeNotPresentException t) {
} catch (MalformedParameterizedTypeException | TypeNotPresentException | NoClassDefFoundError t) {
/*
* Loading the generic super class can fail due to missing types. Ignore the exception
* and return null.
Expand All @@ -332,7 +332,7 @@ private void fillAnnotatedSuperInfo(AnalysisType type, DynamicHub hub) {
AnnotatedType annotatedSuperclass;
try {
annotatedSuperclass = javaClass.getAnnotatedSuperclass();
} catch (MalformedParameterizedTypeException | TypeNotPresentException t) {
} catch (MalformedParameterizedTypeException | TypeNotPresentException | NoClassDefFoundError t) {
/*
* Loading the annotated super class can fail due to missing types. Ignore the exception
* and return null.
Expand All @@ -346,7 +346,7 @@ private void fillAnnotatedSuperInfo(AnalysisType type, DynamicHub hub) {
AnnotatedType[] allAnnotatedInterfaces;
try {
allAnnotatedInterfaces = javaClass.getAnnotatedInterfaces();
} catch (MalformedParameterizedTypeException | TypeNotPresentException t) {
} catch (MalformedParameterizedTypeException | TypeNotPresentException | NoClassDefFoundError t) {
/*
* Loading annotated interfaces can fail due to missing types. Ignore the exception and
* return an empty array.
Expand Down

0 comments on commit f64799e

Please sign in to comment.