[Glass] Class Migration

Trussardi Dario Romano via Glass glass at lists.gemtalksystems.com
Thu Feb 4 03:25:33 PST 2016


Ciao,

	thanks Otto for your work.

	It's very interesting.

	Now i have a question:

		I defined the class 	Animal 		and the subClass		AnimalPlus
	
		I have some 		Animal class version  ( 585 the current ) ( 897 & 209 old version )		with relative	 Metaclasses	    

		and AnimalPlus ( 769 ) 	 class define 	the:

			classNamesToRenameFrom

				^ #( Animal )


		When i do the :
	
				 Migrator new packageNames: #(  'DTRMigrateTesting' ); migrateAll   

		the log report:

			Warning replacing migration to Animal ( 585)  in preference of renaming from Animal (897) to AnimalPlus (769)

			Warning replacing migration to Animal ( 585)  in preference of renaming from Animal (209) to AnimalPlus (769)

	
		I think to solve this warning removing the old Animal class version ( 897 ) and ( 209 ) and the relative metaclasses 

		but when i do the relative   Animal ( 897) removeFromSystem		i get false.


		Any considerations ?


		Another relative question:

			because when do:   	removeAndCleanUpEmptyInstances

			you remove		 self removeAllMethodsOfInvisibleClass: fromClass. 

			but don't remove the old class and relative metaclass ?

		Thanks,

			Dario






More information about the Glass mailing list