@@ -142,7 +142,7 @@ public bool Generate (bool debugBuild, bool skipJniAddNativeMethodRegistrationAt
142142				return  GenerateDebug  ( skipJniAddNativeMethodRegistrationAttributeScan ,  javaTypes ,  cache ,  typemapsOutputDirectory ,  generateNativeAssembly ,  appConfState ) ; 
143143			} 
144144
145- 			return  GenerateRelease  ( skipJniAddNativeMethodRegistrationAttributeScan ,  javaTypes ,  typemapsOutputDirectory ,  appConfState ) ; 
145+ 			return  GenerateRelease  ( skipJniAddNativeMethodRegistrationAttributeScan ,  javaTypes ,  cache ,   typemapsOutputDirectory ,  appConfState ) ; 
146146		} 
147147
148148		bool  GenerateDebug  ( bool  skipJniAddNativeMethodRegistrationAttributeScan ,  List < TypeDefinition >  javaTypes ,  TypeDefinitionCache  cache ,  string  outputDirectory ,  bool  generateNativeAssembly ,  ApplicationConfigTaskState  appConfState ) 
@@ -186,7 +186,7 @@ bool GenerateDebugFiles (bool skipJniAddNativeMethodRegistrationAttributeScan, L
186186					modules . Add  ( moduleName ,  module ) ; 
187187				} 
188188
189- 				TypeMapDebugEntry  entry  =  GetDebugEntry  ( td ) ; 
189+ 				TypeMapDebugEntry  entry  =  GetDebugEntry  ( td ,   cache ) ; 
190190				HandleDebugDuplicates  ( javaDuplicates ,  entry ,  td ,  cache ) ; 
191191				if  ( entry . JavaName . Length  >  module . JavaNameWidth ) 
192192					module . JavaNameWidth  =  ( uint ) entry . JavaName . Length  +  1 ; 
@@ -227,7 +227,7 @@ bool GenerateDebugNativeAssembly (bool skipJniAddNativeMethodRegistrationAttribu
227227			foreach  ( TypeDefinition  td  in  javaTypes )  { 
228228				UpdateApplicationConfig  ( td ,  appConfState ) ; 
229229
230- 				TypeMapDebugEntry  entry  =  GetDebugEntry  ( td ) ; 
230+ 				TypeMapDebugEntry  entry  =  GetDebugEntry  ( td ,   cache ) ; 
231231				HandleDebugDuplicates  ( javaDuplicates ,  entry ,  td ,  cache ) ; 
232232
233233				javaToManaged . Add  ( entry ) ; 
@@ -300,10 +300,10 @@ void PrepareDebugMaps (ModuleDebugData module)
300300			} 
301301		} 
302302
303- 		TypeMapDebugEntry  GetDebugEntry  ( TypeDefinition  td ) 
303+ 		TypeMapDebugEntry  GetDebugEntry  ( TypeDefinition  td ,   TypeDefinitionCache   cache ) 
304304		{ 
305305			return  new  TypeMapDebugEntry  { 
306- 				JavaName  =  Java . Interop . Tools . TypeNameMappings . JavaNativeTypeManager . ToJniName  ( td ) , 
306+ 				JavaName  =  Java . Interop . Tools . TypeNameMappings . JavaNativeTypeManager . ToJniName  ( td ,   cache ) , 
307307				ManagedName  =  GetManagedTypeName  ( td ) , 
308308				TypeDefinition  =  td , 
309309				SkipInJavaToManaged  =  ShouldSkipInJavaToManaged  ( td ) , 
@@ -330,7 +330,7 @@ string GetManagedTypeName (TypeDefinition td)
330330			return  $ "{ managedTypeName } , { td . Module . Assembly . Name . Name } "; 
331331		} 
332332
333- 		bool  GenerateRelease  ( bool  skipJniAddNativeMethodRegistrationAttributeScan ,  List < TypeDefinition >  javaTypes ,  string  outputDirectory ,  ApplicationConfigTaskState  appConfState ) 
333+ 		bool  GenerateRelease  ( bool  skipJniAddNativeMethodRegistrationAttributeScan ,  List < TypeDefinition >  javaTypes ,  TypeDefinitionCache   cache ,   string  outputDirectory ,  ApplicationConfigTaskState  appConfState ) 
334334		{ 
335335			int  assemblyId  =  0 ; 
336336			var  knownAssemblies  =  new  Dictionary < string ,  int >  ( StringComparer . Ordinal ) ; 
@@ -373,7 +373,7 @@ bool GenerateRelease (bool skipJniAddNativeMethodRegistrationAttributeScan, List
373373					tempModules . Add  ( moduleUUID ,  moduleData ) ; 
374374				} 
375375
376- 				string  javaName  =  Java . Interop . Tools . TypeNameMappings . JavaNativeTypeManager . ToJniName  ( td ) ; 
376+ 				string  javaName  =  Java . Interop . Tools . TypeNameMappings . JavaNativeTypeManager . ToJniName  ( td ,   cache ) ; 
377377				// We will ignore generic types and interfaces when generating the Java to Managed map, but we must not 
378378				// omit them from the table we output - we need the same number of entries in both java-to-managed and 
379379				// managed-to-java tables.  `SkipInJavaToManaged` set to `true` will cause the native assembly generator 
0 commit comments