summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/JavaUtil.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2011-12-07 16:00:11 +0100
committerJose <jose@zeroc.com>2011-12-07 16:00:11 +0100
commit0131521de6efb956c716dfe2b8d635ff3ad8e261 (patch)
treea4ad0533eb07579a18261b09e8742e39d983928c /cpp/src/Slice/JavaUtil.cpp
parentICE-4594 Patch for local exception and C++ ice_print (diff)
downloadice-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.cpp6
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&)
{