summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/JavaUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/JavaUtil.cpp')
-rw-r--r--cpp/src/Slice/JavaUtil.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Slice/JavaUtil.cpp b/cpp/src/Slice/JavaUtil.cpp
index 1c0586e3344..9c764ffe322 100644
--- a/cpp/src/Slice/JavaUtil.cpp
+++ b/cpp/src/Slice/JavaUtil.cpp
@@ -187,7 +187,7 @@ Slice::JavaGenerator::~JavaGenerator()
}
void
-Slice::JavaGenerator::open(const string& absolute)
+Slice::JavaGenerator::open(const string& absolute, const string& file)
{
assert(_out == 0);
@@ -195,6 +195,7 @@ Slice::JavaGenerator::open(const string& absolute)
try
{
out->openClass(absolute, _dir);
+ printGeneratedHeader(*out, file);
}
catch(const FileException&)
{