diff options
author | Jose <jose@zeroc.com> | 2011-12-07 16:00:11 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2011-12-07 16:00:11 +0100 |
commit | 0131521de6efb956c716dfe2b8d635ff3ad8e261 (patch) | |
tree | a4ad0533eb07579a18261b09e8742e39d983928c /cpp/src/Slice/JavaUtil.cpp | |
parent | ICE-4594 Patch for local exception and C++ ice_print (diff) | |
download | ice-0131521de6efb956c716dfe2b8d635ff3ad8e261.tar.bz2 ice-0131521de6efb956c716dfe2b8d635ff3ad8e261.tar.xz ice-0131521de6efb956c716dfe2b8d635ff3ad8e261.zip |
ICE-4748: Incorrect file name in auto-generated slice2java header comments
Diffstat (limited to 'cpp/src/Slice/JavaUtil.cpp')
-rw-r--r-- | cpp/src/Slice/JavaUtil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Slice/JavaUtil.cpp b/cpp/src/Slice/JavaUtil.cpp index 8d7ab74f49b..e124b33292d 100644 --- a/cpp/src/Slice/JavaUtil.cpp +++ b/cpp/src/Slice/JavaUtil.cpp @@ -46,7 +46,7 @@ Slice::JavaOutput::JavaOutput(const char* s) : } void -Slice::JavaOutput::openClass(const string& cls, const string& prefix) +Slice::JavaOutput::openClass(const string& cls, const string& prefix, const string& sliceFile) { string package; string file; @@ -130,7 +130,7 @@ Slice::JavaOutput::openClass(const string& cls, const string& prefix) { FileTracker::instance()->addFile(path); printHeader(); - printGeneratedHeader(*this, file); + printGeneratedHeader(*this, sliceFile); if(!package.empty()) { separator(); @@ -196,7 +196,7 @@ Slice::JavaGenerator::open(const string& absolute, const string& file) JavaOutput* out = createOutput(); try { - out->openClass(absolute, _dir); + out->openClass(absolute, _dir, file); } catch(const FileException&) { |