Fix ConcurentModificationException

This commit is contained in:
Volker Berlin 2022-07-18 20:20:53 +02:00
parent a32b3af059
commit bf7518e5d4
No known key found for this signature in database
GPG Key ID: 988423EF815BE4CB

View File

@ -223,7 +223,7 @@ public class TypeManager {
* if any I/O error occur on loading or writing
*/
void scanTypeHierarchy() throws IOException {
for( StructType type : structTypes.values() ) {
for( StructType type : new ArrayList<>( structTypes.values() ) ) {
type.scanTypeHierarchy( options.functions, this, classFileLoader );
}
}