mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-14 05:12:33 +00:00
Estimated hours taken: 4 Branches: main Bug fixes and code simplifications in the RTTI handling for the Java back-end. compiler/rtti.m: For Java, map all the different C representations for TypeInfos to a single Java type "java.runtime.TypeInfo_Struct". Likewise map all the different C representations for type class constraints to a single Java type "java.runtime.TypeInfo_Struct". java/runtime/FA_PseudoTypeInfo_Struct1.java: java/runtime/FA_PseudoTypeInfo_Struct2.java: java/runtime/FA_TypeInfo_Struct1.java: java/runtime/FA_TypeInfo_Struct2.java: java/runtime/VA_PseudoTypeInfo_Struct0.java: java/runtime/VA_PseudoTypeInfo_Struct1.java: java/runtime/VA_PseudoTypeInfo_Struct2.java: java/runtime/VA_PseudoTypeInfo_Struct3.java: java/runtime/VA_PseudoTypeInfo_Struct4.java: java/runtime/VA_PseudoTypeInfo_Struct8.java: java/runtime/TypeclassInfo.java: Deleted these stub files, since they should no longer be needed. java/runtime/TypeInfo_Struct.java: Add two new constructors, corresponding to the constructors for the deleted FA_* and VA_*.java files. java/runtime/PseudoTypeInfo.java: Add some comments. Make the nullary constructor protected, to ensure that it is only used by derived classes, since it is only intended to be used for TypeInfo_Struct.