Fix nested structure/union name handling.
Local names must be assigned before processing the body.
Change-Id: I9c3e3d4b7575c612148aea89bbd424e59e3c0604
diff --git a/Interface.cpp b/Interface.cpp
index 52c1963..e48fc7c 100644
--- a/Interface.cpp
+++ b/Interface.cpp
@@ -6,8 +6,10 @@
namespace android {
-Interface::Interface(Interface *super, AnnotationVector *annotations)
- : mSuperType(super),
+Interface::Interface(
+ const char *localName, Interface *super, AnnotationVector *annotations)
+ : Scope(localName),
+ mSuperType(super),
mAnnotationsByName(annotations),
mIsJavaCompatibleInProgress(false) {
}