commit | 4580c9d2a851dede392fdcd7889398899fd3cccc | [log] [tgz] |
---|---|---|
author | Martin Veith <veithm@apache.org> | Fri May 15 15:00:34 2015 +0000 |
committer | Martin Veith <veithm@apache.org> | Fri May 15 15:00:34 2015 +0000 |
tree | 9260fc0d1a49f39150debde986cbd3ddccccb1de | |
parent | 799a1efdc0b199973b5a774b9174076746c349aa [diff] |
Reset Class2Type and Type map on runtime shutdown When the runtime gets closed also the static type maps should be cleaned in order to allow a second life cycle within one process. Change-Id: I9bb4ecea07506743608eb2133a7ed207376ec643 git-svn-id: https://svn.apache.org/repos/asf/etch/trunk@1679580 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm b/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm index dc2cc06..faffbb0 100644 --- a/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm +++ b/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm
@@ -45,6 +45,8 @@ if (runtime->isClosed()) { //the runtime is closed and is removed $vf::SRuntimes.remove(runtime->getId()); + $vf::class2type()->reset(); + $vf::types()->reset(); } return ETCH_OK; }