Blog

Luis Majano

October 15, 2008

Spread the word


Share your thoughts

I am now debugging ColdBox for BlueDragon 7 and came upon an interesting bug that I cannot find a solution for. I am trying to get an iterator out of a linkedHashMap and BD keeps throwing me a Method hasNext could not be legally accessed. Has anybody experienced this? If so, please help. Below is the current simple code: //Create HashMap LinkedHashMap = CreateObject("java","java.util.LinkedHashMap").init(3); Collections = createObject("java", "java.util.Collections"); //synch it LinkedHashMap = Collections.synchronizedMap(LinkedHashMap); //put some elements LinkedHashMap.put("name","luis"); LinkedHashMap.put("date",now()); //Iterate iterator = LinkedHashMap.keySet().iterator(); key = ""; /* Loop and execute each interceptor as registered in order */ while( iterator.hasNext() ){ key = iterator.next(); writeoutput(key & "
"); }

Add Your Comment

Recent Entries

Are you attending Adobe CFSummit 2024?

Are you attending Adobe CFSummit 2024?

If you are attending the Adobe ColdFusion Summit 2024, this is what you need to know: As always, Ortus Solutions will be sponsoring this years event as Silver Sponsors, we are excited to meet all the new attendees and old friends of the community of Coldfusion developers

Maria Jose Herrera
Maria Jose Herrera
September 10, 2024
New BoxLang Feature: Functional binding to member methods

New BoxLang Feature: Functional binding to member methods

We’re excited to unveil a new feature that makes method referencing in BoxLang even smoother. Building on our recent update introducing functional static binding to built-in functions, we're now bringing the same ease to member methods.

Maria Jose Herrera
Maria Jose Herrera
September 09, 2024