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 & "
");
}
Blog
Recent Entries
MatchBox Brings BoxLang to ESP32 Microcontrollers 🦀
One of the most unusual parts of MatchBox is the ESP32 target.
The MatchBox open beta is available at https://github.com/ortus-boxlang/matchbox, and it can compile BoxLang scripts into bytecode and deploy them to ESP32 microcontrollers. That means the same language used for scripts, native tools, web services, and browser logic can also run on a small embedded device.
BoxLang AWS, Azure, and Google Secrets Manager Module Released
Every production application carries secrets: database passwords, API tokens, encryption keys. The question is never whether to manage them -- it's how badly the current approach is going to hurt you.
BoxLang 1.14.0 : BoxLang Ranges Part 2: Teach BoxLang Your Types with `IRangeable`
In Part 1, we covered BoxLang's first-class range system: lazy evaluation, exclusive boundaries, built-in types (integers, decimals, characters, dates), custom stepping, Java Stream integration, and contains() semantics. If you haven't read it yet, start there.
Add Your Comment