diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2022-03-12 22:39:20 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2022-03-12 23:04:24 +0000 |
commit | 63bbf642f429e7c93eadd56df213e2362c4f5083 (patch) | |
tree | c2b92c2cbbdf1903edc63057dcb22061d6dd23b2 | |
parent | a87e722834312ba48acfdfedbe0a317a1124b239 (diff) | |
download | swig-63bbf642f429e7c93eadd56df213e2362c4f5083.tar.gz |
%interface family of macros enum fix for Java
enums were being generated into the interface class instead of the proxy
class.
-rw-r--r-- | Source/Modules/java.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Modules/java.cxx b/Source/Modules/java.cxx index 20628e512..7819e0468 100644 --- a/Source/Modules/java.cxx +++ b/Source/Modules/java.cxx @@ -1332,10 +1332,7 @@ public: // Add extra indentation Replaceall(enum_code, "\n", "\n "); Replaceall(enum_code, " \n", "\n"); - if (GetFlag(getCurrentClass(), "feature:interface")) - Printv(interface_class_code, " ", enum_code, "\n\n", NIL); - else - Printv(proxy_class_constants_code, " ", enum_code, "\n\n", NIL); + Printv(proxy_class_constants_code, " ", enum_code, "\n\n", NIL); } else { // Global enums are defined in their own file String *output_directory = outputDirectory(nspace); |