Entity supertype behavior changes

PolicyCenter changed how Gosu handles supertypes in the entity type information property Supertype. This is the property accessed with an entity type such as Address.Type.Supertype or with an entity instance as myObj.IntrinsicType.Supertype.

In version 8.0:

  • If an entity has a supertype, the Supertype property is the supertype entity as type gw.entity.IEntityType.
  • If an entity has no supertype, the Supertype property is null.

In version 9.0:

  • If an entity has a supertype, the Supertype property is the supertype entity as type gw.lang.reflect.IType.
  • If an entity has no supertype, the Supertype property is java.lang.Object.

If you want the version 8.0 behavior, change your code to use the new property Supertype_Entity instead of Supertype. This new property is intended only for upgrading existing code. Do not use it for new code.