Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Java ClassMate project: licensed under Apache License 2.0

Release notes:

1.7.3 (02-Jan-2026)

#117: Regression in 1.7.2 (wrt #53) causes `StackOverflowError` for some recursive types
(reported by Marcin E)

1.7.2 (27-Dec-2025)

#53: Allow for subtype resolution with unknown generics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,21 @@ public StringBuilder appendFullDescription(StringBuilder sb)
/* Other overrides
/**********************************************************************
*/

@Override public boolean equals(Object o)

// 02-Jan-2026: [classmate#117]: Do NOT compare _referencedType to avoid infinite
// recursion: super.equals() already compares class type, erased type, and type
// bindings, which is sufficient for determining equality of recursive types.
// Comparing _referencedType causes StackOverflowError when comparing types
// from different TypeResolver instances.
/*
@Override
public boolean equals(Object o)
{
if (!super.equals(o)) {
return false;
}
// not sure if we should match at all, but definitely need this
// additional part if we do:
ResolvedRecursiveType other = (ResolvedRecursiveType) o;
if (_referencedType == null) {
return other._referencedType == null;
}
return _referencedType.equals(other._referencedType);
return super.equals(o);
}
*/

// Only for compliance purposes: lgtm.com complains if only equals overridden
@Override public int hashCode() {
return super.hashCode();
}
// 02-Jan-2026, tatu: No longer, base impl is fine
// @Override public int hashCode() { return super.hashCode(); }
}
Loading