jc
01/30/2025, 8:50 PMcoldbox/system/code/events/EventPool.cfc below is a little snippet of code to reproduce. Does any one have any insight as to why this might be happening as a LinkedHashMap does have the remove function.
var data = {};
var pool = createObject( "java", "java.util.Collections" ).synchronizedMap(
createObject( "java", "java.util.LinkedHashMap" ).init( 5 )
);
// add values
data.test = {"name":"Giancarlo"};
pool.put( "test", data.test );
dump( data );
dump( pool );
// does not error
data.remove( "test" );
// errors
pool.remove( "test" );
dump( data );
dump( pool );jc
01/30/2025, 8:50 PMjc
01/30/2025, 8:51 PMjc
01/30/2025, 8:57 PMjc
01/30/2025, 8:57 PMjc
01/30/2025, 9:16 PMjc
01/30/2025, 9:47 PM