@@ -271,7 +271,6 @@ void Run (DirectoryAssemblyResolver res, bool useMarshalMethods)
271
271
272
272
using ( var acw_map = MemoryStreamPool . Shared . CreateStreamWriter ( ) ) {
273
273
foreach ( TypeDefinition type in javaTypes ) {
274
- string mvid = type . Module . Mvid . ToString ( ) ;
275
274
string managedKey = type . FullName . Replace ( '/' , '.' ) ;
276
275
string javaKey = JavaNativeTypeManager . ToJniName ( type , cache ) . Replace ( '/' , '.' ) ;
277
276
@@ -283,15 +282,15 @@ void Run (DirectoryAssemblyResolver res, bool useMarshalMethods)
283
282
TypeDefinition conflict ;
284
283
bool hasConflict = false ;
285
284
if ( managed . TryGetValue ( managedKey , out conflict ) ) {
286
- if ( ! conflict . Module . Mvid . Equals ( mvid ) ) {
285
+ if ( ! conflict . Module . Mvid . Equals ( type . Module . Mvid ) ) {
287
286
if ( ! managedConflicts . TryGetValue ( managedKey , out var list ) )
288
287
managedConflicts . Add ( managedKey , list = new List < string > { conflict . GetPartialAssemblyName ( cache ) } ) ;
289
288
list . Add ( type . GetPartialAssemblyName ( cache ) ) ;
290
289
}
291
290
hasConflict = true ;
292
291
}
293
292
if ( java . TryGetValue ( javaKey , out conflict ) ) {
294
- if ( ! conflict . Module . Mvid . Equals ( mvid ) ) {
293
+ if ( ! conflict . Module . Mvid . Equals ( type . Module . Mvid ) ) {
295
294
if ( ! javaConflicts . TryGetValue ( javaKey , out var list ) )
296
295
javaConflicts . Add ( javaKey , list = new List < string > { conflict . GetAssemblyQualifiedName ( cache ) } ) ;
297
296
list . Add ( type . GetAssemblyQualifiedName ( cache ) ) ;
0 commit comments