mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-04 05:47:17 +08:00

For some reason, we are using experimental features of abapGit.
Some time ago, all class were re-serialized with the serializer
LCL_OBJECT_CLASS_NEW.
After upgrade to 1.60, we started getting an error telling that CLAS
is not supported.
The CLASS NEW serializer became standard and the class has been renamed.
Unfortunately, our xml files still includes reference to the CLASS NEW.
I would just use a sed script, if knew all the affected repositories -
we have plenty of repositories versioned by abapGit.
This patch revives the CLASS NEW. It reports itself as the standard
class, so the CLASS NEW can be removed in year or two when all files
are re-serialized.
See commit 21d22d93f2
24 lines
816 B
ABAP
24 lines
816 B
ABAP
"! This class is just a different name for zcl_zabapgit_object_clas.
|
|
"! It has been created to heal repositories of the brave ones who uses abapGit
|
|
"! experimental features "! and had the luck to serialize their CLAS objects with
|
|
"! the serializer LCL_OBJECT_CLAS_NEW.
|
|
"! It can be removed on 2019-04 where we expect all CLAS object being
|
|
"! re-serialized with the serializer LCL_OBJECT_CLAS.
|
|
"! References: https://github.com/larshp/abapGit/pull/1311
|
|
CLASS zcl_abapgit_object_clas_new DEFINITION PUBLIC INHERITING FROM zcl_abapgit_object_clas.
|
|
|
|
PROTECTED SECTION.
|
|
METHODS:
|
|
get_metadata REDEFINITION.
|
|
|
|
ENDCLASS.
|
|
|
|
CLASS zcl_abapgit_object_clas_new IMPLEMENTATION.
|
|
|
|
METHOD get_metadata.
|
|
rs_metadata = super->get_metadata( ).
|
|
rs_metadata-class = 'ZCL_ABAPGIT_OBJECT_CLAS'.
|
|
ENDMETHOD.
|
|
|
|
ENDCLASS.
|