Skip to content

Commit 7f95467

Browse files
soezenVanRoy
authored andcommitted
Update PositionWithChanges.java
1 parent 50c54be commit 7f95467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/assertj/db/navigation/PositionWithChanges.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public E getChangesInstance(Changes changes, ChangeType changeType, String table
125125
}
126126

127127
try {
128-
Class clazz = Class.forName(myself.getClass().getName().replaceAll("\\$.*", ""));
128+
Class clazz = unProxy(myself.getClass());
129129
Constructor<E> constructor = actualElementClass.getDeclaredConstructor(clazz, Changes.class);
130130
instance = constructor.newInstance(myself, nextChanges);
131131
instance.as(getChangesDescription(changeType, tableName));

0 commit comments

Comments
 (0)