Skip to content

Commit

Permalink
Fixed Class.forName() call in the Ecore generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Feb 27, 2024
1 parent 0a7d2ed commit de799b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
*/]
[template public generateConstructor(dataType : ecore::EDataType)]
[protected ('constructor_' + dataType.name) startTagPrefix('# ') endTagPrefix('# ')]
java_class = Class.forName("[dataType.instanceTypeName/]")
java_class = java.lang.Class.forName("[dataType.instanceTypeName/]")
def __init__(self, java_object = None):
if java_object is None:
instance = [dataType.instanceTypeName/]()
Expand Down

0 comments on commit de799b4

Please sign in to comment.