Skip to content

Commit

Permalink
#302 through ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 11, 2022
1 parent 6a37867 commit 6d82607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jcabi/aspects/aj/SingleException.java
Expand Up @@ -84,7 +84,7 @@ public Object wrap(final ProceedingJoinPoint point) throws Throwable {
throwable = clz.getConstructor(Throwable.class)
.newInstance(ex);
} else {
throwable = clz.newInstance();
throwable = clz.getConstructor().newInstance();
}
}
throw throwable;
Expand Down

0 comments on commit 6d82607

Please sign in to comment.