diff options
author | jfrijters <jfrijters> | 2013-07-31 00:15:48 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2013-07-31 00:15:48 +0400 |
commit | a9edb3e3e1c9bd8e03a5a6294419600ee358810b (patch) | |
tree | 2ed5b87aca9e7041643eabd27d283f4512eb94f8 | |
parent | b11139608da31dac40b7927399defa6f4189cd7f (diff) |
Tiny clean up.
-rw-r--r-- | runtime/DynamicTypeWrapper.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/DynamicTypeWrapper.cs b/runtime/DynamicTypeWrapper.cs index c8b3f6b1..a6d26377 100644 --- a/runtime/DynamicTypeWrapper.cs +++ b/runtime/DynamicTypeWrapper.cs @@ -822,13 +822,12 @@ namespace IKVM.Internal AddImplementsAttribute(); if (outer != null) { - Modifiers innerClassModifiers = outerClass.accessFlags; - string innerClassName = classFile.GetConstantPoolClass(outerClass.innerClass); - if (innerClassName == classFile.Name && innerClassName == outerClassWrapper.Name + "$" + typeBuilder.Name) + string innerClassName = classFile.Name; + if (innerClassName == outerClassWrapper.Name + "$" + typeBuilder.Name) { innerClassName = null; } - AttributeHelper.SetInnerClass(typeBuilder, innerClassName, innerClassModifiers); + AttributeHelper.SetInnerClass(typeBuilder, innerClassName, outerClass.accessFlags); } else if (outerClass.innerClass != 0) { |