You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code generation to java gives ambiguous reference to Record #778
Code-generation of a VDM-SL spec with Records to Java gives the following error: Reference to Record is ambiguous [ERROR] both interface org.overture.codegen.runtime.Record in org.overture.codegen.runtime and class java.lang.Record in java.lang match
as of JDK 14, Record has become part of Java.Lang. This means, that it is default imported.
So import org.overture.codegen.runtime.*; indeed brings in Record, but it does not override the Java.Lang.Record. And therefore becomes ambiguous. As I understand it, importing record explicitly should solve it.
I.e. replace import org.overture.codegen.runtime.*; with import org.overture.codegen.runtime.Record
Activity