JADE Environment Development Ideas

What's new in the upcoming JADE release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED SECURITY. SMOOTHER INTEGRATION

The JADE 2022 release meets tomorrow’s business demands.


Start your update to JADE's latest release

Be able to identify if a class has sub-schema copies and to show/go to these sub-schemas

A class defined in a super-schema may no longer be used but is unable to be removed because it has methods or constants declared in one or more sub-schemas.

I don't know of anyway to identify which schemas where this class has sub-schema copies.

The only way seems to be to go into each sub-schema and inspect the class.

  • Martin Jagers
  • Jan 6 2022
  • Ready for Release
  • Attach files
  • BeeJay commented
    January 11, 2022 21:39

    Nice idea. I've encountered this situation a few times myself, and used a script similar to the following to find the schemas which have subschema copies of the class of interest:

    findSubSchemaCopyClass() protected;

    constants
    TheClassName : String = "YourClassNameHere";

    vars
    cls : Class;

    begin
    foreach cls in Class.instances where cls.name = TheClassName do
    if cls.superschemaType = null then
    // This is the actual class definition in some super schema, so ignore this one
    continue;
    endif;

    write "Found subschema copy of '" & TheClassName & "' in schema: " & cls.schema.name;
    endforeach;
    end;