Try to fix "enum struct" wrapping for Java

This commit is contained in:
Dmitry Kurtaev
2018-12-18 17:39:31 +03:00
parent e058febaad
commit 6fbcb283b9
5 changed files with 37 additions and 4 deletions
+5 -2
View File
@@ -427,9 +427,12 @@ class JavaWrapperGenerator(object):
constinfo = ConstInfo(decl, namespaces=self.namespaces, enumType=enumType)
if constinfo.isIgnored():
logging.info('ignored: %s', constinfo)
elif not self.isWrapped(constinfo.classname):
logging.info('class not found: %s', constinfo)
else:
if not self.isWrapped(constinfo.classname):
logging.info('class not found: %s', constinfo)
constinfo.name = constinfo.classname + '_' + constinfo.name
constinfo.classname = ''
ci = self.getClass(constinfo.classname)
duplicate = ci.getConst(constinfo.name)
if duplicate: