Skip to content

FML: HashMap causes error in OpenFlexo editor #28

@enmanokatana

Description

@enmanokatana

Summary

When importing and using HashMap in FML within the OpenFlexo editor, an error is thrown.

Steps to Reproduce

Open an FML file in the OpenFlexo editor
Add an import statement for HashMap (import java.util.HashMap;)
Attempt to use HashMap in the code
Error is thrown

Environment

Version: 2.99
Operating System:Windows 10
Java version: 8

Error in logs

Thread[AWT-EventQueue-0,6,main] WARNING 25/11/25 14:01:29,867 Unexpected notice at line:-1 Line -1: Unexpected exception : 1 [org.openflexo.fml.controller.widget.fmleditor.FMLEditorParser.updateEditorGutter]

Code Sample

import java.util.HashMap;

@URI("http://www.openflexo.org/projects/2025/11/Modelcheckingcomp_1763632671263.prj/TestGraphModel.fml")
@Author("hayaoumo")
public model TestGraphModel {
   Map<Object,Object> map = new HashMap<>();
}

Metadata

Metadata

Labels

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions