diff options
author | Michi Henning <michi@zeroc.com> | 2004-09-08 07:04:46 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-09-08 07:04:46 +0000 |
commit | 9e6efaee34e0d7836812ca70eb30c9cd5561b71c (patch) | |
tree | 2962a98bd650d202d3e2583a9d8a36e4791a661c /cpp/src/Slice/JavaUtil.cpp | |
parent | Eliminated duplicate warning for class and interface definitions at global (diff) | |
download | ice-9e6efaee34e0d7836812ca70eb30c9cd5561b71c.tar.bz2 ice-9e6efaee34e0d7836812ca70eb30c9cd5561b71c.tar.xz ice-9e6efaee34e0d7836812ca70eb30c9cd5561b71c.zip |
Fixed a whole pile of code generation bugs:
- Lots of problems when Java keywords were used as Slice identifiers.
- Incorrect code generation if a base interface had an "amd" or "ami"
metadata directive, but the derived class did not have it.
- Incorrect code generation for implementation stubs for some "amd"
constructs.
Diffstat (limited to 'cpp/src/Slice/JavaUtil.cpp')
-rw-r--r-- | cpp/src/Slice/JavaUtil.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Slice/JavaUtil.cpp b/cpp/src/Slice/JavaUtil.cpp index 97d467f1122..26f12c5ffa3 100644 --- a/cpp/src/Slice/JavaUtil.cpp +++ b/cpp/src/Slice/JavaUtil.cpp @@ -364,7 +364,11 @@ Slice::JavaGenerator::getAbsolute(const ContainedPtr& cont, const string& prefix, const string& suffix) const { - string name = fixKwd(cont->name()); + string name = cont->name(); + if(prefix == "" && suffix == "") + { + name = fixKwd(name); + } string contPkg = getPackage(cont); if(contPkg == package) { |