summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-08-31 04:36:28 +0000
committerMichi Henning <michi@zeroc.com>2004-08-31 04:36:28 +0000
commitb48723e3d4ba8b7d3626c052ff398697731370a2 (patch)
treec038aa8cea773a7ae45dc511ea5548730801884b /cpp
parentinitial check-in (diff)
downloadice-b48723e3d4ba8b7d3626c052ff398697731370a2.tar.bz2
ice-b48723e3d4ba8b7d3626c052ff398697731370a2.tar.xz
ice-b48723e3d4ba8b7d3626c052ff398697731370a2.zip
Deprecation of global Slice definitions.
Diffstat (limited to 'cpp')
-rw-r--r--cpp/CHANGES15
-rw-r--r--cpp/demo/Freeze/bench/Client.cpp2
-rw-r--r--cpp/demo/Freeze/bench/Makefile6
-rw-r--r--cpp/demo/Freeze/bench/Test.ice5
-rw-r--r--cpp/demo/Freeze/library/Library.ice5
-rw-r--r--cpp/demo/Freeze/library/LibraryI.cpp1
-rw-r--r--cpp/demo/Freeze/library/LibraryI.h14
-rw-r--r--cpp/demo/Freeze/library/Parser.cpp1
-rw-r--r--cpp/demo/Freeze/library/Parser.h10
-rw-r--r--cpp/demo/Freeze/library/RunParser.cpp1
-rw-r--r--cpp/demo/Freeze/phonebook/Makefile2
-rw-r--r--cpp/demo/Freeze/phonebook/Parser.cpp1
-rw-r--r--cpp/demo/Freeze/phonebook/Parser.h10
-rw-r--r--cpp/demo/Freeze/phonebook/PhoneBook.ice5
-rw-r--r--cpp/demo/Freeze/phonebook/PhoneBookI.cpp1
-rw-r--r--cpp/demo/Freeze/phonebook/PhoneBookI.h8
-rw-r--r--cpp/demo/Freeze/phonebook/RunParser.cpp1
-rw-r--r--cpp/demo/Glacier/session/Client.cpp1
-rw-r--r--cpp/demo/Glacier/session/HelloSession.ice5
-rw-r--r--cpp/demo/Glacier/session/HelloSessionI.h2
-rw-r--r--cpp/demo/Glacier2/callback/Callback.ice5
-rw-r--r--cpp/demo/Glacier2/callback/CallbackI.cpp1
-rw-r--r--cpp/demo/Glacier2/callback/CallbackI.h6
-rw-r--r--cpp/demo/Glacier2/callback/Client.cpp1
-rw-r--r--cpp/demo/Glacier2/callback/Server.cpp1
-rw-r--r--cpp/demo/Ice/callback/Callback.ice5
-rw-r--r--cpp/demo/Ice/callback/CallbackI.cpp1
-rw-r--r--cpp/demo/Ice/callback/CallbackI.h6
-rw-r--r--cpp/demo/Ice/callback/Client.cpp1
-rw-r--r--cpp/demo/Ice/callback/Server.cpp1
-rw-r--r--cpp/demo/Ice/hello/Client.cpp1
-rw-r--r--cpp/demo/Ice/hello/Hello.ice5
-rw-r--r--cpp/demo/Ice/hello/HelloI.h2
-rw-r--r--cpp/demo/Ice/latency/Client.cpp1
-rw-r--r--cpp/demo/Ice/latency/Latency.ice5
-rw-r--r--cpp/demo/Ice/latency/Server.cpp1
-rw-r--r--cpp/demo/Ice/nested/Client.cpp1
-rw-r--r--cpp/demo/Ice/nested/Nested.ice5
-rw-r--r--cpp/demo/Ice/nested/NestedI.cpp1
-rw-r--r--cpp/demo/Ice/nested/NestedI.h8
-rw-r--r--cpp/demo/Ice/nested/Server.cpp1
-rw-r--r--cpp/demo/Ice/throughput/Client.cpp1
-rw-r--r--cpp/demo/Ice/throughput/Throughput.ice5
-rw-r--r--cpp/demo/Ice/throughput/ThroughputI.h14
-rw-r--r--cpp/demo/Ice/value/Client.cpp1
-rw-r--r--cpp/demo/Ice/value/Value.ice5
-rw-r--r--cpp/demo/Ice/value/ValueI.cpp1
-rw-r--r--cpp/demo/Ice/value/ValueI.h20
-rw-r--r--cpp/demo/IceBox/hello/Client.cpp1
-rw-r--r--cpp/demo/IceBox/hello/Hello.ice5
-rw-r--r--cpp/demo/IceBox/hello/HelloI.h2
-rw-r--r--cpp/demo/IcePack/hello/Client.cpp1
-rw-r--r--cpp/demo/IcePack/hello/Hello.ice5
-rw-r--r--cpp/demo/IcePack/hello/HelloI.cpp1
-rw-r--r--cpp/demo/IcePack/hello/HelloI.h8
-rw-r--r--cpp/demo/IcePack/simple/Client.cpp1
-rw-r--r--cpp/demo/IcePack/simple/Hello.ice5
-rw-r--r--cpp/demo/IcePack/simple/HelloI.h2
-rw-r--r--cpp/demo/IceStorm/clock/Clock.ice5
-rw-r--r--cpp/demo/IceStorm/clock/ClockI.h2
-rw-r--r--cpp/demo/IceStorm/clock/Publisher.cpp1
-rw-r--r--cpp/demo/IceStorm/clock/Subscriber.cpp1
-rw-r--r--cpp/include/Slice/Parser.h10
-rw-r--r--cpp/src/Slice/Grammar.y263
-rw-r--r--cpp/src/Slice/Parser.cpp140
-rw-r--r--cpp/src/Slice/Scanner.l16
-rw-r--r--cpp/src/slice2cpp/Gen.cpp4
-rw-r--r--cpp/src/slice2cpp/Main.cpp2
-rw-r--r--cpp/src/slice2docbook/Main.cpp2
-rw-r--r--cpp/src/slice2freeze/Main.cpp2
-rw-r--r--cpp/src/slice2freezej/Main.cpp2
-rw-r--r--cpp/src/slice2java/Main.cpp2
-rw-r--r--cpp/test/FreezeScript/dbmap/Makefile2
-rw-r--r--cpp/test/FreezeScript/dbmap/TestNew.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/TestOld.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/check.xml32
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/01.err40
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/01_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/01_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/02.err40
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/02_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/02_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/03.err40
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/03_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/03_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/04.err38
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/04_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/04_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/05.err40
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/05_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/05_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/06.err40
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/06_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/06_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/07.err40
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/07_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/07_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/08.err28
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/08_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/08_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/09.err88
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/09_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/09_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/10.err94
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/10_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/10_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/11.err92
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/11_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/11_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/12.err94
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/12_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/12_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/13.err30
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/13_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/13_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/14.err34
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/14_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/14_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/15.err82
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/15_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/15_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/16.err88
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/16_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/16_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/17.err4
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/17_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/17_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/18.err2
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/18_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/18_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/19_new.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/fail/19_old.ice5
-rw-r--r--cpp/test/FreezeScript/dbmap/init.xml16
-rw-r--r--cpp/test/FreezeScript/dbmap/makedb.cpp1
-rwxr-xr-xcpp/test/FreezeScript/dbmap/run.py4
-rw-r--r--cpp/test/FreezeScript/evictor/TestNew.ice5
-rw-r--r--cpp/test/FreezeScript/evictor/TestOld.ice5
-rw-r--r--cpp/test/FreezeScript/evictor/check.xml20
-rw-r--r--cpp/test/FreezeScript/evictor/makedb.cpp9
-rw-r--r--cpp/test/FreezeScript/evictor/transform.xml12
-rw-r--r--cpp/test/Glacier/starter/Callback.ice5
-rw-r--r--cpp/test/Glacier/starter/CallbackI.cpp1
-rw-r--r--cpp/test/Glacier/starter/CallbackI.h8
-rw-r--r--cpp/test/Glacier/starter/Client.cpp1
-rw-r--r--cpp/test/Glacier/starter/Server.cpp1
-rw-r--r--cpp/test/Ice/adapterDeactivation/AllTests.cpp5
-rw-r--r--cpp/test/Ice/adapterDeactivation/Client.cpp5
-rw-r--r--cpp/test/Ice/adapterDeactivation/Collocated.cpp3
-rw-r--r--cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp1
-rw-r--r--cpp/test/Ice/adapterDeactivation/Test.ice7
-rw-r--r--cpp/test/Ice/adapterDeactivation/TestI.h4
-rw-r--r--cpp/test/Ice/checksum/client/Types.ice5
-rw-r--r--cpp/test/Ice/checksum/server/Types.ice5
-rw-r--r--cpp/test/Ice/exceptions/AllTests.cpp1
-rw-r--r--cpp/test/Ice/exceptions/Client.cpp1
-rw-r--r--cpp/test/Ice/exceptions/Collocated.cpp1
-rw-r--r--cpp/test/Ice/exceptions/Test.ice7
-rw-r--r--cpp/test/Ice/exceptions/TestAMD.ice7
-rw-r--r--cpp/test/Ice/exceptions/TestAMDI.cpp2
-rw-r--r--cpp/test/Ice/exceptions/TestAMDI.h36
-rw-r--r--cpp/test/Ice/exceptions/TestI.cpp2
-rw-r--r--cpp/test/Ice/exceptions/TestI.h2
-rw-r--r--cpp/test/Ice/facets/AllTests.cpp1
-rw-r--r--cpp/test/Ice/facets/Client.cpp1
-rw-r--r--cpp/test/Ice/facets/Collocated.cpp1
-rw-r--r--cpp/test/Ice/facets/Test.ice5
-rw-r--r--cpp/test/Ice/facets/TestI.h16
-rw-r--r--cpp/test/Ice/faultTolerance/AllTests.cpp13
-rw-r--r--cpp/test/Ice/faultTolerance/Test.ice7
-rw-r--r--cpp/test/Ice/faultTolerance/TestI.h2
-rw-r--r--cpp/test/Ice/gc/Client.cpp1
-rw-r--r--cpp/test/Ice/gc/Test.ice5
-rw-r--r--cpp/test/Ice/inheritance/AllTests.cpp1
-rw-r--r--cpp/test/Ice/inheritance/Client.cpp1
-rw-r--r--cpp/test/Ice/inheritance/Collocated.cpp1
-rw-r--r--cpp/test/Ice/inheritance/Test.ice5
-rw-r--r--cpp/test/Ice/inheritance/TestI.cpp2
-rw-r--r--cpp/test/Ice/inheritance/TestI.h66
-rw-r--r--cpp/test/Ice/location/AllTests.cpp15
-rw-r--r--cpp/test/Ice/location/Test.ice7
-rw-r--r--cpp/test/Ice/location/TestI.cpp2
-rw-r--r--cpp/test/Ice/location/TestI.h8
-rw-r--r--cpp/test/Ice/objects/AllTests.cpp1
-rw-r--r--cpp/test/Ice/objects/Client.cpp13
-rw-r--r--cpp/test/Ice/objects/Collocated.cpp1
-rw-r--r--cpp/test/Ice/objects/Server.cpp1
-rw-r--r--cpp/test/Ice/objects/Test.ice5
-rw-r--r--cpp/test/Ice/objects/TestI.cpp2
-rw-r--r--cpp/test/Ice/objects/TestI.h26
-rw-r--r--cpp/test/Ice/slicing/exceptions/AllTests.cpp85
-rw-r--r--cpp/test/Ice/slicing/exceptions/Client.cpp5
-rw-r--r--cpp/test/Ice/slicing/exceptions/ServerPrivate.ice5
-rw-r--r--cpp/test/Ice/slicing/exceptions/ServerPrivateAMD.ice5
-rw-r--r--cpp/test/Ice/slicing/exceptions/Test.ice7
-rw-r--r--cpp/test/Ice/slicing/exceptions/TestAMD.ice7
-rw-r--r--cpp/test/Ice/slicing/exceptions/TestAMDI.cpp30
-rw-r--r--cpp/test/Ice/slicing/exceptions/TestAMDI.h48
-rw-r--r--cpp/test/Ice/slicing/exceptions/TestI.cpp2
-rw-r--r--cpp/test/Ice/slicing/exceptions/TestI.h2
-rw-r--r--cpp/test/Ice/slicing/objects/AllTests.cpp190
-rw-r--r--cpp/test/Ice/slicing/objects/Client.cpp5
-rw-r--r--cpp/test/Ice/slicing/objects/ClientPrivate.ice5
-rw-r--r--cpp/test/Ice/slicing/objects/Forward.ice5
-rw-r--r--cpp/test/Ice/slicing/objects/ServerPrivate.ice5
-rw-r--r--cpp/test/Ice/slicing/objects/ServerPrivateAMD.ice5
-rw-r--r--cpp/test/Ice/slicing/objects/Test.ice7
-rw-r--r--cpp/test/Ice/slicing/objects/TestAMD.ice7
-rw-r--r--cpp/test/Ice/slicing/objects/TestAMDI.cpp54
-rw-r--r--cpp/test/Ice/slicing/objects/TestAMDI.h62
-rw-r--r--cpp/test/Ice/slicing/objects/TestI.cpp2
-rw-r--r--cpp/test/Ice/slicing/objects/TestI.h40
-rw-r--r--cpp/test/IcePack/deployer/AllTests.cpp35
-rw-r--r--cpp/test/IcePack/deployer/Test.ice7
-rw-r--r--cpp/test/IcePack/deployer/TestI.h2
-rw-r--r--cpp/test/IcePack/simple/AllTests.cpp19
-rw-r--r--cpp/test/IcePack/simple/Client.cpp7
-rw-r--r--cpp/test/IcePack/simple/Test.ice7
-rw-r--r--cpp/test/IcePack/simple/TestI.cpp2
-rw-r--r--cpp/test/IcePack/simple/TestI.h2
-rw-r--r--cpp/test/IceSSL/certificateVerification/Client.cpp1
-rw-r--r--cpp/test/IceSSL/certificateVerification/Pinger.ice5
-rw-r--r--cpp/test/IceSSL/certificateVerification/Server.cpp1
-rw-r--r--cpp/test/IceStorm/federation/Event.ice5
-rw-r--r--cpp/test/IceStorm/federation/Publisher.cpp1
-rw-r--r--cpp/test/IceStorm/federation/Subscriber.cpp1
-rw-r--r--cpp/test/IceStorm/single/Publisher.cpp1
-rw-r--r--cpp/test/IceStorm/single/Single.ice5
-rw-r--r--cpp/test/IceStorm/single/Subscriber.cpp1
-rw-r--r--cpp/test/Slice/errorDetection/CaseInsensitive.err28
-rw-r--r--cpp/test/Slice/errorDetection/CaseInsensitive.ice26
-rw-r--r--cpp/test/Slice/errorDetection/CaseSensitive.ice6
-rw-r--r--cpp/test/Slice/errorDetection/ChangedMeaning.ice28
-rw-r--r--cpp/test/Slice/errorDetection/ClassRedefinition.err6
-rw-r--r--cpp/test/Slice/errorDetection/ClassRedefinition.ice12
-rw-r--r--cpp/test/Slice/errorDetection/ConstDef.err2
-rw-r--r--cpp/test/Slice/errorDetection/ConstDef.ice10
-rw-r--r--cpp/test/Slice/errorDetection/DataMemberRedefinition.ice6
-rw-r--r--cpp/test/Slice/errorDetection/DeclaratorMissing.ice6
-rw-r--r--cpp/test/Slice/errorDetection/DerivedRedefinition.ice6
-rw-r--r--cpp/test/Slice/errorDetection/DictionaryRedefinition.ice6
-rw-r--r--cpp/test/Slice/errorDetection/DuplicateParameter.ice6
-rw-r--r--cpp/test/Slice/errorDetection/DuplicateThrows.ice12
-rw-r--r--cpp/test/Slice/errorDetection/EnumEmpty.ice6
-rw-r--r--cpp/test/Slice/errorDetection/EnumRedefinition.ice6
-rw-r--r--cpp/test/Slice/errorDetection/EnumeratorRedefinition.ice6
-rw-r--r--cpp/test/Slice/errorDetection/IdentAsKeyword.err4
-rw-r--r--cpp/test/Slice/errorDetection/IdentAsKeyword.ice6
-rw-r--r--cpp/test/Slice/errorDetection/IllegalDictionary.ice6
-rw-r--r--cpp/test/Slice/errorDetection/IllegalLocal.ice6
-rw-r--r--cpp/test/Slice/errorDetection/IllegalUseOfKeyword.ice6
-rw-r--r--cpp/test/Slice/errorDetection/InterfaceMismatch.err2
-rw-r--r--cpp/test/Slice/errorDetection/InterfaceMismatch.ice6
-rw-r--r--cpp/test/Slice/errorDetection/InterfaceRedefinition.err2
-rw-r--r--cpp/test/Slice/errorDetection/InterfaceRedefinition.ice6
-rw-r--r--cpp/test/Slice/errorDetection/LocalMismatch.err4
-rw-r--r--cpp/test/Slice/errorDetection/LocalMismatch.ice6
-rw-r--r--cpp/test/Slice/errorDetection/NameCanNotBeUsed.ice6
-rw-r--r--cpp/test/Slice/errorDetection/NotClassOrInterface.ice6
-rw-r--r--cpp/test/Slice/errorDetection/NotType.ice6
-rw-r--r--cpp/test/Slice/errorDetection/OperationRedefinition.ice6
-rw-r--r--cpp/test/Slice/errorDetection/ParamsOutOfOrder.ice6
-rw-r--r--cpp/test/Slice/errorDetection/RedefinitionAsClass.ice6
-rw-r--r--cpp/test/Slice/errorDetection/RedefinitionAsDataMember.ice6
-rw-r--r--cpp/test/Slice/errorDetection/RedefinitionAsDictionary.ice6
-rw-r--r--cpp/test/Slice/errorDetection/RedefinitionAsEnum.ice6
-rw-r--r--cpp/test/Slice/errorDetection/RedefinitionAsEnumerator.ice6
-rw-r--r--cpp/test/Slice/errorDetection/RedefinitionAsInterface.ice6
-rw-r--r--cpp/test/Slice/errorDetection/RedefinitionAsModule.ice8
-rw-r--r--cpp/test/Slice/errorDetection/RedefinitionAsOperation.ice6
-rw-r--r--cpp/test/Slice/errorDetection/RedefinitionAsSequence.ice6
-rw-r--r--cpp/test/Slice/errorDetection/SelfContainment.ice11
-rw-r--r--cpp/test/Slice/errorDetection/SequenceRedefinition.ice6
-rw-r--r--cpp/test/Slice/errorDetection/StructMembers.ice6
-rw-r--r--cpp/test/Slice/errorDetection/Undefined.ice6
-rw-r--r--cpp/test/Slice/errorDetection/WrongProxyType.ice6
275 files changed, 2068 insertions, 1194 deletions
diff --git a/cpp/CHANGES b/cpp/CHANGES
index 4916af36aa4..b334a301b11 100644
--- a/cpp/CHANGES
+++ b/cpp/CHANGES
@@ -1,6 +1,21 @@
Changes since version 1.5.1
---------------------------
+- The documentation has always stated that same-named constructs
+ cannot be directly nested inside each other. (For example, a
+ module `M' cannot contain a constant named `M'. The slice2cpp
+ compiler did not enforce this correctly up to now for modules
+ containing constructs with the same name as the enclosing module.
+ This has been fixed and now results in a diagnostic.
+
+- The slice2cpp compiler now deprecates Slice definitions at global scope:
+ only modules can be defined at global scope. Everything else
+ (constants, classes, interfaces, etc.) must be defined inside a module.
+
+ For the time being, the compiler issues a warning for each global definition
+ but continues to compile the code. Global non-module definitions will
+ elicit a hard error two releases from now.
+
- Several demos used Slice classes where interface were more
appropriate. This has been fixed.
diff --git a/cpp/demo/Freeze/bench/Client.cpp b/cpp/demo/Freeze/bench/Client.cpp
index 13d1dfbd460..7f4c7586da5 100644
--- a/cpp/demo/Freeze/bench/Client.cpp
+++ b/cpp/demo/Freeze/bench/Client.cpp
@@ -15,7 +15,7 @@
using namespace Freeze;
using namespace Ice;
using namespace std;
-
+using namespace Demo;
static void
testFailed(const char* expr, const char* file, unsigned int line)
diff --git a/cpp/demo/Freeze/bench/Makefile b/cpp/demo/Freeze/bench/Makefile
index c45861c9b42..9233f920a74 100644
--- a/cpp/demo/Freeze/bench/Makefile
+++ b/cpp/demo/Freeze/bench/Makefile
@@ -29,9 +29,9 @@ $(CLIENT): $(OBJS) $(COBJS)
BenchTypes.h BenchTypes.cpp: Test.ice $(SLICE2FREEZE)
rm -f BenchTypes.h BenchTypes.cpp
- $(SLICE2FREEZE) -I$(slicedir) --dict IntIntMap,int,int --dict Struct1Struct2Map,Struct1,Struct2 \
- --dict Struct1Class1Map,Struct1,Class1 \
- --dict Struct1ObjectMap,Struct1,Object BenchTypes Test.ice
+ $(SLICE2FREEZE) -I$(slicedir) --dict IntIntMap,int,int --dict Struct1Struct2Map,Demo::Struct1,Demo::Struct2 \
+ --dict Struct1Class1Map,Demo::Struct1,Demo::Class1 \
+ --dict Struct1ObjectMap,Demo::Struct1,Object BenchTypes Test.ice
clean::
rm -f BenchTypes.h BenchTypes.cpp
diff --git a/cpp/demo/Freeze/bench/Test.ice b/cpp/demo/Freeze/bench/Test.ice
index 40dfef6a96e..23d76da8ab1 100644
--- a/cpp/demo/Freeze/bench/Test.ice
+++ b/cpp/demo/Freeze/bench/Test.ice
@@ -7,6 +7,9 @@
//
// **********************************************************************
+module Demo
+{
+
struct Struct1
{
long l;
@@ -27,3 +30,5 @@ class Class2 extends Class1
Object obj;
Object rec;
};
+
+};
diff --git a/cpp/demo/Freeze/library/Library.ice b/cpp/demo/Freeze/library/Library.ice
index 915aa6bff4c..b571d3d66fc 100644
--- a/cpp/demo/Freeze/library/Library.ice
+++ b/cpp/demo/Freeze/library/Library.ice
@@ -10,6 +10,9 @@
#ifndef LIBRARY_ICE
#define LIBRARY_ICE
+module Demo
+{
+
/**
*
* This exception is raised in the case of a database failure.
@@ -227,4 +230,6 @@ interface Library
idempotent void shutdown();
};
+};
+
#endif
diff --git a/cpp/demo/Freeze/library/LibraryI.cpp b/cpp/demo/Freeze/library/LibraryI.cpp
index e5188714bd7..75f36548c20 100644
--- a/cpp/demo/Freeze/library/LibraryI.cpp
+++ b/cpp/demo/Freeze/library/LibraryI.cpp
@@ -11,6 +11,7 @@
#include <LibraryI.h>
using namespace std;
+using namespace Demo;
BookI::BookI(const LibraryIPtr& library) :
_library(library), _destroyed(false)
diff --git a/cpp/demo/Freeze/library/LibraryI.h b/cpp/demo/Freeze/library/LibraryI.h
index 5eb2c8c34d6..46d17f94900 100644
--- a/cpp/demo/Freeze/library/LibraryI.h
+++ b/cpp/demo/Freeze/library/LibraryI.h
@@ -16,7 +16,7 @@
#include <LibraryTypes.h>
#include <IceUtil/AbstractMutex.h>
-class LibraryI : public Library, public IceUtil::RWRecMutex
+class LibraryI : public Demo::Library, public IceUtil::RWRecMutex
{
public:
@@ -25,13 +25,13 @@ public:
const Freeze::EvictorPtr& evictor);
virtual ~LibraryI();
- virtual ::BookPrx createBook(const ::BookDescription&, const Ice::Current&);
- virtual ::BookPrx findByIsbn(const ::std::string&, const Ice::Current&) const;
- virtual ::BookPrxSeq findByAuthors(const ::std::string&, const Ice::Current&) const;
+ virtual ::Demo::BookPrx createBook(const ::Demo::BookDescription&, const Ice::Current&);
+ virtual ::Demo::BookPrx findByIsbn(const ::std::string&, const Ice::Current&) const;
+ virtual ::Demo::BookPrxSeq findByAuthors(const ::std::string&, const Ice::Current&) const;
virtual void setEvictorSize(::Ice::Int, const Ice::Current&);
virtual void shutdown(const Ice::Current&);
- void remove(const BookDescription&);
+ void remove(const Demo::BookDescription&);
private:
@@ -47,14 +47,14 @@ private:
typedef IceUtil::Handle<LibraryI> LibraryIPtr;
-class BookI : public Book, public IceUtil::AbstractMutexReadI<IceUtil::RWRecMutex>
+class BookI : public Demo::Book, public IceUtil::AbstractMutexReadI<IceUtil::RWRecMutex>
{
public:
BookI(const LibraryIPtr&);
virtual ~BookI();
- virtual ::BookDescription getBookDescription(const Ice::Current&) const;
+ virtual ::Demo::BookDescription getBookDescription(const Ice::Current&) const;
virtual void destroy(const Ice::Current&);
virtual void rentBook(const ::std::string&, const Ice::Current&);
virtual ::std::string getRenterName(const Ice::Current&) const;
diff --git a/cpp/demo/Freeze/library/Parser.cpp b/cpp/demo/Freeze/library/Parser.cpp
index 14cce4c9550..264dc489e35 100644
--- a/cpp/demo/Freeze/library/Parser.cpp
+++ b/cpp/demo/Freeze/library/Parser.cpp
@@ -17,6 +17,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
extern FILE* yyin;
diff --git a/cpp/demo/Freeze/library/Parser.h b/cpp/demo/Freeze/library/Parser.h
index dbeb64016db..e58a77ce474 100644
--- a/cpp/demo/Freeze/library/Parser.h
+++ b/cpp/demo/Freeze/library/Parser.h
@@ -55,7 +55,7 @@ class Parser : public ::IceUtil::SimpleShared
{
public:
- static ParserPtr createParser(const Ice::CommunicatorPtr&, const LibraryPrx&);
+ static ParserPtr createParser(const Ice::CommunicatorPtr&, const Demo::LibraryPrx&);
void usage();
@@ -86,13 +86,13 @@ public:
private:
- Parser(const Ice::CommunicatorPtr&, const LibraryPrx&);
+ Parser(const Ice::CommunicatorPtr&, const Demo::LibraryPrx&);
- BookPrxSeq _foundBooks;
- BookPrxSeq::iterator _current;
+ Demo::BookPrxSeq _foundBooks;
+ Demo::BookPrxSeq::iterator _current;
std::string _commands;
- LibraryPrx _library;
+ Demo::LibraryPrx _library;
bool _continue;
int _errors;
int _currentLine;
diff --git a/cpp/demo/Freeze/library/RunParser.cpp b/cpp/demo/Freeze/library/RunParser.cpp
index 25b938858df..053b7803962 100644
--- a/cpp/demo/Freeze/library/RunParser.cpp
+++ b/cpp/demo/Freeze/library/RunParser.cpp
@@ -11,6 +11,7 @@
#include <Parser.h>
using namespace std;
+using namespace Demo;
void
usage(const char* appName)
diff --git a/cpp/demo/Freeze/phonebook/Makefile b/cpp/demo/Freeze/phonebook/Makefile
index 4d3809a6a48..b14d87553cc 100644
--- a/cpp/demo/Freeze/phonebook/Makefile
+++ b/cpp/demo/Freeze/phonebook/Makefile
@@ -63,7 +63,7 @@ $(COLLOCATED): $(OBJS) $(COLOBJS)
NameIndex.h NameIndex.cpp: PhoneBook.ice $(SLICE2FREEZE)
rm -f NameIndex.h NameIndex.cpp
- $(SLICE2FREEZE) $(ICECPPFLAGS) --index NameIndex,Contact,name,case-insensitive NameIndex PhoneBook.ice
+ $(SLICE2FREEZE) $(ICECPPFLAGS) --index NameIndex,Demo::Contact,name,case-insensitive NameIndex PhoneBook.ice
clean::
rm -f NameIndex.h NameIndex.cpp
diff --git a/cpp/demo/Freeze/phonebook/Parser.cpp b/cpp/demo/Freeze/phonebook/Parser.cpp
index b029e5e24f4..ecb772f8a04 100644
--- a/cpp/demo/Freeze/phonebook/Parser.cpp
+++ b/cpp/demo/Freeze/phonebook/Parser.cpp
@@ -17,6 +17,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
extern FILE* yyin;
diff --git a/cpp/demo/Freeze/phonebook/Parser.h b/cpp/demo/Freeze/phonebook/Parser.h
index 138524b1548..b52b5c2d1c8 100644
--- a/cpp/demo/Freeze/phonebook/Parser.h
+++ b/cpp/demo/Freeze/phonebook/Parser.h
@@ -55,7 +55,7 @@ class Parser : public ::IceUtil::SimpleShared
{
public:
- static ParserPtr createParser(const Ice::CommunicatorPtr&, const PhoneBookPrx&);
+ static ParserPtr createParser(const Ice::CommunicatorPtr&, const Demo::PhoneBookPrx&);
void usage();
@@ -86,13 +86,13 @@ public:
private:
- Parser(const Ice::CommunicatorPtr&, const PhoneBookPrx&);
+ Parser(const Ice::CommunicatorPtr&, const Demo::PhoneBookPrx&);
- Contacts _foundContacts;
- Contacts::iterator _current;
+ Demo::Contacts _foundContacts;
+ Demo::Contacts::iterator _current;
std::string _commands;
- PhoneBookPrx _phoneBook;
+ Demo::PhoneBookPrx _phoneBook;
bool _continue;
int _errors;
int _currentLine;
diff --git a/cpp/demo/Freeze/phonebook/PhoneBook.ice b/cpp/demo/Freeze/phonebook/PhoneBook.ice
index 06fc5a4b33a..8d4975d1377 100644
--- a/cpp/demo/Freeze/phonebook/PhoneBook.ice
+++ b/cpp/demo/Freeze/phonebook/PhoneBook.ice
@@ -12,6 +12,9 @@
#include <Ice/Identity.ice>
+module Demo
+{
+
exception DatabaseException
{
string message;
@@ -45,4 +48,6 @@ interface PhoneBook
nonmutating void shutdown();
};
+};
+
#endif
diff --git a/cpp/demo/Freeze/phonebook/PhoneBookI.cpp b/cpp/demo/Freeze/phonebook/PhoneBookI.cpp
index 1cb31d9fabf..32a27f63fad 100644
--- a/cpp/demo/Freeze/phonebook/PhoneBookI.cpp
+++ b/cpp/demo/Freeze/phonebook/PhoneBookI.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
ContactI::ContactI(const ContactFactoryPtr& contactFactory) :
_factory(contactFactory)
diff --git a/cpp/demo/Freeze/phonebook/PhoneBookI.h b/cpp/demo/Freeze/phonebook/PhoneBookI.h
index 66594a2efc8..074a416d04d 100644
--- a/cpp/demo/Freeze/phonebook/PhoneBookI.h
+++ b/cpp/demo/Freeze/phonebook/PhoneBookI.h
@@ -23,7 +23,7 @@ typedef IceUtil::Handle<PhoneBookI> PhoneBookIPtr;
class ContactI;
typedef IceUtil::Handle<ContactI> ContactIPtr;
-class ContactI : public Contact,
+class ContactI : public Demo::Contact,
public IceUtil::AbstractMutexReadI<IceUtil::RWRecMutex>
{
public:
@@ -46,14 +46,14 @@ private:
ContactFactoryPtr _factory;
};
-class PhoneBookI : public PhoneBook
+class PhoneBookI : public Demo::PhoneBook
{
public:
PhoneBookI(const Freeze::EvictorPtr& evictor, const ContactFactoryPtr& factory, const NameIndexPtr& index);
- virtual ContactPrx createContact(const Ice::Current&);
- virtual Contacts findContacts(const std::string&, const Ice::Current&) const;
+ virtual Demo::ContactPrx createContact(const Ice::Current&);
+ virtual Demo::Contacts findContacts(const std::string&, const Ice::Current&) const;
virtual void setEvictorSize(Ice::Int, const Ice::Current&);
virtual void shutdown(const Ice::Current&) const;
diff --git a/cpp/demo/Freeze/phonebook/RunParser.cpp b/cpp/demo/Freeze/phonebook/RunParser.cpp
index 96e227607ac..cfdef15069d 100644
--- a/cpp/demo/Freeze/phonebook/RunParser.cpp
+++ b/cpp/demo/Freeze/phonebook/RunParser.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
void
usage(const char* appName)
diff --git a/cpp/demo/Glacier/session/Client.cpp b/cpp/demo/Glacier/session/Client.cpp
index 0e58773220f..a0184adea70 100644
--- a/cpp/demo/Glacier/session/Client.cpp
+++ b/cpp/demo/Glacier/session/Client.cpp
@@ -15,6 +15,7 @@
#include <HelloSession.h>
using namespace std;
+using namespace Demo;
void
menu()
diff --git a/cpp/demo/Glacier/session/HelloSession.ice b/cpp/demo/Glacier/session/HelloSession.ice
index b4c1723bd94..140ee60222d 100644
--- a/cpp/demo/Glacier/session/HelloSession.ice
+++ b/cpp/demo/Glacier/session/HelloSession.ice
@@ -12,9 +12,14 @@
#include <Glacier/Session.ice>
+module Demo
+{
+
interface HelloSession extends Glacier::Session
{
void hello();
};
+};
+
#endif
diff --git a/cpp/demo/Glacier/session/HelloSessionI.h b/cpp/demo/Glacier/session/HelloSessionI.h
index 107d05d56df..3c2d8d30dfd 100644
--- a/cpp/demo/Glacier/session/HelloSessionI.h
+++ b/cpp/demo/Glacier/session/HelloSessionI.h
@@ -29,7 +29,7 @@ private:
};
typedef IceUtil::Handle<HelloSessionManagerI> HelloSessionManagerIPtr;
-class HelloSessionI : public HelloSession
+class HelloSessionI : public Demo::HelloSession
{
public:
diff --git a/cpp/demo/Glacier2/callback/Callback.ice b/cpp/demo/Glacier2/callback/Callback.ice
index 6138731b5c0..5041acad7c2 100644
--- a/cpp/demo/Glacier2/callback/Callback.ice
+++ b/cpp/demo/Glacier2/callback/Callback.ice
@@ -10,6 +10,9 @@
#ifndef CALLBACK_ICE
#define CALLBACK_ICE
+module Demo
+{
+
interface CallbackReceiver
{
void callback();
@@ -21,4 +24,6 @@ interface Callback
void shutdown();
};
+};
+
#endif
diff --git a/cpp/demo/Glacier2/callback/CallbackI.cpp b/cpp/demo/Glacier2/callback/CallbackI.cpp
index 9946c2bd0b9..67fa18ca671 100644
--- a/cpp/demo/Glacier2/callback/CallbackI.cpp
+++ b/cpp/demo/Glacier2/callback/CallbackI.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
void
CallbackReceiverI::callback(const Current&)
diff --git a/cpp/demo/Glacier2/callback/CallbackI.h b/cpp/demo/Glacier2/callback/CallbackI.h
index 539ab05c588..7a8d71187eb 100644
--- a/cpp/demo/Glacier2/callback/CallbackI.h
+++ b/cpp/demo/Glacier2/callback/CallbackI.h
@@ -12,18 +12,18 @@
#include <Callback.h>
-class CallbackReceiverI : public CallbackReceiver
+class CallbackReceiverI : public Demo::CallbackReceiver
{
public:
virtual void callback(const Ice::Current&);
};
-class CallbackI : public Callback
+class CallbackI : public Demo::Callback
{
public:
- virtual void initiateCallback(const CallbackReceiverPrx&, const Ice::Current&);
+ virtual void initiateCallback(const Demo::CallbackReceiverPrx&, const Ice::Current&);
virtual void shutdown(const Ice::Current&);
};
diff --git a/cpp/demo/Glacier2/callback/Client.cpp b/cpp/demo/Glacier2/callback/Client.cpp
index 0a0fc40fce1..3b07e161f5e 100644
--- a/cpp/demo/Glacier2/callback/Client.cpp
+++ b/cpp/demo/Glacier2/callback/Client.cpp
@@ -13,6 +13,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
class CallbackClient : public Application
{
diff --git a/cpp/demo/Glacier2/callback/Server.cpp b/cpp/demo/Glacier2/callback/Server.cpp
index 096ab730cf6..5b9149190d0 100644
--- a/cpp/demo/Glacier2/callback/Server.cpp
+++ b/cpp/demo/Glacier2/callback/Server.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
class CallbackServer : public Application
{
diff --git a/cpp/demo/Ice/callback/Callback.ice b/cpp/demo/Ice/callback/Callback.ice
index 6138731b5c0..5041acad7c2 100644
--- a/cpp/demo/Ice/callback/Callback.ice
+++ b/cpp/demo/Ice/callback/Callback.ice
@@ -10,6 +10,9 @@
#ifndef CALLBACK_ICE
#define CALLBACK_ICE
+module Demo
+{
+
interface CallbackReceiver
{
void callback();
@@ -21,4 +24,6 @@ interface Callback
void shutdown();
};
+};
+
#endif
diff --git a/cpp/demo/Ice/callback/CallbackI.cpp b/cpp/demo/Ice/callback/CallbackI.cpp
index e8cd9053ab8..f748889a8b0 100644
--- a/cpp/demo/Ice/callback/CallbackI.cpp
+++ b/cpp/demo/Ice/callback/CallbackI.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
void
CallbackReceiverI::callback(const Current&)
diff --git a/cpp/demo/Ice/callback/CallbackI.h b/cpp/demo/Ice/callback/CallbackI.h
index 539ab05c588..7a8d71187eb 100644
--- a/cpp/demo/Ice/callback/CallbackI.h
+++ b/cpp/demo/Ice/callback/CallbackI.h
@@ -12,18 +12,18 @@
#include <Callback.h>
-class CallbackReceiverI : public CallbackReceiver
+class CallbackReceiverI : public Demo::CallbackReceiver
{
public:
virtual void callback(const Ice::Current&);
};
-class CallbackI : public Callback
+class CallbackI : public Demo::Callback
{
public:
- virtual void initiateCallback(const CallbackReceiverPrx&, const Ice::Current&);
+ virtual void initiateCallback(const Demo::CallbackReceiverPrx&, const Ice::Current&);
virtual void shutdown(const Ice::Current&);
};
diff --git a/cpp/demo/Ice/callback/Client.cpp b/cpp/demo/Ice/callback/Client.cpp
index eadafce336f..ab0bedd7ab9 100644
--- a/cpp/demo/Ice/callback/Client.cpp
+++ b/cpp/demo/Ice/callback/Client.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
class CallbackClient : public Application
{
diff --git a/cpp/demo/Ice/callback/Server.cpp b/cpp/demo/Ice/callback/Server.cpp
index a9616993727..53f27975527 100644
--- a/cpp/demo/Ice/callback/Server.cpp
+++ b/cpp/demo/Ice/callback/Server.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
class CallbackServer : public Application
{
diff --git a/cpp/demo/Ice/hello/Client.cpp b/cpp/demo/Ice/hello/Client.cpp
index 18aab0bb1b9..71d9a7a0bd4 100644
--- a/cpp/demo/Ice/hello/Client.cpp
+++ b/cpp/demo/Ice/hello/Client.cpp
@@ -11,6 +11,7 @@
#include <Hello.h>
using namespace std;
+using namespace Demo;
void
menu()
diff --git a/cpp/demo/Ice/hello/Hello.ice b/cpp/demo/Ice/hello/Hello.ice
index 9b532a2e9a8..4ce83cbc4c1 100644
--- a/cpp/demo/Ice/hello/Hello.ice
+++ b/cpp/demo/Ice/hello/Hello.ice
@@ -10,10 +10,15 @@
#ifndef HELLO_ICE
#define HELLO_ICE
+module Demo
+{
+
interface Hello
{
nonmutating void sayHello();
idempotent void shutdown();
};
+};
+
#endif
diff --git a/cpp/demo/Ice/hello/HelloI.h b/cpp/demo/Ice/hello/HelloI.h
index b3ca691c7e0..c3391f86903 100644
--- a/cpp/demo/Ice/hello/HelloI.h
+++ b/cpp/demo/Ice/hello/HelloI.h
@@ -12,7 +12,7 @@
#include <Hello.h>
-class HelloI : public Hello
+class HelloI : public ::Demo::Hello
{
public:
diff --git a/cpp/demo/Ice/latency/Client.cpp b/cpp/demo/Ice/latency/Client.cpp
index 4cfbea32ef0..0e304efdedb 100644
--- a/cpp/demo/Ice/latency/Client.cpp
+++ b/cpp/demo/Ice/latency/Client.cpp
@@ -11,6 +11,7 @@
#include <Latency.h>
using namespace std;
+using namespace Demo;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/demo/Ice/latency/Latency.ice b/cpp/demo/Ice/latency/Latency.ice
index 04c9673ec48..ba5af7216c7 100644
--- a/cpp/demo/Ice/latency/Latency.ice
+++ b/cpp/demo/Ice/latency/Latency.ice
@@ -10,8 +10,13 @@
#ifndef LATENCY_ICE
#define LATENCY_ICE
+module Demo
+{
+
class Ping
{
};
+};
+
#endif
diff --git a/cpp/demo/Ice/latency/Server.cpp b/cpp/demo/Ice/latency/Server.cpp
index 99de254a0f7..b6dbe3a922a 100644
--- a/cpp/demo/Ice/latency/Server.cpp
+++ b/cpp/demo/Ice/latency/Server.cpp
@@ -11,6 +11,7 @@
#include <Latency.h>
using namespace std;
+using namespace Demo;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/demo/Ice/nested/Client.cpp b/cpp/demo/Ice/nested/Client.cpp
index 872c71436bc..6d02cd01cbb 100644
--- a/cpp/demo/Ice/nested/Client.cpp
+++ b/cpp/demo/Ice/nested/Client.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
class NestedClient : public Application
{
diff --git a/cpp/demo/Ice/nested/Nested.ice b/cpp/demo/Ice/nested/Nested.ice
index 916d80d0a12..4216d412f11 100644
--- a/cpp/demo/Ice/nested/Nested.ice
+++ b/cpp/demo/Ice/nested/Nested.ice
@@ -10,9 +10,14 @@
#ifndef NESTED_ICE
#define NESTED_ICE
+module Demo
+{
+
interface Nested
{
void nestedCall(int level, Nested* proxy);
};
+};
+
#endif
diff --git a/cpp/demo/Ice/nested/NestedI.cpp b/cpp/demo/Ice/nested/NestedI.cpp
index 55b84e6e370..52e29ddec31 100644
--- a/cpp/demo/Ice/nested/NestedI.cpp
+++ b/cpp/demo/Ice/nested/NestedI.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
NestedI::NestedI(const NestedPrx& self) :
_self(self)
diff --git a/cpp/demo/Ice/nested/NestedI.h b/cpp/demo/Ice/nested/NestedI.h
index 4ec81d2f9f0..190a2f8b3dc 100644
--- a/cpp/demo/Ice/nested/NestedI.h
+++ b/cpp/demo/Ice/nested/NestedI.h
@@ -12,16 +12,16 @@
#include <Nested.h>
-class NestedI : public Nested
+class NestedI : public Demo::Nested
{
public:
- NestedI(const NestedPrx&);
- virtual void nestedCall(Ice::Int, const NestedPrx&, const Ice::Current&);
+ NestedI(const Demo::NestedPrx&);
+ virtual void nestedCall(Ice::Int, const Demo::NestedPrx&, const Ice::Current&);
private:
- NestedPrx _self;
+ Demo::NestedPrx _self;
};
#endif
diff --git a/cpp/demo/Ice/nested/Server.cpp b/cpp/demo/Ice/nested/Server.cpp
index e3a09b1f03b..0fc9ec2d86a 100644
--- a/cpp/demo/Ice/nested/Server.cpp
+++ b/cpp/demo/Ice/nested/Server.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Demo;
class NestedServer : public Application
{
diff --git a/cpp/demo/Ice/throughput/Client.cpp b/cpp/demo/Ice/throughput/Client.cpp
index 5668c95db0c..c117be492fe 100644
--- a/cpp/demo/Ice/throughput/Client.cpp
+++ b/cpp/demo/Ice/throughput/Client.cpp
@@ -11,6 +11,7 @@
#include <Throughput.h>
using namespace std;
+using namespace Demo;
void
menu()
diff --git a/cpp/demo/Ice/throughput/Throughput.ice b/cpp/demo/Ice/throughput/Throughput.ice
index 20195e9924e..d0346f0dfd9 100644
--- a/cpp/demo/Ice/throughput/Throughput.ice
+++ b/cpp/demo/Ice/throughput/Throughput.ice
@@ -10,6 +10,9 @@
#ifndef THROUGHPUT_ICE
#define THROUGHPUT_ICE
+module Demo
+{
+
const int seqSize = 500000;
sequence<byte> ByteSeq;
@@ -21,4 +24,6 @@ interface Throughput
ByteSeq echoByteSeq(ByteSeq seq);
};
+};
+
#endif
diff --git a/cpp/demo/Ice/throughput/ThroughputI.h b/cpp/demo/Ice/throughput/ThroughputI.h
index de7a31f69b8..ff383861e04 100644
--- a/cpp/demo/Ice/throughput/ThroughputI.h
+++ b/cpp/demo/Ice/throughput/ThroughputI.h
@@ -13,35 +13,35 @@
#include <Ice/Ice.h>
#include <Throughput.h>
-class ThroughputI : public Throughput
+class ThroughputI : public ::Demo::Throughput
{
public:
ThroughputI() :
- _seq(seqSize, 0)
+ _seq(::Demo::seqSize, 0)
{
}
virtual void
- sendByteSeq(const ByteSeq&, const Ice::Current&)
+ sendByteSeq(const ::Demo::ByteSeq&, const Ice::Current&)
{
}
- virtual ByteSeq
+ virtual ::Demo::ByteSeq
recvByteSeq(const Ice::Current&)
{
return _seq;
}
- virtual ByteSeq
- echoByteSeq(const ByteSeq& seq, const Ice::Current&)
+ virtual ::Demo::ByteSeq
+ echoByteSeq(const ::Demo::ByteSeq& seq, const Ice::Current&)
{
return seq;
}
private:
- ByteSeq _seq;
+ ::Demo::ByteSeq _seq;
};
#endif
diff --git a/cpp/demo/Ice/value/Client.cpp b/cpp/demo/Ice/value/Client.cpp
index a6adfe4b0dd..3ee1c424772 100644
--- a/cpp/demo/Ice/value/Client.cpp
+++ b/cpp/demo/Ice/value/Client.cpp
@@ -12,6 +12,7 @@
#include <ObjectFactory.h>
using namespace std;
+using namespace Demo;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/demo/Ice/value/Value.ice b/cpp/demo/Ice/value/Value.ice
index b8f03f2448b..22fbecbcf17 100644
--- a/cpp/demo/Ice/value/Value.ice
+++ b/cpp/demo/Ice/value/Value.ice
@@ -10,6 +10,9 @@
#ifndef VALUE_ICE
#define VALUE_ICE
+module Demo
+{
+
class Simple
{
string message;
@@ -41,4 +44,6 @@ class Initial
void throwDerivedPrinter() throws DerivedPrinterException;
};
+};
+
#endif
diff --git a/cpp/demo/Ice/value/ValueI.cpp b/cpp/demo/Ice/value/ValueI.cpp
index 80ff5b609bc..17433b16887 100644
--- a/cpp/demo/Ice/value/ValueI.cpp
+++ b/cpp/demo/Ice/value/ValueI.cpp
@@ -11,6 +11,7 @@
#include <ValueI.h>
using namespace std;
+using namespace Demo;
InitialI::InitialI(::Ice::ObjectAdapterPtr adapter)
{
diff --git a/cpp/demo/Ice/value/ValueI.h b/cpp/demo/Ice/value/ValueI.h
index 3f656eb1297..67393d44185 100644
--- a/cpp/demo/Ice/value/ValueI.h
+++ b/cpp/demo/Ice/value/ValueI.h
@@ -12,34 +12,34 @@
#include <Value.h>
-class InitialI : public Initial
+class InitialI : public ::Demo::Initial
{
public:
InitialI(::Ice::ObjectAdapterPtr);
- virtual SimplePtr getSimple(const Ice::Current&);
+ virtual ::Demo::SimplePtr getSimple(const Ice::Current&);
virtual ::Ice::ObjectPtr getPrinterAsObject(const Ice::Current&);
- virtual void getPrinter(PrinterPtr&, PrinterPrx&, const Ice::Current&);
- virtual PrinterPtr getDerivedPrinter(const Ice::Current&);
+ virtual void getPrinter(::Demo::PrinterPtr&, ::Demo::PrinterPrx&, const Ice::Current&);
+ virtual ::Demo::PrinterPtr getDerivedPrinter(const Ice::Current&);
virtual void throwDerivedPrinter(const Ice::Current&);
private:
- SimplePtr _simple;
- PrinterPtr _printer;
- PrinterPrx _printerProxy;
- DerivedPrinterPtr _derivedPrinter;
+ ::Demo::SimplePtr _simple;
+ ::Demo::PrinterPtr _printer;
+ ::Demo::PrinterPrx _printerProxy;
+ ::Demo::DerivedPrinterPtr _derivedPrinter;
};
-class PrinterI : virtual public Printer
+class PrinterI : virtual public ::Demo::Printer
{
public:
virtual void printBackwards(const Ice::Current&);
};
-class DerivedPrinterI : virtual public DerivedPrinter, virtual public PrinterI
+class DerivedPrinterI : virtual public ::Demo::DerivedPrinter, virtual public PrinterI
{
public:
diff --git a/cpp/demo/IceBox/hello/Client.cpp b/cpp/demo/IceBox/hello/Client.cpp
index 6cb32a985bb..aa2d5870e06 100644
--- a/cpp/demo/IceBox/hello/Client.cpp
+++ b/cpp/demo/IceBox/hello/Client.cpp
@@ -11,6 +11,7 @@
#include <Hello.h>
using namespace std;
+using namespace Demo;
void
menu()
diff --git a/cpp/demo/IceBox/hello/Hello.ice b/cpp/demo/IceBox/hello/Hello.ice
index f7344f0d112..52d80d07463 100644
--- a/cpp/demo/IceBox/hello/Hello.ice
+++ b/cpp/demo/IceBox/hello/Hello.ice
@@ -10,10 +10,15 @@
#ifndef HELLO_ICE
#define HELLO_ICE
+module Demo
+{
+
interface Hello
{
void sayHello();
void shutdown();
};
+};
+
#endif
diff --git a/cpp/demo/IceBox/hello/HelloI.h b/cpp/demo/IceBox/hello/HelloI.h
index ab98269ae92..0ea0331c33f 100644
--- a/cpp/demo/IceBox/hello/HelloI.h
+++ b/cpp/demo/IceBox/hello/HelloI.h
@@ -16,7 +16,7 @@
# define HELLO_API ICE_DECLSPEC_EXPORT
#endif
-class HELLO_API HelloI : public Hello
+class HELLO_API HelloI : public Demo::Hello
{
public:
diff --git a/cpp/demo/IcePack/hello/Client.cpp b/cpp/demo/IcePack/hello/Client.cpp
index e787c5a9c9b..59e46f40e56 100644
--- a/cpp/demo/IcePack/hello/Client.cpp
+++ b/cpp/demo/IcePack/hello/Client.cpp
@@ -12,6 +12,7 @@
#include <Hello.h>
using namespace std;
+using namespace Demo;
void
menu()
diff --git a/cpp/demo/IcePack/hello/Hello.ice b/cpp/demo/IcePack/hello/Hello.ice
index 1fa498dd67c..19f9c3af81e 100644
--- a/cpp/demo/IcePack/hello/Hello.ice
+++ b/cpp/demo/IcePack/hello/Hello.ice
@@ -10,6 +10,9 @@
#ifndef HELLO_ICE
#define HELLO_ICE
+module Demo
+{
+
class Hello
{
/**
@@ -75,4 +78,6 @@ interface HelloFactory
throws NameNotExistException;
};
+};
+
#endif
diff --git a/cpp/demo/IcePack/hello/HelloI.cpp b/cpp/demo/IcePack/hello/HelloI.cpp
index fd8f88729a8..0b95713079f 100644
--- a/cpp/demo/IcePack/hello/HelloI.cpp
+++ b/cpp/demo/IcePack/hello/HelloI.cpp
@@ -12,6 +12,7 @@
#include <HelloI.h>
using namespace std;
+using namespace Demo;
HelloFactoryI::HelloFactoryI()
{
diff --git a/cpp/demo/IcePack/hello/HelloI.h b/cpp/demo/IcePack/hello/HelloI.h
index c0ac7c4ed40..bdd47e2ebf4 100644
--- a/cpp/demo/IcePack/hello/HelloI.h
+++ b/cpp/demo/IcePack/hello/HelloI.h
@@ -16,15 +16,15 @@
# define HELLO_API ICE_DECLSPEC_EXPORT
#endif
-class HELLO_API HelloFactoryI : public HelloFactory, public IceUtil::Mutex
+class HELLO_API HelloFactoryI : public Demo::HelloFactory, public IceUtil::Mutex
{
public:
HelloFactoryI();
- virtual HelloPrx create(const std::string&, const Ice::Current&);
+ virtual Demo::HelloPrx create(const std::string&, const Ice::Current&);
- virtual HelloPrx find(const std::string&, const Ice::Current&) const;
+ virtual Demo::HelloPrx find(const std::string&, const Ice::Current&) const;
private:
@@ -32,7 +32,7 @@ private:
};
-class HELLO_API HelloI : public Hello
+class HELLO_API HelloI : public Demo::Hello
{
public:
diff --git a/cpp/demo/IcePack/simple/Client.cpp b/cpp/demo/IcePack/simple/Client.cpp
index 1d63eb1785f..c516fca9a3a 100644
--- a/cpp/demo/IcePack/simple/Client.cpp
+++ b/cpp/demo/IcePack/simple/Client.cpp
@@ -12,6 +12,7 @@
#include <Hello.h>
using namespace std;
+using namespace Demo;
void
menu()
diff --git a/cpp/demo/IcePack/simple/Hello.ice b/cpp/demo/IcePack/simple/Hello.ice
index 9b532a2e9a8..4ce83cbc4c1 100644
--- a/cpp/demo/IcePack/simple/Hello.ice
+++ b/cpp/demo/IcePack/simple/Hello.ice
@@ -10,10 +10,15 @@
#ifndef HELLO_ICE
#define HELLO_ICE
+module Demo
+{
+
interface Hello
{
nonmutating void sayHello();
idempotent void shutdown();
};
+};
+
#endif
diff --git a/cpp/demo/IcePack/simple/HelloI.h b/cpp/demo/IcePack/simple/HelloI.h
index b3ca691c7e0..9d78cbe4f50 100644
--- a/cpp/demo/IcePack/simple/HelloI.h
+++ b/cpp/demo/IcePack/simple/HelloI.h
@@ -12,7 +12,7 @@
#include <Hello.h>
-class HelloI : public Hello
+class HelloI : public Demo::Hello
{
public:
diff --git a/cpp/demo/IceStorm/clock/Clock.ice b/cpp/demo/IceStorm/clock/Clock.ice
index 23710fdc4fd..4be4d33ab04 100644
--- a/cpp/demo/IceStorm/clock/Clock.ice
+++ b/cpp/demo/IceStorm/clock/Clock.ice
@@ -10,9 +10,14 @@
#ifndef CLOCK_ICE
#define CLOCK_ICE
+module Demo
+{
+
interface Clock
{
void tick();
};
+};
+
#endif
diff --git a/cpp/demo/IceStorm/clock/ClockI.h b/cpp/demo/IceStorm/clock/ClockI.h
index 3918b942a10..6a6a386875b 100644
--- a/cpp/demo/IceStorm/clock/ClockI.h
+++ b/cpp/demo/IceStorm/clock/ClockI.h
@@ -12,7 +12,7 @@
#include <Clock.h>
-class ClockI : public Clock
+class ClockI : public Demo::Clock
{
public:
diff --git a/cpp/demo/IceStorm/clock/Publisher.cpp b/cpp/demo/IceStorm/clock/Publisher.cpp
index 9c358d87d99..42c970832a4 100644
--- a/cpp/demo/IceStorm/clock/Publisher.cpp
+++ b/cpp/demo/IceStorm/clock/Publisher.cpp
@@ -13,6 +13,7 @@
#include <Clock.h>
using namespace std;
+using namespace Demo;
class Publisher : public Ice::Application
{
diff --git a/cpp/demo/IceStorm/clock/Subscriber.cpp b/cpp/demo/IceStorm/clock/Subscriber.cpp
index 2394b8d568e..e4387fae9de 100644
--- a/cpp/demo/IceStorm/clock/Subscriber.cpp
+++ b/cpp/demo/IceStorm/clock/Subscriber.cpp
@@ -16,6 +16,7 @@
#include <map>
using namespace std;
+using namespace Demo;
class Subscriber : public Ice::Application
{
diff --git a/cpp/include/Slice/Parser.h b/cpp/include/Slice/Parser.h
index 904a9e980f5..c3da0386092 100644
--- a/cpp/include/Slice/Parser.h
+++ b/cpp/include/Slice/Parser.h
@@ -81,6 +81,7 @@ class Const;
class Unit;
class CICompare;
class DerivedToBaseCompare;
+class ModulePartialCompare;
typedef ::IceUtil::Handle<GrammarBase> GrammarBasePtr;
typedef ::IceUtil::Handle<SyntaxTreeBase> SyntaxTreeBasePtr;
@@ -157,7 +158,6 @@ public:
SLICE_API bool derivedToBaseCompare(const ExceptionPtr&, const ExceptionPtr&);
#endif
-
// ----------------------------------------------------------------------
// ParserVisitor
// ----------------------------------------------------------------------
@@ -418,6 +418,8 @@ public:
void containerRecDependencies(std::set<ConstructedPtr>&); // Internal operation, don't use directly.
bool checkIntroduced(const std::string&, ContainedPtr = 0);
+ bool nameIsLegal(const std::string&, const char *);
+ bool checkForGlobalDef(const std::string&, const char *);
protected:
@@ -923,10 +925,11 @@ public:
bool usesProxies() const;
bool usesNonLocals() const;
bool usesConsts() const;
+ bool hardErrorForGlobals() const; // TODO: remove this once global definitions are outlawed.
StringList includeFiles() const;
- int parse(FILE*, bool);
+ int parse(FILE*, bool, bool = true); // TODO: remove third parameter once global definitions are outlawed.
virtual void destroy();
virtual void visit(ParserVisitor*);
@@ -941,6 +944,7 @@ private:
bool _all;
bool _allowIcePrefix;
bool _caseSensitive;
+ bool _hardErrorForGlobals; // TODO: remove this once global definitions are outlawed.
int _errors;
std::string _currentComment;
int _currentLine;
@@ -954,7 +958,7 @@ private:
std::map<std::string, ContainedList> _contentMap;
};
-extern SLICE_API Unit* unit; // The current parser for bison/flex
+extern SLICE_API Unit* unit; // The current parser for bison/flex
}
diff --git a/cpp/src/Slice/Grammar.y b/cpp/src/Slice/Grammar.y
index 166f5c45a1e..b182aebc0e5 100644
--- a/cpp/src/Slice/Grammar.y
+++ b/cpp/src/Slice/Grammar.y
@@ -88,6 +88,10 @@ slice_error(const char* s)
%token ICE_FLOATING_POINT_LITERAL
%token ICE_IDENT_OP
%token ICE_KEYWORD_OP
+%token ICE_METADATA_OPEN
+%token ICE_METADATA_CLOSE
+%token ICE_GLOBAL_METADATA_OPEN
+%token ICE_GLOBAL_METADATA_CLOSE
%%
@@ -103,16 +107,16 @@ start
// ----------------------------------------------------------------------
global_meta_data
// ----------------------------------------------------------------------
-: '[' '[' string_list ']' ']'
+: ICE_GLOBAL_METADATA_OPEN string_list ICE_GLOBAL_METADATA_CLOSE
{
- $$ = $3;
+ $$ = $2;
}
;
// ----------------------------------------------------------------------
meta_data
// ----------------------------------------------------------------------
-: '[' string_list ']'
+: ICE_METADATA_OPEN string_list ICE_METADATA_CLOSE
{
$$ = $2;
}
@@ -145,10 +149,11 @@ definitions
unit->setSeenDefinition();
}
';' definitions
-| error ';' definitions
+| error ';'
{
yyerrok;
}
+definitions
| meta_data definition
{
unit->error("`;' missing after definition");
@@ -223,18 +228,28 @@ module_def
StringTokPtr ident = StringTokPtr::dynamicCast($2);
ContainerPtr cont = unit->currentContainer();
ModulePtr module = cont->createModule(ident->v);
- if(!module)
+ if(module)
+ {
+ cont->checkIntroduced(ident->v, module);
+ unit->pushContainer(module);
+ $$ = module;
+ }
+ else
{
- YYERROR; // Can't continue, jump to next yyerrok
+ $$ = 0;
}
- cont->checkIntroduced(ident->v, module);
- unit->pushContainer(module);
- $$ = module;
}
'{' definitions '}'
{
- unit->popContainer();
- $$ = $3;
+ if($3)
+ {
+ unit->popContainer();
+ $$ = $3;
+ }
+ else
+ {
+ $$ = 0;
+ }
}
;
@@ -273,17 +288,19 @@ exception_def
ExceptionPtr base = ExceptionPtr::dynamicCast($3);
ContainerPtr cont = unit->currentContainer();
ExceptionPtr ex = cont->createException(ident->v, base, local->v);
- if(!ex)
+ if(ex)
{
- YYERROR; // Can't continue, jump to next yyerrok
+ cont->checkIntroduced(ident->v, ex);
+ unit->pushContainer(ex);
}
- cont->checkIntroduced(ident->v, ex);
- unit->pushContainer(ex);
$$ = ex;
}
'{' exception_exports '}'
{
- unit->popContainer();
+ if($4);
+ {
+ unit->popContainer();
+ }
$$ = $4;
}
;
@@ -382,17 +399,19 @@ struct_def
StringTokPtr ident = StringTokPtr::dynamicCast($2);
ContainerPtr cont = unit->currentContainer();
StructPtr st = cont->createStruct(ident->v, local->v);
- if(!st)
+ if(st)
{
- YYERROR; // Can't continue, jump to next yyerrok
+ cont->checkIntroduced(ident->v, st);
+ unit->pushContainer(st);
}
- cont->checkIntroduced(ident->v, st);
- unit->pushContainer(st);
$$ = st;
}
'{' struct_exports '}'
{
- unit->popContainer();
+ if($3)
+ {
+ unit->popContainer();
+ }
$$ = $3;
//
@@ -480,18 +499,28 @@ class_def
bases->v.push_front(base);
}
ClassDefPtr cl = cont->createClassDef(ident->v, false, bases->v, local->v);
- if(!cl)
+ if(cl)
{
- YYERROR; // Can't continue, jump to next yyerrok
+ cont->checkIntroduced(ident->v, cl);
+ unit->pushContainer(cl);
+ $$ = cl;
+ }
+ else
+ {
+ $$ = 0;
}
- cont->checkIntroduced(ident->v, cl);
- unit->pushContainer(cl);
- $$ = cl;
}
'{' class_exports '}'
{
- unit->popContainer();
- $$ = $5;
+ if($5)
+ {
+ unit->popContainer();
+ $$ = $5;
+ }
+ else
+ {
+ $$ = 0;
+ }
}
;
@@ -664,66 +693,144 @@ operation_preamble
TypePtr returnType = TypePtr::dynamicCast($1);
string name = StringTokPtr::dynamicCast($2)->v;
ClassDefPtr cl = ClassDefPtr::dynamicCast(unit->currentContainer());
- assert(cl);
- OperationPtr op = cl->createOperation(name, returnType);
- cl->checkIntroduced(name, op);
- unit->pushContainer(op);
- $$ = op;
+ if(cl)
+ {
+ OperationPtr op = cl->createOperation(name, returnType);
+ if(op)
+ {
+ cl->checkIntroduced(name, op);
+ unit->pushContainer(op);
+ $$ = op;
+ }
+ else
+ {
+ $$ = 0;
+ }
+ }
+ else
+ {
+ $$ = 0;
+ }
}
| ICE_NONMUTATING return_type ICE_IDENT_OP
{
TypePtr returnType = TypePtr::dynamicCast($2);
string name = StringTokPtr::dynamicCast($3)->v;
ClassDefPtr cl = ClassDefPtr::dynamicCast(unit->currentContainer());
- assert(cl);
- OperationPtr op = cl->createOperation(name, returnType, Operation::Nonmutating);
- cl->checkIntroduced(name, op);
- unit->pushContainer(op);
- $$ = op;
+ if(cl)
+ {
+ OperationPtr op = cl->createOperation(name, returnType, Operation::Nonmutating);
+ if(op)
+ {
+ cl->checkIntroduced(name, op);
+ unit->pushContainer(op);
+ $$ = op;
+ }
+ else
+ {
+ $$ = 0;
+ }
+ }
+ else
+ {
+ $$ = 0;
+ }
}
| ICE_IDEMPOTENT return_type ICE_IDENT_OP
{
TypePtr returnType = TypePtr::dynamicCast($2);
string name = StringTokPtr::dynamicCast($3)->v;
ClassDefPtr cl = ClassDefPtr::dynamicCast(unit->currentContainer());
- assert(cl);
- OperationPtr op = cl->createOperation(name, returnType, Operation::Idempotent);
- cl->checkIntroduced(name, op);
- unit->pushContainer(op);
- $$ = op;
+ if(cl)
+ {
+ OperationPtr op = cl->createOperation(name, returnType, Operation::Idempotent);
+ if(op)
+ {
+ cl->checkIntroduced(name, op);
+ unit->pushContainer(op);
+ $$ = op;
+ }
+ else
+ {
+ $$ = 0;
+ }
+ }
+ else
+ {
+ $$ = 0;
+ }
}
| return_type ICE_KEYWORD_OP
{
TypePtr returnType = TypePtr::dynamicCast($1);
string name = StringTokPtr::dynamicCast($2)->v;
ClassDefPtr cl = ClassDefPtr::dynamicCast(unit->currentContainer());
- assert(cl);
- OperationPtr op = cl->createOperation(name, returnType);
- unit->pushContainer(op);
- unit->error("keyword `" + name + "' cannot be used as operation name");
- $$ = op;
+ if(cl)
+ {
+ OperationPtr op = cl->createOperation(name, returnType);
+ if(op)
+ {
+ unit->pushContainer(op);
+ unit->error("keyword `" + name + "' cannot be used as operation name");
+ $$ = op;
+ }
+ else
+ {
+ $$ = 0;
+ }
+ }
+ else
+ {
+ $$ = 0;
+ }
}
| ICE_NONMUTATING return_type ICE_KEYWORD_OP
{
TypePtr returnType = TypePtr::dynamicCast($2);
string name = StringTokPtr::dynamicCast($3)->v;
ClassDefPtr cl = ClassDefPtr::dynamicCast(unit->currentContainer());
- assert(cl);
- OperationPtr op = cl->createOperation(name, returnType, Operation::Nonmutating);
- unit->pushContainer(op);
- unit->error("keyword `" + name + "' cannot be used as operation name");
- $$ = op;
+ if(cl)
+ {
+ OperationPtr op = cl->createOperation(name, returnType, Operation::Nonmutating);
+ if(op)
+ {
+ unit->pushContainer(op);
+ unit->error("keyword `" + name + "' cannot be used as operation name");
+ $$ = op;
+ }
+ else
+ {
+ $$ = 0;
+ }
+ }
+ else
+ {
+ $$ = 0;
+ }
}
| ICE_IDEMPOTENT return_type ICE_KEYWORD_OP
{
TypePtr returnType = TypePtr::dynamicCast($2);
string name = StringTokPtr::dynamicCast($3)->v;
ClassDefPtr cl = ClassDefPtr::dynamicCast(unit->currentContainer());
- assert(cl);
- OperationPtr op = cl->createOperation(name, returnType, Operation::Idempotent);
- unit->pushContainer(op);
- unit->error("keyword `" + name + "' cannot be used as operation name");
- $$ = op;
+ if(cl)
+ {
+ OperationPtr op = cl->createOperation(name, returnType, Operation::Idempotent);
+ if(op)
+ {
+ unit->pushContainer(op);
+ unit->error("keyword `" + name + "' cannot be used as operation name");
+ $$ = op;
+ }
+ else
+ {
+ return 0;
+ }
+ }
+ else
+ {
+ $$ = 0;
+ }
}
;
@@ -732,8 +839,15 @@ operation
// ----------------------------------------------------------------------
: operation_preamble parameters ')'
{
- unit->popContainer();
- $$ = $1;
+ if($1)
+ {
+ unit->popContainer();
+ $$ = $1;
+ }
+ else
+ {
+ $$ = 0;
+ }
}
throws
{
@@ -747,7 +861,10 @@ throws
}
| operation_preamble error ')'
{
- unit->popContainer();
+ if($1)
+ {
+ unit->popContainer();
+ }
yyerrok;
}
throws
@@ -808,18 +925,28 @@ interface_def
ContainerPtr cont = unit->currentContainer();
ClassListTokPtr bases = ClassListTokPtr::dynamicCast($3);
ClassDefPtr cl = cont->createClassDef(ident->v, true, bases->v, local->v);
- if(!cl)
+ if(cl)
{
- YYERROR; // Can't continue, jump to next yyerrok
+ cont->checkIntroduced(ident->v, cl);
+ unit->pushContainer(cl);
+ $$ = cl;
+ }
+ else
+ {
+ $$ = 0;
}
- cont->checkIntroduced(ident->v, cl);
- unit->pushContainer(cl);
- $$ = cl;
}
'{' interface_exports '}'
{
- unit->popContainer();
- $$ = $4;
+ if($4)
+ {
+ unit->popContainer();
+ $$ = $4;
+ }
+ else
+ {
+ $$ = 0;
+ }
}
;
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index 3f1fd5ec1a5..6aeef20ab46 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -424,6 +424,7 @@ Slice::Container::createModule(const string& name)
ContainedList matches = _unit->findContents(thisScope() + name);
matches.sort(); // Modules can occur many times...
matches.unique(); // ... but we only want one instance of each.
+
for(ContainedList::const_iterator p = matches.begin(); p != matches.end(); ++p)
{
bool differsOnlyInCase = !_unit->caseSensitive() && matches.front()->name() != name;
@@ -438,22 +439,27 @@ Slice::Container::createModule(const string& name)
return 0;
}
}
- else if(differsOnlyInCase)
+ else if(!differsOnlyInCase)
{
- string msg = "module `" + name + "' differs only in capitalization from ";
- msg += matches.front()->kindOf() + " name `" + matches.front()->name() + "'";
+ string msg = "redefinition of " + matches.front()->kindOf() + " `" + matches.front()->name();
+ msg += "' as module";
_unit->error(msg);
return 0;
}
else
{
- string msg = "redefinition of " + matches.front()->kindOf() + " `" + matches.front()->name();
- msg += "' as module";
+ string msg = "module `" + name + "' differs only in capitalization from ";
+ msg += matches.front()->kindOf() + " name `" + matches.front()->name() + "'";
_unit->error(msg);
return 0;
}
}
+ if(!nameIsLegal(name, "module"))
+ {
+ return 0;
+ }
+
ModulePtr q = new Module(this, name);
_contents.push_back(q);
return q;
@@ -517,6 +523,16 @@ Slice::Container::createClassDef(const string& name, bool intf, const ClassList&
return 0;
}
+ if(!nameIsLegal(name, intf ? "interface" : "class"))
+ {
+ return 0;
+ }
+
+ if(!checkForGlobalDef(name, intf ? "interface" : "class"))
+ {
+ return 0;
+ }
+
ClassDecl::checkBasesAreLegal(name, local, bases, _unit);
ClassDefPtr def = new ClassDef(this, name, intf, bases, local);
@@ -589,6 +605,16 @@ Slice::Container::createClassDecl(const string& name, bool intf, bool local)
}
}
+ if(!nameIsLegal(name, intf ? "interface" : "class"))
+ {
+ return 0;
+ }
+
+ if(!checkForGlobalDef(name, intf ? "interface" : "class"))
+ {
+ return 0;
+ }
+
//
// Multiple declarations are permissible. But if we do already
// have a declaration for the class in this container, we don't
@@ -608,6 +634,7 @@ Slice::Container::createClassDecl(const string& name, bool intf, bool local)
}
}
+ _unit->currentContainer();
ClassDeclPtr decl = new ClassDecl(this, name, intf, local);
_contents.push_back(decl);
@@ -650,6 +677,10 @@ Slice::Container::createException(const string& name, const ExceptionPtr& base,
}
}
+ nameIsLegal(name, "exception"); // Don't return here -- we create the exception anyway
+
+ checkForGlobalDef(name, "exception"); // Don't return here -- we create the exception anyway
+
//
// If this definition is non-local, base cannot be local.
//
@@ -694,6 +725,10 @@ Slice::Container::createStruct(const string& name, bool local)
}
}
+ nameIsLegal(name, "structure"); // Don't return here -- we create the struct anyway.
+
+ checkForGlobalDef(name, "structure"); // Don't return here -- we create the struct anyway.
+
StructPtr p = new Struct(this, name, local);
_contents.push_back(p);
return p;
@@ -730,6 +765,10 @@ Slice::Container::createSequence(const string& name, const TypePtr& type, bool l
}
}
+ nameIsLegal(name, "sequence"); // Don't return here -- we create the sequence anyway.
+
+ checkForGlobalDef(name, "sequence"); // Don't return here -- we create the sequence anyway.
+
//
// If sequence is non-local, element type cannot be local.
//
@@ -775,6 +814,10 @@ Slice::Container::createDictionary(const string& name, const TypePtr& keyType, c
}
}
+ nameIsLegal(name, "dictionary"); // Don't return here -- we create the dictionary anyway.
+
+ checkForGlobalDef(name, "dictionary"); // Don't return here -- we create the dictionary anyway.
+
if(!Dictionary::legalKeyType(keyType))
{
_unit->error("dictionary `" + name + "' uses an illegal key type");
@@ -831,6 +874,10 @@ Slice::Container::createEnum(const string& name, bool local)
}
}
+ nameIsLegal(name, "enumeration"); // Don't return here -- we create the enumeration anyway.
+
+ checkForGlobalDef(name, "enumeration"); // Don't return here -- we create the enumeration anyway.
+
EnumPtr p = new Enum(this, name, local);
_contents.push_back(p);
return p;
@@ -867,6 +914,8 @@ Slice::Container::createEnumerator(const string& name)
}
}
+ nameIsLegal(name, "enumerator"); // Don't return here -- we create the enumerator anyway.
+
EnumeratorPtr p = new Enumerator(this, name);
_contents.push_back(p);
return p;
@@ -904,6 +953,10 @@ Slice::Container::createConst(const string name, const TypePtr& constType,
}
}
+ nameIsLegal(name, "constant"); // Don't return here -- we create the constant anyway.
+
+ checkForGlobalDef(name, "constant"); // Don't return here -- we create the constant anyway.
+
//
// Check that the constant type is legal.
//
@@ -1788,6 +1841,68 @@ Slice::Container::checkIntroduced(const string& scoped, ContainedPtr namedThing)
return true;
}
+bool
+Slice::Container::nameIsLegal(const string& newName, const char* newConstruct)
+{
+ //
+ // Check whether enclosing module has the same name.
+ //
+ if(ModulePtr::dynamicCast(this))
+ {
+ ContainedPtr contained = ContainedPtr::dynamicCast(this);
+ assert(contained);
+ if(newName == contained->name())
+ {
+ string msg = newConstruct;
+ msg += " name `" + newName + "' must differ from the name of its immediately enclosing module";
+ _unit->error(msg);
+ return false;
+ }
+ if(!_unit->caseSensitive())
+ {
+ string name = newName;
+ toLower(name);
+ string thisName = contained->name();
+ toLower(thisName);
+ if(name == thisName)
+ {
+ string msg = newConstruct;
+ msg += " name `" + name + "' cannot differ only in capitalization from its immediately enclosing "
+ "module name `" + contained->name() + "'";
+ _unit->error(msg);
+ return false;
+ }
+ }
+ }
+ return true;
+}
+
+bool
+Slice::Container::checkForGlobalDef(const string& name, const char* newConstruct)
+{
+ if(dynamic_cast<Unit*>(this) && strcmp(newConstruct, "module"))
+ {
+ if(_unit->hardErrorForGlobals())
+ {
+ static const string vowels = "aeiou";
+ string glottalStop;
+ if(vowels.find_first_of(newConstruct[0]) != string::npos)
+ {
+ glottalStop = "n";
+ }
+ _unit->error("`" + name + "': a" + glottalStop + " " + newConstruct +
+ " can be defined only at module scope");
+ return false;
+ }
+ else
+ {
+ _unit->warning("`" + name + "': " + newConstruct + " definitions at global scope are deprecated");
+ }
+ return true;
+ }
+ return true;
+}
+
Slice::Container::Container(const UnitPtr& unit) :
SyntaxTreeBase(unit)
{
@@ -2106,6 +2221,7 @@ Slice::ClassDecl::ClassDecl(const ContainerPtr& container, const string& name, b
Constructed(container, name, local),
_interface(intf)
{
+ _unit->currentContainer();
}
//
@@ -2276,7 +2392,6 @@ Slice::ClassDef::createOperation(const string& name,
return 0;
}
-
//
// Check whether enclosing interface/class has the same name.
//
@@ -4803,20 +4918,31 @@ Slice::Unit::usesConsts() const
return false;
}
+bool
+Slice::Unit::hardErrorForGlobals() const
+{
+ return _hardErrorForGlobals;
+}
+
StringList
Slice::Unit::includeFiles() const
{
return _includeFiles;
}
+//
+// TODO: remove third parameter once global definitions are outlawed.
+//
int
-Slice::Unit::parse(FILE* file, bool debug)
+Slice::Unit::parse(FILE* file, bool debug, bool hardErrorForGlobals)
{
slice_debug = debug ? 1 : 0;
assert(!Slice::unit);
Slice::unit = this;
+ _hardErrorForGlobals = hardErrorForGlobals; // TODO: remove this once global definitions are outlawed.
+
_currentComment = "";
_currentLine = 1;
_currentIncludeLevel = 0;
diff --git a/cpp/src/Slice/Scanner.l b/cpp/src/Slice/Scanner.l
index 76525a689a5..e80e2e0f753 100644
--- a/cpp/src/Slice/Scanner.l
+++ b/cpp/src/Slice/Scanner.l
@@ -131,6 +131,22 @@ floating_literal (({fractional_constant}{exponent_part}?)|((\+|-)?[[:digit:]]+{e
return ICE_SCOPE_DELIMITER;
}
+"[" {
+ return ICE_METADATA_OPEN;
+}
+
+"]" {
+ return ICE_METADATA_CLOSE;
+}
+
+"[[" {
+ return ICE_GLOBAL_METADATA_OPEN;
+}
+
+"]]" {
+ return ICE_GLOBAL_METADATA_CLOSE;
+}
+
{identifier}[[:space:]]*"(" {
StringTokPtr ident = new StringTok;
ident->v = *yytext == '\\' ? yytext + 1 : yytext;
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 24f07363326..1ad5b03a644 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -401,7 +401,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
C << sp << nl << "const ::std::string " << scoped.substr(2) << "::_name = \"" << p->scoped().substr(2) << "\";";
C << sp << nl << "const ::std::string&" << nl << scoped.substr(2) << "::ice_name() const";
C << sb;
- C << nl << "return " << scoped.substr(2) << "::_name;";
+ C << nl << "return " << scoped << "::_name;";
C << eb;
if(p->isLocal())
@@ -426,7 +426,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
H << sp << nl << "static const ::IceInternal::UserExceptionFactoryPtr& ice_factory();";
C << sp << nl << "const ::IceInternal::UserExceptionFactoryPtr&";
- C << nl << scoped.substr(2) << "::ice_factory()";
+ C << nl << scoped << "::ice_factory()";
C << sb;
C << nl << "return _factory;";
C << eb;
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp
index 1b554a842e5..8caeb79562e 100644
--- a/cpp/src/slice2cpp/Main.cpp
+++ b/cpp/src/slice2cpp/Main.cpp
@@ -270,7 +270,7 @@ main(int argc, char* argv[])
}
UnitPtr u = Unit::createUnit(false, false, ice, caseSensitive);
- int parseStatus = u->parse(cppHandle, debug);
+ int parseStatus = u->parse(cppHandle, debug, false);
if(!icecpp.close())
{
diff --git a/cpp/src/slice2docbook/Main.cpp b/cpp/src/slice2docbook/Main.cpp
index a48fb324789..11bb946ee98 100644
--- a/cpp/src/slice2docbook/Main.cpp
+++ b/cpp/src/slice2docbook/Main.cpp
@@ -202,7 +202,7 @@ main(int argc, char* argv[])
return EXIT_FAILURE;
}
- status = p->parse(cppHandle, debug);
+ status = p->parse(cppHandle, debug, false);
if(!icecpp.close())
{
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp
index 96907c2e5b7..59baaff2c16 100644
--- a/cpp/src/slice2freeze/Main.cpp
+++ b/cpp/src/slice2freeze/Main.cpp
@@ -825,7 +825,7 @@ main(int argc, char* argv[])
return EXIT_FAILURE;
}
- status = u->parse(cppHandle, debug);
+ status = u->parse(cppHandle, debug, false);
if(!icecpp.close())
{
diff --git a/cpp/src/slice2freezej/Main.cpp b/cpp/src/slice2freezej/Main.cpp
index 129e52f0162..4079ba2ed0a 100644
--- a/cpp/src/slice2freezej/Main.cpp
+++ b/cpp/src/slice2freezej/Main.cpp
@@ -883,7 +883,7 @@ main(int argc, char* argv[])
return EXIT_FAILURE;
}
- status = u->parse(cppHandle, debug);
+ status = u->parse(cppHandle, debug, false);
if(!icecpp.close())
{
diff --git a/cpp/src/slice2java/Main.cpp b/cpp/src/slice2java/Main.cpp
index 8676ec64a96..d352dda0e22 100644
--- a/cpp/src/slice2java/Main.cpp
+++ b/cpp/src/slice2java/Main.cpp
@@ -236,7 +236,7 @@ main(int argc, char* argv[])
}
UnitPtr p = Unit::createUnit(false, false, ice, caseSensitive);
- int parseStatus = p->parse(cppHandle, debug);
+ int parseStatus = p->parse(cppHandle, debug, false);
if(!icecpp.close())
{
diff --git a/cpp/test/FreezeScript/dbmap/Makefile b/cpp/test/FreezeScript/dbmap/Makefile
index f36f22aeff3..5c80289b11e 100644
--- a/cpp/test/FreezeScript/dbmap/Makefile
+++ b/cpp/test/FreezeScript/dbmap/Makefile
@@ -31,7 +31,7 @@ $(CLIENT): $(OBJS)
IntSMap.h IntSMap.cpp: $(SLICE2FREEZE)
rm -f IntSMap.h IntSMap.cpp
- $(SLICE2FREEZE) --dict IntSMap,int,::S IntSMap TestOld.ice
+ $(SLICE2FREEZE) --dict IntSMap,int,::Test::S IntSMap TestOld.ice
clean::
rm -f IntSMap.h IntSMap.cpp
diff --git a/cpp/test/FreezeScript/dbmap/TestNew.ice b/cpp/test/FreezeScript/dbmap/TestNew.ice
index 1a1b1006faf..8b7d072801f 100644
--- a/cpp/test/FreezeScript/dbmap/TestNew.ice
+++ b/cpp/test/FreezeScript/dbmap/TestNew.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E3, E1, E2 };
sequence<string> BoolStringSeq;
@@ -201,3 +204,5 @@ struct S
C dAsCObject;
D dObject;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/TestOld.ice b/cpp/test/FreezeScript/dbmap/TestOld.ice
index 04c0270d2ee..a40b8a9f4e8 100644
--- a/cpp/test/FreezeScript/dbmap/TestOld.ice
+++ b/cpp/test/FreezeScript/dbmap/TestOld.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
sequence<bool> BoolStringSeq;
@@ -201,3 +204,5 @@ struct S
C dAsCObject;
D dObject;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/check.xml b/cpp/test/FreezeScript/dbmap/check.xml
index c8cfcd1331e..8194ef023b3 100644
--- a/cpp/test/FreezeScript/dbmap/check.xml
+++ b/cpp/test/FreezeScript/dbmap/check.xml
@@ -1,14 +1,14 @@
<transformdb>
- <database key="int" value="::S">
+ <database key="int" value="::Test::S">
<record>
</record>
</database>
<!-- enum ::E -->
- <transform type="::E"/>
+ <transform type="::Test::E"/>
<!-- struct ::S -->
- <transform type="::S">
+ <transform type="::Test::S">
<!-- Primitives -->
@@ -54,7 +54,7 @@
<fail test="new.stringToFloat - 2920.1 > 0.001"/>
<fail test="new.stringToDouble - 9290.9 > 0.001"/>
<fail test="new.stringToString != 'hello world'"/>
- <fail test="new.stringToEnum != ::New::E1"/>
+ <fail test="new.stringToEnum != ::New::Test::E1"/>
<!-- Sequences -->
@@ -217,8 +217,8 @@
<fail test="new.stringSeqToStringSeq[1] != 'world'"/>
<fail test="new.stringSeqToEnumSeq.length != 2"/>
- <fail test="new.stringSeqToEnumSeq[0] != ::New::E2"/>
- <fail test="new.stringSeqToEnumSeq[1] != ::New::E3"/>
+ <fail test="new.stringSeqToEnumSeq[0] != ::New::Test::E2"/>
+ <fail test="new.stringSeqToEnumSeq[1] != ::New::Test::E3"/>
<!-- Dictionaries -->
@@ -269,40 +269,40 @@
<fail test="new.stringToDoubleDict[1] - 9290.9 > 0.001"/>
<fail test="new.stringToEnumDict.length != 2"/>
- <fail test="new.stringToEnumDict[0] != ::New::E2"/>
- <fail test="new.stringToEnumDict[1] != ::New::E3"/>
+ <fail test="new.stringToEnumDict[0] != ::New::Test::E2"/>
+ <fail test="new.stringToEnumDict[1] != ::New::Test::E3"/>
<!-- Objects -->
<fail test="new.nilObject != nil"/>
- <fail test="new.baseObject.ice_id != '::F'"/>
+ <fail test="new.baseObject.ice_id != '::Test::F'"/>
<fail test="new.baseObject.stringToEnumSeq.length != 2"/>
- <fail test="new.baseObject.stringToEnumSeq[0] != ::New::E1"/>
- <fail test="new.baseObject.stringToEnumSeq[1] != ::New::E3"/>
+ <fail test="new.baseObject.stringToEnumSeq[0] != ::New::Test::E1"/>
+ <fail test="new.baseObject.stringToEnumSeq[1] != ::New::Test::E3"/>
- <fail test="new.cObject.ice_id != '::C'"/>
+ <fail test="new.cObject.ice_id != '::Test::C'"/>
<fail test="new.cObject.boolToStringDict.length != 2"/>
<fail test="new.cObject.boolToStringDict[0] != 'false'"/>
<fail test="new.cObject.boolToStringDict[1] != 'true'"/>
- <fail test="new.dAsCObject.ice_id != '::D'"/>
+ <fail test="new.dAsCObject.ice_id != '::Test::D'"/>
<fail test="new.dAsCObject.boolToStringDict.length != 2"/>
<fail test="new.dAsCObject.boolToStringDict[0] != 'false'"/>
<fail test="new.dAsCObject.boolToStringDict[1] != 'true'"/>
<fail test="new.dAsCObject.stringToByteSeq.length != 2"/>
<fail test="new.dAsCObject.stringToByteSeq[0] != 0"/>
<fail test="new.dAsCObject.stringToByteSeq[1] != 255"/>
- <fail test="new.dAsCObject.obj.ice_id != '::F'"/>
+ <fail test="new.dAsCObject.obj.ice_id != '::Test::F'"/>
- <fail test="new.dObject.ice_id != '::D'"/>
+ <fail test="new.dObject.ice_id != '::Test::D'"/>
<fail test="new.dObject.boolToStringDict.length != 2"/>
<fail test="new.dObject.boolToStringDict[0] != 'false'"/>
<fail test="new.dObject.boolToStringDict[1] != 'true'"/>
<fail test="new.dObject.stringToByteSeq.length != 2"/>
<fail test="new.dObject.stringToByteSeq[0] != 0"/>
<fail test="new.dObject.stringToByteSeq[1] != 255"/>
- <fail test="new.dObject.obj.ice_id != '::C'"/>
+ <fail test="new.dObject.obj.ice_id != '::Test::C'"/>
</transform>
</transformdb>
diff --git a/cpp/test/FreezeScript/dbmap/fail/01.err b/cpp/test/FreezeScript/dbmap/fail/01.err
index 664b9c6bf48..1249c9b14d4 100644
--- a/cpp/test/FreezeScript/dbmap/fail/01.err
+++ b/cpp/test/FreezeScript/dbmap/fail/01.err
@@ -1,44 +1,44 @@
-transformdb: unsupported type change in ::Seq1 sequence type from bool to byte
-transformdb: unsupported type change in ::D1 value type from bool to byte
+transformdb: unsupported type change in ::Test::Seq1 sequence type from bool to byte
+transformdb: unsupported type change in ::Test::D1 value type from bool to byte
transformdb: unsupported type change in c1m2 from bool to byte
transformdb: unsupported type change in c1m3 from bool to short
transformdb: unsupported type change in c1m4 from bool to int
transformdb: unsupported type change in c1m5 from bool to long
transformdb: unsupported type change in c1m6 from bool to float
transformdb: unsupported type change in c1m7 from bool to double
-transformdb: unsupported type change in c1m9 from bool to enumeration ::E
-transformdb: unsupported type change in c1m10 from bool to struct ::S1
-transformdb: unsupported type change in c1m11 from bool to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from bool to dictionary ::D1
+transformdb: unsupported type change in c1m9 from bool to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from bool to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from bool to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from bool to dictionary ::Test::D1
transformdb: unsupported type change in c1m13 from bool to Object*
transformdb: unsupported type change in c1m14 from bool to Object
-transformdb: unsupported type change in c1m15 from bool to ::C1*
-transformdb: unsupported type change in c1m16 from bool to class ::C1
+transformdb: unsupported type change in c1m15 from bool to ::Test::C1*
+transformdb: unsupported type change in c1m16 from bool to class ::Test::C1
transformdb: unsupported type change in c2m2 from bool to byte
transformdb: unsupported type change in c2m3 from bool to short
transformdb: unsupported type change in c2m4 from bool to int
transformdb: unsupported type change in c2m5 from bool to long
transformdb: unsupported type change in c2m6 from bool to float
transformdb: unsupported type change in c2m7 from bool to double
-transformdb: unsupported type change in c2m9 from bool to enumeration ::E
-transformdb: unsupported type change in c2m10 from bool to struct ::S1
-transformdb: unsupported type change in c2m11 from bool to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from bool to dictionary ::D1
+transformdb: unsupported type change in c2m9 from bool to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from bool to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from bool to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from bool to dictionary ::Test::D1
transformdb: unsupported type change in c2m13 from bool to Object*
transformdb: unsupported type change in c2m14 from bool to Object
-transformdb: unsupported type change in c2m15 from bool to ::C1*
-transformdb: unsupported type change in c2m16 from bool to class ::C1
+transformdb: unsupported type change in c2m15 from bool to ::Test::C1*
+transformdb: unsupported type change in c2m16 from bool to class ::Test::C1
transformdb: unsupported type change in m2 from bool to byte
transformdb: unsupported type change in m3 from bool to short
transformdb: unsupported type change in m4 from bool to int
transformdb: unsupported type change in m5 from bool to long
transformdb: unsupported type change in m6 from bool to float
transformdb: unsupported type change in m7 from bool to double
-transformdb: unsupported type change in m9 from bool to enumeration ::E
-transformdb: unsupported type change in m10 from bool to struct ::S1
-transformdb: unsupported type change in m11 from bool to sequence ::Seq1
-transformdb: unsupported type change in m12 from bool to dictionary ::D1
+transformdb: unsupported type change in m9 from bool to enumeration ::Test::E
+transformdb: unsupported type change in m10 from bool to struct ::Test::S1
+transformdb: unsupported type change in m11 from bool to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from bool to dictionary ::Test::D1
transformdb: unsupported type change in m13 from bool to Object*
transformdb: unsupported type change in m14 from bool to Object
-transformdb: unsupported type change in m15 from bool to ::C1*
-transformdb: unsupported type change in m16 from bool to class ::C1
+transformdb: unsupported type change in m15 from bool to ::Test::C1*
+transformdb: unsupported type change in m16 from bool to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/01_new.ice b/cpp/test/FreezeScript/dbmap/fail/01_new.ice
index 95007248cb7..1d8f02a9946 100644
--- a/cpp/test/FreezeScript/dbmap/fail/01_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/01_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/01_old.ice b/cpp/test/FreezeScript/dbmap/fail/01_old.ice
index 1c9b879782b..547335926a7 100644
--- a/cpp/test/FreezeScript/dbmap/fail/01_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/01_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
bool m15;
bool m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/02.err b/cpp/test/FreezeScript/dbmap/fail/02.err
index 7a3bcf56e99..67d9d397708 100644
--- a/cpp/test/FreezeScript/dbmap/fail/02.err
+++ b/cpp/test/FreezeScript/dbmap/fail/02.err
@@ -1,35 +1,35 @@
-transformdb: unsupported type change in ::Seq1 sequence type from byte to bool
-transformdb: unsupported type change in ::D1 value type from byte to bool
+transformdb: unsupported type change in ::Test::Seq1 sequence type from byte to bool
+transformdb: unsupported type change in ::Test::D1 value type from byte to bool
transformdb: unsupported type change in c1m1 from byte to bool
transformdb: unsupported type change in c1m6 from byte to float
transformdb: unsupported type change in c1m7 from byte to double
-transformdb: unsupported type change in c1m9 from byte to enumeration ::E
-transformdb: unsupported type change in c1m10 from byte to struct ::S1
-transformdb: unsupported type change in c1m11 from byte to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from byte to dictionary ::D1
+transformdb: unsupported type change in c1m9 from byte to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from byte to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from byte to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from byte to dictionary ::Test::D1
transformdb: unsupported type change in c1m13 from byte to Object*
transformdb: unsupported type change in c1m14 from byte to Object
-transformdb: unsupported type change in c1m15 from byte to ::C1*
-transformdb: unsupported type change in c1m16 from byte to class ::C1
+transformdb: unsupported type change in c1m15 from byte to ::Test::C1*
+transformdb: unsupported type change in c1m16 from byte to class ::Test::C1
transformdb: unsupported type change in c2m1 from byte to bool
transformdb: unsupported type change in c2m6 from byte to float
transformdb: unsupported type change in c2m7 from byte to double
-transformdb: unsupported type change in c2m9 from byte to enumeration ::E
-transformdb: unsupported type change in c2m10 from byte to struct ::S1
-transformdb: unsupported type change in c2m11 from byte to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from byte to dictionary ::D1
+transformdb: unsupported type change in c2m9 from byte to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from byte to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from byte to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from byte to dictionary ::Test::D1
transformdb: unsupported type change in c2m13 from byte to Object*
transformdb: unsupported type change in c2m14 from byte to Object
-transformdb: unsupported type change in c2m15 from byte to ::C1*
-transformdb: unsupported type change in c2m16 from byte to class ::C1
+transformdb: unsupported type change in c2m15 from byte to ::Test::C1*
+transformdb: unsupported type change in c2m16 from byte to class ::Test::C1
transformdb: unsupported type change in m1 from byte to bool
transformdb: unsupported type change in m6 from byte to float
transformdb: unsupported type change in m7 from byte to double
-transformdb: unsupported type change in m9 from byte to enumeration ::E
-transformdb: unsupported type change in m10 from byte to struct ::S1
-transformdb: unsupported type change in m11 from byte to sequence ::Seq1
-transformdb: unsupported type change in m12 from byte to dictionary ::D1
+transformdb: unsupported type change in m9 from byte to enumeration ::Test::E
+transformdb: unsupported type change in m10 from byte to struct ::Test::S1
+transformdb: unsupported type change in m11 from byte to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from byte to dictionary ::Test::D1
transformdb: unsupported type change in m13 from byte to Object*
transformdb: unsupported type change in m14 from byte to Object
-transformdb: unsupported type change in m15 from byte to ::C1*
-transformdb: unsupported type change in m16 from byte to class ::C1
+transformdb: unsupported type change in m15 from byte to ::Test::C1*
+transformdb: unsupported type change in m16 from byte to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/02_new.ice b/cpp/test/FreezeScript/dbmap/fail/02_new.ice
index 628159b01eb..a558a573d28 100644
--- a/cpp/test/FreezeScript/dbmap/fail/02_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/02_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/02_old.ice b/cpp/test/FreezeScript/dbmap/fail/02_old.ice
index 0270d32834e..516c2c4ed6b 100644
--- a/cpp/test/FreezeScript/dbmap/fail/02_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/02_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
byte m15;
byte m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/03.err b/cpp/test/FreezeScript/dbmap/fail/03.err
index 352f19df7f9..7d7bfd7c595 100644
--- a/cpp/test/FreezeScript/dbmap/fail/03.err
+++ b/cpp/test/FreezeScript/dbmap/fail/03.err
@@ -1,35 +1,35 @@
-transformdb: unsupported type change in ::Seq1 sequence type from short to struct ::S1
-transformdb: unsupported type change in ::D1 value type from short to struct ::S1
+transformdb: unsupported type change in ::Test::Seq1 sequence type from short to struct ::Test::S1
+transformdb: unsupported type change in ::Test::D1 value type from short to struct ::Test::S1
transformdb: unsupported type change in c1m1 from short to bool
transformdb: unsupported type change in c1m6 from short to float
transformdb: unsupported type change in c1m7 from short to double
-transformdb: unsupported type change in c1m9 from short to enumeration ::E
-transformdb: unsupported type change in c1m10 from short to struct ::S1
-transformdb: unsupported type change in c1m11 from short to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from short to dictionary ::D1
+transformdb: unsupported type change in c1m9 from short to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from short to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from short to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from short to dictionary ::Test::D1
transformdb: unsupported type change in c1m13 from short to Object*
transformdb: unsupported type change in c1m14 from short to Object
-transformdb: unsupported type change in c1m15 from short to ::C1*
-transformdb: unsupported type change in c1m16 from short to class ::C1
+transformdb: unsupported type change in c1m15 from short to ::Test::C1*
+transformdb: unsupported type change in c1m16 from short to class ::Test::C1
transformdb: unsupported type change in c2m1 from short to bool
transformdb: unsupported type change in c2m6 from short to float
transformdb: unsupported type change in c2m7 from short to double
-transformdb: unsupported type change in c2m9 from short to enumeration ::E
-transformdb: unsupported type change in c2m10 from short to struct ::S1
-transformdb: unsupported type change in c2m11 from short to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from short to dictionary ::D1
+transformdb: unsupported type change in c2m9 from short to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from short to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from short to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from short to dictionary ::Test::D1
transformdb: unsupported type change in c2m13 from short to Object*
transformdb: unsupported type change in c2m14 from short to Object
-transformdb: unsupported type change in c2m15 from short to ::C1*
-transformdb: unsupported type change in c2m16 from short to class ::C1
+transformdb: unsupported type change in c2m15 from short to ::Test::C1*
+transformdb: unsupported type change in c2m16 from short to class ::Test::C1
transformdb: unsupported type change in m1 from short to bool
transformdb: unsupported type change in m6 from short to float
transformdb: unsupported type change in m7 from short to double
-transformdb: unsupported type change in m9 from short to enumeration ::E
-transformdb: unsupported type change in m10 from short to struct ::S1
-transformdb: unsupported type change in m11 from short to sequence ::Seq1
-transformdb: unsupported type change in m12 from short to dictionary ::D1
+transformdb: unsupported type change in m9 from short to enumeration ::Test::E
+transformdb: unsupported type change in m10 from short to struct ::Test::S1
+transformdb: unsupported type change in m11 from short to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from short to dictionary ::Test::D1
transformdb: unsupported type change in m13 from short to Object*
transformdb: unsupported type change in m14 from short to Object
-transformdb: unsupported type change in m15 from short to ::C1*
-transformdb: unsupported type change in m16 from short to class ::C1
+transformdb: unsupported type change in m15 from short to ::Test::C1*
+transformdb: unsupported type change in m16 from short to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/03_new.ice b/cpp/test/FreezeScript/dbmap/fail/03_new.ice
index 89c501765ab..9ef0b7f7b5a 100644
--- a/cpp/test/FreezeScript/dbmap/fail/03_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/03_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/03_old.ice b/cpp/test/FreezeScript/dbmap/fail/03_old.ice
index 53988b6d8f3..4c3a877c0fd 100644
--- a/cpp/test/FreezeScript/dbmap/fail/03_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/03_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
short m15;
short m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/04.err b/cpp/test/FreezeScript/dbmap/fail/04.err
index b8bf0c0e2fb..b969d55d395 100644
--- a/cpp/test/FreezeScript/dbmap/fail/04.err
+++ b/cpp/test/FreezeScript/dbmap/fail/04.err
@@ -1,34 +1,34 @@
-transformdb: unsupported type change in ::Seq1 sequence type from int to float
+transformdb: unsupported type change in ::Test::Seq1 sequence type from int to float
transformdb: unsupported type change in c1m1 from int to bool
transformdb: unsupported type change in c1m6 from int to float
transformdb: unsupported type change in c1m7 from int to double
-transformdb: unsupported type change in c1m9 from int to enumeration ::E
-transformdb: unsupported type change in c1m10 from int to struct ::S1
-transformdb: unsupported type change in c1m11 from int to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from int to dictionary ::D1
+transformdb: unsupported type change in c1m9 from int to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from int to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from int to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from int to dictionary ::Test::D1
transformdb: unsupported type change in c1m13 from int to Object*
transformdb: unsupported type change in c1m14 from int to Object
-transformdb: unsupported type change in c1m15 from int to ::C1*
-transformdb: unsupported type change in c1m16 from int to class ::C1
+transformdb: unsupported type change in c1m15 from int to ::Test::C1*
+transformdb: unsupported type change in c1m16 from int to class ::Test::C1
transformdb: unsupported type change in c2m1 from int to bool
transformdb: unsupported type change in c2m6 from int to float
transformdb: unsupported type change in c2m7 from int to double
-transformdb: unsupported type change in c2m9 from int to enumeration ::E
-transformdb: unsupported type change in c2m10 from int to struct ::S1
-transformdb: unsupported type change in c2m11 from int to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from int to dictionary ::D1
+transformdb: unsupported type change in c2m9 from int to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from int to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from int to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from int to dictionary ::Test::D1
transformdb: unsupported type change in c2m13 from int to Object*
transformdb: unsupported type change in c2m14 from int to Object
-transformdb: unsupported type change in c2m15 from int to ::C1*
-transformdb: unsupported type change in c2m16 from int to class ::C1
+transformdb: unsupported type change in c2m15 from int to ::Test::C1*
+transformdb: unsupported type change in c2m16 from int to class ::Test::C1
transformdb: unsupported type change in m1 from int to bool
transformdb: unsupported type change in m6 from int to float
transformdb: unsupported type change in m7 from int to double
-transformdb: unsupported type change in m9 from int to enumeration ::E
-transformdb: unsupported type change in m10 from int to struct ::S1
-transformdb: unsupported type change in m11 from int to sequence ::Seq1
-transformdb: unsupported type change in m12 from int to dictionary ::D1
+transformdb: unsupported type change in m9 from int to enumeration ::Test::E
+transformdb: unsupported type change in m10 from int to struct ::Test::S1
+transformdb: unsupported type change in m11 from int to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from int to dictionary ::Test::D1
transformdb: unsupported type change in m13 from int to Object*
transformdb: unsupported type change in m14 from int to Object
-transformdb: unsupported type change in m15 from int to ::C1*
-transformdb: unsupported type change in m16 from int to class ::C1
+transformdb: unsupported type change in m15 from int to ::Test::C1*
+transformdb: unsupported type change in m16 from int to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/04_new.ice b/cpp/test/FreezeScript/dbmap/fail/04_new.ice
index 21efc77e365..154d617593b 100644
--- a/cpp/test/FreezeScript/dbmap/fail/04_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/04_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/04_old.ice b/cpp/test/FreezeScript/dbmap/fail/04_old.ice
index a6dd1f313ee..31eedb0409d 100644
--- a/cpp/test/FreezeScript/dbmap/fail/04_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/04_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
int m15;
int m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/05.err b/cpp/test/FreezeScript/dbmap/fail/05.err
index af6991d8b18..ebd2b6ee32d 100644
--- a/cpp/test/FreezeScript/dbmap/fail/05.err
+++ b/cpp/test/FreezeScript/dbmap/fail/05.err
@@ -1,35 +1,35 @@
-transformdb: unsupported type change in ::Seq1 sequence type from long to enumeration ::E
-transformdb: unsupported type change in ::D1 value type from long to enumeration ::E
+transformdb: unsupported type change in ::Test::Seq1 sequence type from long to enumeration ::Test::E
+transformdb: unsupported type change in ::Test::D1 value type from long to enumeration ::Test::E
transformdb: unsupported type change in c1m1 from long to bool
transformdb: unsupported type change in c1m6 from long to float
transformdb: unsupported type change in c1m7 from long to double
-transformdb: unsupported type change in c1m9 from long to enumeration ::E
-transformdb: unsupported type change in c1m10 from long to struct ::S1
-transformdb: unsupported type change in c1m11 from long to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from long to dictionary ::D1
+transformdb: unsupported type change in c1m9 from long to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from long to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from long to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from long to dictionary ::Test::D1
transformdb: unsupported type change in c1m13 from long to Object*
transformdb: unsupported type change in c1m14 from long to Object
-transformdb: unsupported type change in c1m15 from long to ::C1*
-transformdb: unsupported type change in c1m16 from long to class ::C1
+transformdb: unsupported type change in c1m15 from long to ::Test::C1*
+transformdb: unsupported type change in c1m16 from long to class ::Test::C1
transformdb: unsupported type change in c2m1 from long to bool
transformdb: unsupported type change in c2m6 from long to float
transformdb: unsupported type change in c2m7 from long to double
-transformdb: unsupported type change in c2m9 from long to enumeration ::E
-transformdb: unsupported type change in c2m10 from long to struct ::S1
-transformdb: unsupported type change in c2m11 from long to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from long to dictionary ::D1
+transformdb: unsupported type change in c2m9 from long to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from long to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from long to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from long to dictionary ::Test::D1
transformdb: unsupported type change in c2m13 from long to Object*
transformdb: unsupported type change in c2m14 from long to Object
-transformdb: unsupported type change in c2m15 from long to ::C1*
-transformdb: unsupported type change in c2m16 from long to class ::C1
+transformdb: unsupported type change in c2m15 from long to ::Test::C1*
+transformdb: unsupported type change in c2m16 from long to class ::Test::C1
transformdb: unsupported type change in m1 from long to bool
transformdb: unsupported type change in m6 from long to float
transformdb: unsupported type change in m7 from long to double
-transformdb: unsupported type change in m9 from long to enumeration ::E
-transformdb: unsupported type change in m10 from long to struct ::S1
-transformdb: unsupported type change in m11 from long to sequence ::Seq1
-transformdb: unsupported type change in m12 from long to dictionary ::D1
+transformdb: unsupported type change in m9 from long to enumeration ::Test::E
+transformdb: unsupported type change in m10 from long to struct ::Test::S1
+transformdb: unsupported type change in m11 from long to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from long to dictionary ::Test::D1
transformdb: unsupported type change in m13 from long to Object*
transformdb: unsupported type change in m14 from long to Object
-transformdb: unsupported type change in m15 from long to ::C1*
-transformdb: unsupported type change in m16 from long to class ::C1
+transformdb: unsupported type change in m15 from long to ::Test::C1*
+transformdb: unsupported type change in m16 from long to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/05_new.ice b/cpp/test/FreezeScript/dbmap/fail/05_new.ice
index 05da7095b01..51bfa043e9f 100644
--- a/cpp/test/FreezeScript/dbmap/fail/05_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/05_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/05_old.ice b/cpp/test/FreezeScript/dbmap/fail/05_old.ice
index c257d1a4c15..2afcb8233d7 100644
--- a/cpp/test/FreezeScript/dbmap/fail/05_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/05_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
long m15;
long m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/06.err b/cpp/test/FreezeScript/dbmap/fail/06.err
index c8b724face3..43eb0059c1f 100644
--- a/cpp/test/FreezeScript/dbmap/fail/06.err
+++ b/cpp/test/FreezeScript/dbmap/fail/06.err
@@ -1,41 +1,41 @@
-transformdb: unsupported type change in ::Seq1 sequence type from float to byte
-transformdb: unsupported type change in ::D1 value type from float to byte
+transformdb: unsupported type change in ::Test::Seq1 sequence type from float to byte
+transformdb: unsupported type change in ::Test::D1 value type from float to byte
transformdb: unsupported type change in c1m1 from float to bool
transformdb: unsupported type change in c1m2 from float to byte
transformdb: unsupported type change in c1m3 from float to short
transformdb: unsupported type change in c1m4 from float to int
transformdb: unsupported type change in c1m5 from float to long
-transformdb: unsupported type change in c1m9 from float to enumeration ::E
-transformdb: unsupported type change in c1m10 from float to struct ::S1
-transformdb: unsupported type change in c1m11 from float to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from float to dictionary ::D1
+transformdb: unsupported type change in c1m9 from float to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from float to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from float to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from float to dictionary ::Test::D1
transformdb: unsupported type change in c1m13 from float to Object*
transformdb: unsupported type change in c1m14 from float to Object
-transformdb: unsupported type change in c1m15 from float to ::C1*
-transformdb: unsupported type change in c1m16 from float to class ::C1
+transformdb: unsupported type change in c1m15 from float to ::Test::C1*
+transformdb: unsupported type change in c1m16 from float to class ::Test::C1
transformdb: unsupported type change in c2m1 from float to bool
transformdb: unsupported type change in c2m2 from float to byte
transformdb: unsupported type change in c2m3 from float to short
transformdb: unsupported type change in c2m4 from float to int
transformdb: unsupported type change in c2m5 from float to long
-transformdb: unsupported type change in c2m9 from float to enumeration ::E
-transformdb: unsupported type change in c2m10 from float to struct ::S1
-transformdb: unsupported type change in c2m11 from float to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from float to dictionary ::D1
+transformdb: unsupported type change in c2m9 from float to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from float to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from float to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from float to dictionary ::Test::D1
transformdb: unsupported type change in c2m13 from float to Object*
transformdb: unsupported type change in c2m14 from float to Object
-transformdb: unsupported type change in c2m15 from float to ::C1*
-transformdb: unsupported type change in c2m16 from float to class ::C1
+transformdb: unsupported type change in c2m15 from float to ::Test::C1*
+transformdb: unsupported type change in c2m16 from float to class ::Test::C1
transformdb: unsupported type change in m1 from float to bool
transformdb: unsupported type change in m2 from float to byte
transformdb: unsupported type change in m3 from float to short
transformdb: unsupported type change in m4 from float to int
transformdb: unsupported type change in m5 from float to long
-transformdb: unsupported type change in m9 from float to enumeration ::E
-transformdb: unsupported type change in m10 from float to struct ::S1
-transformdb: unsupported type change in m11 from float to sequence ::Seq1
-transformdb: unsupported type change in m12 from float to dictionary ::D1
+transformdb: unsupported type change in m9 from float to enumeration ::Test::E
+transformdb: unsupported type change in m10 from float to struct ::Test::S1
+transformdb: unsupported type change in m11 from float to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from float to dictionary ::Test::D1
transformdb: unsupported type change in m13 from float to Object*
transformdb: unsupported type change in m14 from float to Object
-transformdb: unsupported type change in m15 from float to ::C1*
-transformdb: unsupported type change in m16 from float to class ::C1
+transformdb: unsupported type change in m15 from float to ::Test::C1*
+transformdb: unsupported type change in m16 from float to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/06_new.ice b/cpp/test/FreezeScript/dbmap/fail/06_new.ice
index 77d1c86b08d..54f29f94c83 100644
--- a/cpp/test/FreezeScript/dbmap/fail/06_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/06_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/06_old.ice b/cpp/test/FreezeScript/dbmap/fail/06_old.ice
index 393c379258c..0dd9413081e 100644
--- a/cpp/test/FreezeScript/dbmap/fail/06_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/06_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
float m15;
float m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/07.err b/cpp/test/FreezeScript/dbmap/fail/07.err
index 3621a281a79..9e14990bb14 100644
--- a/cpp/test/FreezeScript/dbmap/fail/07.err
+++ b/cpp/test/FreezeScript/dbmap/fail/07.err
@@ -1,41 +1,41 @@
-transformdb: unsupported type change in ::Seq1 sequence type from double to struct ::S1
-transformdb: unsupported type change in ::D1 value type from double to byte
+transformdb: unsupported type change in ::Test::Seq1 sequence type from double to struct ::Test::S1
+transformdb: unsupported type change in ::Test::D1 value type from double to byte
transformdb: unsupported type change in c1m1 from double to bool
transformdb: unsupported type change in c1m2 from double to byte
transformdb: unsupported type change in c1m3 from double to short
transformdb: unsupported type change in c1m4 from double to int
transformdb: unsupported type change in c1m5 from double to long
-transformdb: unsupported type change in c1m9 from double to enumeration ::E
-transformdb: unsupported type change in c1m10 from double to struct ::S1
-transformdb: unsupported type change in c1m11 from double to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from double to dictionary ::D1
+transformdb: unsupported type change in c1m9 from double to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from double to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from double to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from double to dictionary ::Test::D1
transformdb: unsupported type change in c1m13 from double to Object*
transformdb: unsupported type change in c1m14 from double to Object
-transformdb: unsupported type change in c1m15 from double to ::C1*
-transformdb: unsupported type change in c1m16 from double to class ::C1
+transformdb: unsupported type change in c1m15 from double to ::Test::C1*
+transformdb: unsupported type change in c1m16 from double to class ::Test::C1
transformdb: unsupported type change in c2m1 from double to bool
transformdb: unsupported type change in c2m2 from double to byte
transformdb: unsupported type change in c2m3 from double to short
transformdb: unsupported type change in c2m4 from double to int
transformdb: unsupported type change in c2m5 from double to long
-transformdb: unsupported type change in c2m9 from double to enumeration ::E
-transformdb: unsupported type change in c2m10 from double to struct ::S1
-transformdb: unsupported type change in c2m11 from double to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from double to dictionary ::D1
+transformdb: unsupported type change in c2m9 from double to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from double to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from double to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from double to dictionary ::Test::D1
transformdb: unsupported type change in c2m13 from double to Object*
transformdb: unsupported type change in c2m14 from double to Object
-transformdb: unsupported type change in c2m15 from double to ::C1*
-transformdb: unsupported type change in c2m16 from double to class ::C1
+transformdb: unsupported type change in c2m15 from double to ::Test::C1*
+transformdb: unsupported type change in c2m16 from double to class ::Test::C1
transformdb: unsupported type change in m1 from double to bool
transformdb: unsupported type change in m2 from double to byte
transformdb: unsupported type change in m3 from double to short
transformdb: unsupported type change in m4 from double to int
transformdb: unsupported type change in m5 from double to long
-transformdb: unsupported type change in m9 from double to enumeration ::E
-transformdb: unsupported type change in m10 from double to struct ::S1
-transformdb: unsupported type change in m11 from double to sequence ::Seq1
-transformdb: unsupported type change in m12 from double to dictionary ::D1
+transformdb: unsupported type change in m9 from double to enumeration ::Test::E
+transformdb: unsupported type change in m10 from double to struct ::Test::S1
+transformdb: unsupported type change in m11 from double to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from double to dictionary ::Test::D1
transformdb: unsupported type change in m13 from double to Object*
transformdb: unsupported type change in m14 from double to Object
-transformdb: unsupported type change in m15 from double to ::C1*
-transformdb: unsupported type change in m16 from double to class ::C1
+transformdb: unsupported type change in m15 from double to ::Test::C1*
+transformdb: unsupported type change in m16 from double to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/07_new.ice b/cpp/test/FreezeScript/dbmap/fail/07_new.ice
index 960131cdd93..61727809723 100644
--- a/cpp/test/FreezeScript/dbmap/fail/07_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/07_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/07_old.ice b/cpp/test/FreezeScript/dbmap/fail/07_old.ice
index 109068d29df..83b79f3ed7a 100644
--- a/cpp/test/FreezeScript/dbmap/fail/07_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/07_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
double m15;
double m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/08.err b/cpp/test/FreezeScript/dbmap/fail/08.err
index 33f27553271..3f0853d4e93 100644
--- a/cpp/test/FreezeScript/dbmap/fail/08.err
+++ b/cpp/test/FreezeScript/dbmap/fail/08.err
@@ -1,17 +1,17 @@
-transformdb: unsupported type change in ::Seq1 sequence type from string to struct ::S1
-transformdb: unsupported type change in ::D1 value type from string to struct ::S1
-transformdb: unsupported type change in c1m10 from string to struct ::S1
-transformdb: unsupported type change in c1m11 from string to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from string to dictionary ::D1
+transformdb: unsupported type change in ::Test::Seq1 sequence type from string to struct ::Test::S1
+transformdb: unsupported type change in ::Test::D1 value type from string to struct ::Test::S1
+transformdb: unsupported type change in c1m10 from string to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from string to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from string to dictionary ::Test::D1
transformdb: unsupported type change in c1m14 from string to Object
-transformdb: unsupported type change in c1m16 from string to class ::C1
-transformdb: unsupported type change in c2m10 from string to struct ::S1
-transformdb: unsupported type change in c2m11 from string to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from string to dictionary ::D1
+transformdb: unsupported type change in c1m16 from string to class ::Test::C1
+transformdb: unsupported type change in c2m10 from string to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from string to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from string to dictionary ::Test::D1
transformdb: unsupported type change in c2m14 from string to Object
-transformdb: unsupported type change in c2m16 from string to class ::C1
-transformdb: unsupported type change in m10 from string to struct ::S1
-transformdb: unsupported type change in m11 from string to sequence ::Seq1
-transformdb: unsupported type change in m12 from string to dictionary ::D1
+transformdb: unsupported type change in c2m16 from string to class ::Test::C1
+transformdb: unsupported type change in m10 from string to struct ::Test::S1
+transformdb: unsupported type change in m11 from string to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from string to dictionary ::Test::D1
transformdb: unsupported type change in m14 from string to Object
-transformdb: unsupported type change in m16 from string to class ::C1
+transformdb: unsupported type change in m16 from string to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/08_new.ice b/cpp/test/FreezeScript/dbmap/fail/08_new.ice
index f92a31c3114..5255ff12862 100644
--- a/cpp/test/FreezeScript/dbmap/fail/08_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/08_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15;
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/08_old.ice b/cpp/test/FreezeScript/dbmap/fail/08_old.ice
index d6b81875ce3..7b0052eef79 100644
--- a/cpp/test/FreezeScript/dbmap/fail/08_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/08_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
string m15;
string m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/09.err b/cpp/test/FreezeScript/dbmap/fail/09.err
index ed28164334c..65eaeba3209 100644
--- a/cpp/test/FreezeScript/dbmap/fail/09.err
+++ b/cpp/test/FreezeScript/dbmap/fail/09.err
@@ -1,44 +1,44 @@
-transformdb: unsupported type change in ::Seq1 sequence type from enumeration ::E to byte
-transformdb: unsupported type change in ::D1 value type from enumeration ::E to byte
-transformdb: unsupported type change in c1m1 from enumeration ::E to bool
-transformdb: unsupported type change in c1m2 from enumeration ::E to byte
-transformdb: unsupported type change in c1m3 from enumeration ::E to short
-transformdb: unsupported type change in c1m4 from enumeration ::E to int
-transformdb: unsupported type change in c1m5 from enumeration ::E to long
-transformdb: unsupported type change in c1m6 from enumeration ::E to float
-transformdb: unsupported type change in c1m7 from enumeration ::E to double
-transformdb: unsupported type change in c1m10 from enumeration ::E to struct ::S1
-transformdb: unsupported type change in c1m11 from enumeration ::E to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from enumeration ::E to dictionary ::D1
-transformdb: unsupported type change in c1m13 from enumeration ::E to Object*
-transformdb: unsupported type change in c1m14 from enumeration ::E to Object
-transformdb: unsupported type change in c1m15 from enumeration ::E to ::C1*
-transformdb: unsupported type change in c1m16 from enumeration ::E to class ::C1
-transformdb: unsupported type change in c2m1 from enumeration ::E to bool
-transformdb: unsupported type change in c2m2 from enumeration ::E to byte
-transformdb: unsupported type change in c2m3 from enumeration ::E to short
-transformdb: unsupported type change in c2m4 from enumeration ::E to int
-transformdb: unsupported type change in c2m5 from enumeration ::E to long
-transformdb: unsupported type change in c2m6 from enumeration ::E to float
-transformdb: unsupported type change in c2m7 from enumeration ::E to double
-transformdb: unsupported type change in c2m10 from enumeration ::E to struct ::S1
-transformdb: unsupported type change in c2m11 from enumeration ::E to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from enumeration ::E to dictionary ::D1
-transformdb: unsupported type change in c2m13 from enumeration ::E to Object*
-transformdb: unsupported type change in c2m14 from enumeration ::E to Object
-transformdb: unsupported type change in c2m15 from enumeration ::E to ::C1*
-transformdb: unsupported type change in c2m16 from enumeration ::E to class ::C1
-transformdb: unsupported type change in m1 from enumeration ::E to bool
-transformdb: unsupported type change in m2 from enumeration ::E to byte
-transformdb: unsupported type change in m3 from enumeration ::E to short
-transformdb: unsupported type change in m4 from enumeration ::E to int
-transformdb: unsupported type change in m5 from enumeration ::E to long
-transformdb: unsupported type change in m6 from enumeration ::E to float
-transformdb: unsupported type change in m7 from enumeration ::E to double
-transformdb: unsupported type change in m10 from enumeration ::E to struct ::S1
-transformdb: unsupported type change in m11 from enumeration ::E to sequence ::Seq1
-transformdb: unsupported type change in m12 from enumeration ::E to dictionary ::D1
-transformdb: unsupported type change in m13 from enumeration ::E to Object*
-transformdb: unsupported type change in m14 from enumeration ::E to Object
-transformdb: unsupported type change in m15 from enumeration ::E to ::C1*
-transformdb: unsupported type change in m16 from enumeration ::E to class ::C1
+transformdb: unsupported type change in ::Test::Seq1 sequence type from enumeration ::Test::E to byte
+transformdb: unsupported type change in ::Test::D1 value type from enumeration ::Test::E to byte
+transformdb: unsupported type change in c1m1 from enumeration ::Test::E to bool
+transformdb: unsupported type change in c1m2 from enumeration ::Test::E to byte
+transformdb: unsupported type change in c1m3 from enumeration ::Test::E to short
+transformdb: unsupported type change in c1m4 from enumeration ::Test::E to int
+transformdb: unsupported type change in c1m5 from enumeration ::Test::E to long
+transformdb: unsupported type change in c1m6 from enumeration ::Test::E to float
+transformdb: unsupported type change in c1m7 from enumeration ::Test::E to double
+transformdb: unsupported type change in c1m10 from enumeration ::Test::E to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from enumeration ::Test::E to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from enumeration ::Test::E to dictionary ::Test::D1
+transformdb: unsupported type change in c1m13 from enumeration ::Test::E to Object*
+transformdb: unsupported type change in c1m14 from enumeration ::Test::E to Object
+transformdb: unsupported type change in c1m15 from enumeration ::Test::E to ::Test::C1*
+transformdb: unsupported type change in c1m16 from enumeration ::Test::E to class ::Test::C1
+transformdb: unsupported type change in c2m1 from enumeration ::Test::E to bool
+transformdb: unsupported type change in c2m2 from enumeration ::Test::E to byte
+transformdb: unsupported type change in c2m3 from enumeration ::Test::E to short
+transformdb: unsupported type change in c2m4 from enumeration ::Test::E to int
+transformdb: unsupported type change in c2m5 from enumeration ::Test::E to long
+transformdb: unsupported type change in c2m6 from enumeration ::Test::E to float
+transformdb: unsupported type change in c2m7 from enumeration ::Test::E to double
+transformdb: unsupported type change in c2m10 from enumeration ::Test::E to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from enumeration ::Test::E to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from enumeration ::Test::E to dictionary ::Test::D1
+transformdb: unsupported type change in c2m13 from enumeration ::Test::E to Object*
+transformdb: unsupported type change in c2m14 from enumeration ::Test::E to Object
+transformdb: unsupported type change in c2m15 from enumeration ::Test::E to ::Test::C1*
+transformdb: unsupported type change in c2m16 from enumeration ::Test::E to class ::Test::C1
+transformdb: unsupported type change in m1 from enumeration ::Test::E to bool
+transformdb: unsupported type change in m2 from enumeration ::Test::E to byte
+transformdb: unsupported type change in m3 from enumeration ::Test::E to short
+transformdb: unsupported type change in m4 from enumeration ::Test::E to int
+transformdb: unsupported type change in m5 from enumeration ::Test::E to long
+transformdb: unsupported type change in m6 from enumeration ::Test::E to float
+transformdb: unsupported type change in m7 from enumeration ::Test::E to double
+transformdb: unsupported type change in m10 from enumeration ::Test::E to struct ::Test::S1
+transformdb: unsupported type change in m11 from enumeration ::Test::E to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from enumeration ::Test::E to dictionary ::Test::D1
+transformdb: unsupported type change in m13 from enumeration ::Test::E to Object*
+transformdb: unsupported type change in m14 from enumeration ::Test::E to Object
+transformdb: unsupported type change in m15 from enumeration ::Test::E to ::Test::C1*
+transformdb: unsupported type change in m16 from enumeration ::Test::E to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/09_new.ice b/cpp/test/FreezeScript/dbmap/fail/09_new.ice
index 4ab3a4c4ebe..aaabe65fc70 100644
--- a/cpp/test/FreezeScript/dbmap/fail/09_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/09_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/09_old.ice b/cpp/test/FreezeScript/dbmap/fail/09_old.ice
index 4d1e28beeae..d90ba6f4ad4 100644
--- a/cpp/test/FreezeScript/dbmap/fail/09_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/09_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
E m15;
E m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/10.err b/cpp/test/FreezeScript/dbmap/fail/10.err
index 2a915fe6aa2..4d6f059cb57 100644
--- a/cpp/test/FreezeScript/dbmap/fail/10.err
+++ b/cpp/test/FreezeScript/dbmap/fail/10.err
@@ -1,47 +1,47 @@
-transformdb: unsupported type change in ::Seq1 sequence type from struct ::S1 to bool
-transformdb: unsupported type change in ::D1 value type from struct ::S1 to bool
-transformdb: unsupported type change in c1m1 from struct ::S1 to bool
-transformdb: unsupported type change in c1m2 from struct ::S1 to byte
-transformdb: unsupported type change in c1m3 from struct ::S1 to short
-transformdb: unsupported type change in c1m4 from struct ::S1 to int
-transformdb: unsupported type change in c1m5 from struct ::S1 to long
-transformdb: unsupported type change in c1m6 from struct ::S1 to float
-transformdb: unsupported type change in c1m7 from struct ::S1 to double
-transformdb: unsupported type change in c1m8 from struct ::S1 to string
-transformdb: unsupported type change in c1m9 from struct ::S1 to enumeration ::E
-transformdb: unsupported type change in c1m11 from struct ::S1 to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from struct ::S1 to dictionary ::D1
-transformdb: unsupported type change in c1m13 from struct ::S1 to Object*
-transformdb: unsupported type change in c1m14 from struct ::S1 to Object
-transformdb: unsupported type change in c1m15 from struct ::S1 to ::C1*
-transformdb: unsupported type change in c1m16 from struct ::S1 to class ::C1
-transformdb: unsupported type change in c2m1 from struct ::S1 to bool
-transformdb: unsupported type change in c2m2 from struct ::S1 to byte
-transformdb: unsupported type change in c2m3 from struct ::S1 to short
-transformdb: unsupported type change in c2m4 from struct ::S1 to int
-transformdb: unsupported type change in c2m5 from struct ::S1 to long
-transformdb: unsupported type change in c2m6 from struct ::S1 to float
-transformdb: unsupported type change in c2m7 from struct ::S1 to double
-transformdb: unsupported type change in c2m8 from struct ::S1 to string
-transformdb: unsupported type change in c2m9 from struct ::S1 to enumeration ::E
-transformdb: unsupported type change in c2m11 from struct ::S1 to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from struct ::S1 to dictionary ::D1
-transformdb: unsupported type change in c2m13 from struct ::S1 to Object*
-transformdb: unsupported type change in c2m14 from struct ::S1 to Object
-transformdb: unsupported type change in c2m15 from struct ::S1 to ::C1*
-transformdb: unsupported type change in c2m16 from struct ::S1 to class ::C1
-transformdb: unsupported type change in m1 from struct ::S1 to bool
-transformdb: unsupported type change in m2 from struct ::S1 to byte
-transformdb: unsupported type change in m3 from struct ::S1 to short
-transformdb: unsupported type change in m4 from struct ::S1 to int
-transformdb: unsupported type change in m5 from struct ::S1 to long
-transformdb: unsupported type change in m6 from struct ::S1 to float
-transformdb: unsupported type change in m7 from struct ::S1 to double
-transformdb: unsupported type change in m8 from struct ::S1 to string
-transformdb: unsupported type change in m9 from struct ::S1 to enumeration ::E
-transformdb: unsupported type change in m11 from struct ::S1 to sequence ::Seq1
-transformdb: unsupported type change in m12 from struct ::S1 to dictionary ::D1
-transformdb: unsupported type change in m13 from struct ::S1 to Object*
-transformdb: unsupported type change in m14 from struct ::S1 to Object
-transformdb: unsupported type change in m15 from struct ::S1 to ::C1*
-transformdb: unsupported type change in m16 from struct ::S1 to class ::C1
+transformdb: unsupported type change in ::Test::Seq1 sequence type from struct ::Test::S1 to bool
+transformdb: unsupported type change in ::Test::D1 value type from struct ::Test::S1 to bool
+transformdb: unsupported type change in c1m1 from struct ::Test::S1 to bool
+transformdb: unsupported type change in c1m2 from struct ::Test::S1 to byte
+transformdb: unsupported type change in c1m3 from struct ::Test::S1 to short
+transformdb: unsupported type change in c1m4 from struct ::Test::S1 to int
+transformdb: unsupported type change in c1m5 from struct ::Test::S1 to long
+transformdb: unsupported type change in c1m6 from struct ::Test::S1 to float
+transformdb: unsupported type change in c1m7 from struct ::Test::S1 to double
+transformdb: unsupported type change in c1m8 from struct ::Test::S1 to string
+transformdb: unsupported type change in c1m9 from struct ::Test::S1 to enumeration ::Test::E
+transformdb: unsupported type change in c1m11 from struct ::Test::S1 to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from struct ::Test::S1 to dictionary ::Test::D1
+transformdb: unsupported type change in c1m13 from struct ::Test::S1 to Object*
+transformdb: unsupported type change in c1m14 from struct ::Test::S1 to Object
+transformdb: unsupported type change in c1m15 from struct ::Test::S1 to ::Test::C1*
+transformdb: unsupported type change in c1m16 from struct ::Test::S1 to class ::Test::C1
+transformdb: unsupported type change in c2m1 from struct ::Test::S1 to bool
+transformdb: unsupported type change in c2m2 from struct ::Test::S1 to byte
+transformdb: unsupported type change in c2m3 from struct ::Test::S1 to short
+transformdb: unsupported type change in c2m4 from struct ::Test::S1 to int
+transformdb: unsupported type change in c2m5 from struct ::Test::S1 to long
+transformdb: unsupported type change in c2m6 from struct ::Test::S1 to float
+transformdb: unsupported type change in c2m7 from struct ::Test::S1 to double
+transformdb: unsupported type change in c2m8 from struct ::Test::S1 to string
+transformdb: unsupported type change in c2m9 from struct ::Test::S1 to enumeration ::Test::E
+transformdb: unsupported type change in c2m11 from struct ::Test::S1 to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from struct ::Test::S1 to dictionary ::Test::D1
+transformdb: unsupported type change in c2m13 from struct ::Test::S1 to Object*
+transformdb: unsupported type change in c2m14 from struct ::Test::S1 to Object
+transformdb: unsupported type change in c2m15 from struct ::Test::S1 to ::Test::C1*
+transformdb: unsupported type change in c2m16 from struct ::Test::S1 to class ::Test::C1
+transformdb: unsupported type change in m1 from struct ::Test::S1 to bool
+transformdb: unsupported type change in m2 from struct ::Test::S1 to byte
+transformdb: unsupported type change in m3 from struct ::Test::S1 to short
+transformdb: unsupported type change in m4 from struct ::Test::S1 to int
+transformdb: unsupported type change in m5 from struct ::Test::S1 to long
+transformdb: unsupported type change in m6 from struct ::Test::S1 to float
+transformdb: unsupported type change in m7 from struct ::Test::S1 to double
+transformdb: unsupported type change in m8 from struct ::Test::S1 to string
+transformdb: unsupported type change in m9 from struct ::Test::S1 to enumeration ::Test::E
+transformdb: unsupported type change in m11 from struct ::Test::S1 to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from struct ::Test::S1 to dictionary ::Test::D1
+transformdb: unsupported type change in m13 from struct ::Test::S1 to Object*
+transformdb: unsupported type change in m14 from struct ::Test::S1 to Object
+transformdb: unsupported type change in m15 from struct ::Test::S1 to ::Test::C1*
+transformdb: unsupported type change in m16 from struct ::Test::S1 to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/10_new.ice b/cpp/test/FreezeScript/dbmap/fail/10_new.ice
index bdfc8678461..7aaed40a5c3 100644
--- a/cpp/test/FreezeScript/dbmap/fail/10_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/10_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/10_old.ice b/cpp/test/FreezeScript/dbmap/fail/10_old.ice
index 0e1c995e693..a50f3bd94b7 100644
--- a/cpp/test/FreezeScript/dbmap/fail/10_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/10_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
S1 m15;
S1 m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/11.err b/cpp/test/FreezeScript/dbmap/fail/11.err
index a66098ddafb..2b22dc60fd5 100644
--- a/cpp/test/FreezeScript/dbmap/fail/11.err
+++ b/cpp/test/FreezeScript/dbmap/fail/11.err
@@ -1,46 +1,46 @@
-transformdb: unsupported type change in ::D1 value type from sequence ::Seq1 to string
-transformdb: unsupported type change in c1m1 from sequence ::Seq1 to bool
-transformdb: unsupported type change in c1m2 from sequence ::Seq1 to byte
-transformdb: unsupported type change in c1m3 from sequence ::Seq1 to short
-transformdb: unsupported type change in c1m4 from sequence ::Seq1 to int
-transformdb: unsupported type change in c1m5 from sequence ::Seq1 to long
-transformdb: unsupported type change in c1m6 from sequence ::Seq1 to float
-transformdb: unsupported type change in c1m7 from sequence ::Seq1 to double
-transformdb: unsupported type change in c1m8 from sequence ::Seq1 to string
-transformdb: unsupported type change in c1m9 from sequence ::Seq1 to enumeration ::E
-transformdb: unsupported type change in c1m10 from sequence ::Seq1 to struct ::S1
-transformdb: unsupported type change in c1m12 from sequence ::Seq1 to dictionary ::D1
-transformdb: unsupported type change in c1m13 from sequence ::Seq1 to Object*
-transformdb: unsupported type change in c1m14 from sequence ::Seq1 to Object
-transformdb: unsupported type change in c1m15 from sequence ::Seq1 to ::C1*
-transformdb: unsupported type change in c1m16 from sequence ::Seq1 to class ::C1
-transformdb: unsupported type change in c2m1 from sequence ::Seq1 to bool
-transformdb: unsupported type change in c2m2 from sequence ::Seq1 to byte
-transformdb: unsupported type change in c2m3 from sequence ::Seq1 to short
-transformdb: unsupported type change in c2m4 from sequence ::Seq1 to int
-transformdb: unsupported type change in c2m5 from sequence ::Seq1 to long
-transformdb: unsupported type change in c2m6 from sequence ::Seq1 to float
-transformdb: unsupported type change in c2m7 from sequence ::Seq1 to double
-transformdb: unsupported type change in c2m8 from sequence ::Seq1 to string
-transformdb: unsupported type change in c2m9 from sequence ::Seq1 to enumeration ::E
-transformdb: unsupported type change in c2m10 from sequence ::Seq1 to struct ::S1
-transformdb: unsupported type change in c2m12 from sequence ::Seq1 to dictionary ::D1
-transformdb: unsupported type change in c2m13 from sequence ::Seq1 to Object*
-transformdb: unsupported type change in c2m14 from sequence ::Seq1 to Object
-transformdb: unsupported type change in c2m15 from sequence ::Seq1 to ::C1*
-transformdb: unsupported type change in c2m16 from sequence ::Seq1 to class ::C1
-transformdb: unsupported type change in m1 from sequence ::Seq1 to bool
-transformdb: unsupported type change in m2 from sequence ::Seq1 to byte
-transformdb: unsupported type change in m3 from sequence ::Seq1 to short
-transformdb: unsupported type change in m4 from sequence ::Seq1 to int
-transformdb: unsupported type change in m5 from sequence ::Seq1 to long
-transformdb: unsupported type change in m6 from sequence ::Seq1 to float
-transformdb: unsupported type change in m7 from sequence ::Seq1 to double
-transformdb: unsupported type change in m8 from sequence ::Seq1 to string
-transformdb: unsupported type change in m9 from sequence ::Seq1 to enumeration ::E
-transformdb: unsupported type change in m10 from sequence ::Seq1 to struct ::S1
-transformdb: unsupported type change in m12 from sequence ::Seq1 to dictionary ::D1
-transformdb: unsupported type change in m13 from sequence ::Seq1 to Object*
-transformdb: unsupported type change in m14 from sequence ::Seq1 to Object
-transformdb: unsupported type change in m15 from sequence ::Seq1 to ::C1*
-transformdb: unsupported type change in m16 from sequence ::Seq1 to class ::C1
+transformdb: unsupported type change in ::Test::D1 value type from sequence ::Test::Seq1 to string
+transformdb: unsupported type change in c1m1 from sequence ::Test::Seq1 to bool
+transformdb: unsupported type change in c1m2 from sequence ::Test::Seq1 to byte
+transformdb: unsupported type change in c1m3 from sequence ::Test::Seq1 to short
+transformdb: unsupported type change in c1m4 from sequence ::Test::Seq1 to int
+transformdb: unsupported type change in c1m5 from sequence ::Test::Seq1 to long
+transformdb: unsupported type change in c1m6 from sequence ::Test::Seq1 to float
+transformdb: unsupported type change in c1m7 from sequence ::Test::Seq1 to double
+transformdb: unsupported type change in c1m8 from sequence ::Test::Seq1 to string
+transformdb: unsupported type change in c1m9 from sequence ::Test::Seq1 to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from sequence ::Test::Seq1 to struct ::Test::S1
+transformdb: unsupported type change in c1m12 from sequence ::Test::Seq1 to dictionary ::Test::D1
+transformdb: unsupported type change in c1m13 from sequence ::Test::Seq1 to Object*
+transformdb: unsupported type change in c1m14 from sequence ::Test::Seq1 to Object
+transformdb: unsupported type change in c1m15 from sequence ::Test::Seq1 to ::Test::C1*
+transformdb: unsupported type change in c1m16 from sequence ::Test::Seq1 to class ::Test::C1
+transformdb: unsupported type change in c2m1 from sequence ::Test::Seq1 to bool
+transformdb: unsupported type change in c2m2 from sequence ::Test::Seq1 to byte
+transformdb: unsupported type change in c2m3 from sequence ::Test::Seq1 to short
+transformdb: unsupported type change in c2m4 from sequence ::Test::Seq1 to int
+transformdb: unsupported type change in c2m5 from sequence ::Test::Seq1 to long
+transformdb: unsupported type change in c2m6 from sequence ::Test::Seq1 to float
+transformdb: unsupported type change in c2m7 from sequence ::Test::Seq1 to double
+transformdb: unsupported type change in c2m8 from sequence ::Test::Seq1 to string
+transformdb: unsupported type change in c2m9 from sequence ::Test::Seq1 to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from sequence ::Test::Seq1 to struct ::Test::S1
+transformdb: unsupported type change in c2m12 from sequence ::Test::Seq1 to dictionary ::Test::D1
+transformdb: unsupported type change in c2m13 from sequence ::Test::Seq1 to Object*
+transformdb: unsupported type change in c2m14 from sequence ::Test::Seq1 to Object
+transformdb: unsupported type change in c2m15 from sequence ::Test::Seq1 to ::Test::C1*
+transformdb: unsupported type change in c2m16 from sequence ::Test::Seq1 to class ::Test::C1
+transformdb: unsupported type change in m1 from sequence ::Test::Seq1 to bool
+transformdb: unsupported type change in m2 from sequence ::Test::Seq1 to byte
+transformdb: unsupported type change in m3 from sequence ::Test::Seq1 to short
+transformdb: unsupported type change in m4 from sequence ::Test::Seq1 to int
+transformdb: unsupported type change in m5 from sequence ::Test::Seq1 to long
+transformdb: unsupported type change in m6 from sequence ::Test::Seq1 to float
+transformdb: unsupported type change in m7 from sequence ::Test::Seq1 to double
+transformdb: unsupported type change in m8 from sequence ::Test::Seq1 to string
+transformdb: unsupported type change in m9 from sequence ::Test::Seq1 to enumeration ::Test::E
+transformdb: unsupported type change in m10 from sequence ::Test::Seq1 to struct ::Test::S1
+transformdb: unsupported type change in m12 from sequence ::Test::Seq1 to dictionary ::Test::D1
+transformdb: unsupported type change in m13 from sequence ::Test::Seq1 to Object*
+transformdb: unsupported type change in m14 from sequence ::Test::Seq1 to Object
+transformdb: unsupported type change in m15 from sequence ::Test::Seq1 to ::Test::C1*
+transformdb: unsupported type change in m16 from sequence ::Test::Seq1 to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/11_new.ice b/cpp/test/FreezeScript/dbmap/fail/11_new.ice
index f213f3ca89d..3c77ad44d07 100644
--- a/cpp/test/FreezeScript/dbmap/fail/11_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/11_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/11_old.ice b/cpp/test/FreezeScript/dbmap/fail/11_old.ice
index f746d94aa21..1a4fa770d08 100644
--- a/cpp/test/FreezeScript/dbmap/fail/11_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/11_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
Seq1 m15;
Seq1 m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/12.err b/cpp/test/FreezeScript/dbmap/fail/12.err
index a6a0b47137d..6cbc47fb7ed 100644
--- a/cpp/test/FreezeScript/dbmap/fail/12.err
+++ b/cpp/test/FreezeScript/dbmap/fail/12.err
@@ -1,47 +1,47 @@
-transformdb: unsupported type change in ::Seq1 sequence type from bool to byte
-transformdb: unsupported type change in ::D1 value type from bool to byte
-transformdb: unsupported type change in c1m1 from dictionary ::D1 to bool
-transformdb: unsupported type change in c1m2 from dictionary ::D1 to byte
-transformdb: unsupported type change in c1m3 from dictionary ::D1 to short
-transformdb: unsupported type change in c1m4 from dictionary ::D1 to int
-transformdb: unsupported type change in c1m5 from dictionary ::D1 to long
-transformdb: unsupported type change in c1m6 from dictionary ::D1 to float
-transformdb: unsupported type change in c1m7 from dictionary ::D1 to double
-transformdb: unsupported type change in c1m8 from dictionary ::D1 to string
-transformdb: unsupported type change in c1m9 from dictionary ::D1 to enumeration ::E
-transformdb: unsupported type change in c1m10 from dictionary ::D1 to struct ::S1
-transformdb: unsupported type change in c1m11 from dictionary ::D1 to sequence ::Seq1
-transformdb: unsupported type change in c1m13 from dictionary ::D1 to Object*
-transformdb: unsupported type change in c1m14 from dictionary ::D1 to Object
-transformdb: unsupported type change in c1m15 from dictionary ::D1 to ::C1*
-transformdb: unsupported type change in c1m16 from dictionary ::D1 to class ::C1
-transformdb: unsupported type change in c2m1 from dictionary ::D1 to bool
-transformdb: unsupported type change in c2m2 from dictionary ::D1 to byte
-transformdb: unsupported type change in c2m3 from dictionary ::D1 to short
-transformdb: unsupported type change in c2m4 from dictionary ::D1 to int
-transformdb: unsupported type change in c2m5 from dictionary ::D1 to long
-transformdb: unsupported type change in c2m6 from dictionary ::D1 to float
-transformdb: unsupported type change in c2m7 from dictionary ::D1 to double
-transformdb: unsupported type change in c2m8 from dictionary ::D1 to string
-transformdb: unsupported type change in c2m9 from dictionary ::D1 to enumeration ::E
-transformdb: unsupported type change in c2m10 from dictionary ::D1 to struct ::S1
-transformdb: unsupported type change in c2m11 from dictionary ::D1 to sequence ::Seq1
-transformdb: unsupported type change in c2m13 from dictionary ::D1 to Object*
-transformdb: unsupported type change in c2m14 from dictionary ::D1 to Object
-transformdb: unsupported type change in c2m15 from dictionary ::D1 to ::C1*
-transformdb: unsupported type change in c2m16 from dictionary ::D1 to class ::C1
-transformdb: unsupported type change in m1 from dictionary ::D1 to bool
-transformdb: unsupported type change in m2 from dictionary ::D1 to byte
-transformdb: unsupported type change in m3 from dictionary ::D1 to short
-transformdb: unsupported type change in m4 from dictionary ::D1 to int
-transformdb: unsupported type change in m5 from dictionary ::D1 to long
-transformdb: unsupported type change in m6 from dictionary ::D1 to float
-transformdb: unsupported type change in m7 from dictionary ::D1 to double
-transformdb: unsupported type change in m8 from dictionary ::D1 to string
-transformdb: unsupported type change in m9 from dictionary ::D1 to enumeration ::E
-transformdb: unsupported type change in m10 from dictionary ::D1 to struct ::S1
-transformdb: unsupported type change in m11 from dictionary ::D1 to sequence ::Seq1
-transformdb: unsupported type change in m13 from dictionary ::D1 to Object*
-transformdb: unsupported type change in m14 from dictionary ::D1 to Object
-transformdb: unsupported type change in m15 from dictionary ::D1 to ::C1*
-transformdb: unsupported type change in m16 from dictionary ::D1 to class ::C1
+transformdb: unsupported type change in ::Test::Seq1 sequence type from bool to byte
+transformdb: unsupported type change in ::Test::D1 value type from bool to byte
+transformdb: unsupported type change in c1m1 from dictionary ::Test::D1 to bool
+transformdb: unsupported type change in c1m2 from dictionary ::Test::D1 to byte
+transformdb: unsupported type change in c1m3 from dictionary ::Test::D1 to short
+transformdb: unsupported type change in c1m4 from dictionary ::Test::D1 to int
+transformdb: unsupported type change in c1m5 from dictionary ::Test::D1 to long
+transformdb: unsupported type change in c1m6 from dictionary ::Test::D1 to float
+transformdb: unsupported type change in c1m7 from dictionary ::Test::D1 to double
+transformdb: unsupported type change in c1m8 from dictionary ::Test::D1 to string
+transformdb: unsupported type change in c1m9 from dictionary ::Test::D1 to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from dictionary ::Test::D1 to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from dictionary ::Test::D1 to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m13 from dictionary ::Test::D1 to Object*
+transformdb: unsupported type change in c1m14 from dictionary ::Test::D1 to Object
+transformdb: unsupported type change in c1m15 from dictionary ::Test::D1 to ::Test::C1*
+transformdb: unsupported type change in c1m16 from dictionary ::Test::D1 to class ::Test::C1
+transformdb: unsupported type change in c2m1 from dictionary ::Test::D1 to bool
+transformdb: unsupported type change in c2m2 from dictionary ::Test::D1 to byte
+transformdb: unsupported type change in c2m3 from dictionary ::Test::D1 to short
+transformdb: unsupported type change in c2m4 from dictionary ::Test::D1 to int
+transformdb: unsupported type change in c2m5 from dictionary ::Test::D1 to long
+transformdb: unsupported type change in c2m6 from dictionary ::Test::D1 to float
+transformdb: unsupported type change in c2m7 from dictionary ::Test::D1 to double
+transformdb: unsupported type change in c2m8 from dictionary ::Test::D1 to string
+transformdb: unsupported type change in c2m9 from dictionary ::Test::D1 to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from dictionary ::Test::D1 to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from dictionary ::Test::D1 to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m13 from dictionary ::Test::D1 to Object*
+transformdb: unsupported type change in c2m14 from dictionary ::Test::D1 to Object
+transformdb: unsupported type change in c2m15 from dictionary ::Test::D1 to ::Test::C1*
+transformdb: unsupported type change in c2m16 from dictionary ::Test::D1 to class ::Test::C1
+transformdb: unsupported type change in m1 from dictionary ::Test::D1 to bool
+transformdb: unsupported type change in m2 from dictionary ::Test::D1 to byte
+transformdb: unsupported type change in m3 from dictionary ::Test::D1 to short
+transformdb: unsupported type change in m4 from dictionary ::Test::D1 to int
+transformdb: unsupported type change in m5 from dictionary ::Test::D1 to long
+transformdb: unsupported type change in m6 from dictionary ::Test::D1 to float
+transformdb: unsupported type change in m7 from dictionary ::Test::D1 to double
+transformdb: unsupported type change in m8 from dictionary ::Test::D1 to string
+transformdb: unsupported type change in m9 from dictionary ::Test::D1 to enumeration ::Test::E
+transformdb: unsupported type change in m10 from dictionary ::Test::D1 to struct ::Test::S1
+transformdb: unsupported type change in m11 from dictionary ::Test::D1 to sequence ::Test::Seq1
+transformdb: unsupported type change in m13 from dictionary ::Test::D1 to Object*
+transformdb: unsupported type change in m14 from dictionary ::Test::D1 to Object
+transformdb: unsupported type change in m15 from dictionary ::Test::D1 to ::Test::C1*
+transformdb: unsupported type change in m16 from dictionary ::Test::D1 to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/12_new.ice b/cpp/test/FreezeScript/dbmap/fail/12_new.ice
index 08af2244eca..1ef129cb68c 100644
--- a/cpp/test/FreezeScript/dbmap/fail/12_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/12_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/12_old.ice b/cpp/test/FreezeScript/dbmap/fail/12_old.ice
index 510c42542f1..5800fa3aebf 100644
--- a/cpp/test/FreezeScript/dbmap/fail/12_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/12_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
D1 m15;
D1 m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/13.err b/cpp/test/FreezeScript/dbmap/fail/13.err
index 18ea5bbc213..ca23c5d18a1 100644
--- a/cpp/test/FreezeScript/dbmap/fail/13.err
+++ b/cpp/test/FreezeScript/dbmap/fail/13.err
@@ -5,12 +5,12 @@ transformdb: unsupported type change in c1m4 from Object* to int
transformdb: unsupported type change in c1m5 from Object* to long
transformdb: unsupported type change in c1m6 from Object* to float
transformdb: unsupported type change in c1m7 from Object* to double
-transformdb: unsupported type change in c1m9 from Object* to enumeration ::E
-transformdb: unsupported type change in c1m10 from Object* to struct ::S1
-transformdb: unsupported type change in c1m11 from Object* to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from Object* to dictionary ::D1
+transformdb: unsupported type change in c1m9 from Object* to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from Object* to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from Object* to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from Object* to dictionary ::Test::D1
transformdb: unsupported type change in c1m14 from Object* to Object
-transformdb: unsupported type change in c1m16 from Object* to class ::C1
+transformdb: unsupported type change in c1m16 from Object* to class ::Test::C1
transformdb: unsupported type change in c2m1 from Object* to bool
transformdb: unsupported type change in c2m2 from Object* to byte
transformdb: unsupported type change in c2m3 from Object* to short
@@ -18,12 +18,12 @@ transformdb: unsupported type change in c2m4 from Object* to int
transformdb: unsupported type change in c2m5 from Object* to long
transformdb: unsupported type change in c2m6 from Object* to float
transformdb: unsupported type change in c2m7 from Object* to double
-transformdb: unsupported type change in c2m9 from Object* to enumeration ::E
-transformdb: unsupported type change in c2m10 from Object* to struct ::S1
-transformdb: unsupported type change in c2m11 from Object* to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from Object* to dictionary ::D1
+transformdb: unsupported type change in c2m9 from Object* to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from Object* to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from Object* to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from Object* to dictionary ::Test::D1
transformdb: unsupported type change in c2m14 from Object* to Object
-transformdb: unsupported type change in c2m16 from Object* to class ::C1
+transformdb: unsupported type change in c2m16 from Object* to class ::Test::C1
transformdb: unsupported type change in m1 from Object* to bool
transformdb: unsupported type change in m2 from Object* to byte
transformdb: unsupported type change in m3 from Object* to short
@@ -31,9 +31,9 @@ transformdb: unsupported type change in m4 from Object* to int
transformdb: unsupported type change in m5 from Object* to long
transformdb: unsupported type change in m6 from Object* to float
transformdb: unsupported type change in m7 from Object* to double
-transformdb: unsupported type change in m9 from Object* to enumeration ::E
-transformdb: unsupported type change in m10 from Object* to struct ::S1
-transformdb: unsupported type change in m11 from Object* to sequence ::Seq1
-transformdb: unsupported type change in m12 from Object* to dictionary ::D1
+transformdb: unsupported type change in m9 from Object* to enumeration ::Test::E
+transformdb: unsupported type change in m10 from Object* to struct ::Test::S1
+transformdb: unsupported type change in m11 from Object* to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from Object* to dictionary ::Test::D1
transformdb: unsupported type change in m14 from Object* to Object
-transformdb: unsupported type change in m16 from Object* to class ::C1
+transformdb: unsupported type change in m16 from Object* to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/13_new.ice b/cpp/test/FreezeScript/dbmap/fail/13_new.ice
index 0a6dd2ff08b..904702a48cd 100644
--- a/cpp/test/FreezeScript/dbmap/fail/13_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/13_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15;
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/13_old.ice b/cpp/test/FreezeScript/dbmap/fail/13_old.ice
index 7619e0c7caf..6acd628d942 100644
--- a/cpp/test/FreezeScript/dbmap/fail/13_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/13_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
Object* m15;
Object* m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/14.err b/cpp/test/FreezeScript/dbmap/fail/14.err
index 68ffc34141d..58cddc7461b 100644
--- a/cpp/test/FreezeScript/dbmap/fail/14.err
+++ b/cpp/test/FreezeScript/dbmap/fail/14.err
@@ -1,5 +1,5 @@
-transformdb: unsupported type change in ::Seq1 sequence type from Object to byte
-transformdb: unsupported type change in ::D1 value type from Object to byte
+transformdb: unsupported type change in ::Test::Seq1 sequence type from Object to byte
+transformdb: unsupported type change in ::Test::D1 value type from Object to byte
transformdb: unsupported type change in c1m1 from Object to bool
transformdb: unsupported type change in c1m2 from Object to byte
transformdb: unsupported type change in c1m3 from Object to short
@@ -8,12 +8,12 @@ transformdb: unsupported type change in c1m5 from Object to long
transformdb: unsupported type change in c1m6 from Object to float
transformdb: unsupported type change in c1m7 from Object to double
transformdb: unsupported type change in c1m8 from Object to string
-transformdb: unsupported type change in c1m9 from Object to enumeration ::E
-transformdb: unsupported type change in c1m10 from Object to struct ::S1
-transformdb: unsupported type change in c1m11 from Object to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from Object to dictionary ::D1
+transformdb: unsupported type change in c1m9 from Object to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from Object to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from Object to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from Object to dictionary ::Test::D1
transformdb: unsupported type change in c1m13 from Object to Object*
-transformdb: unsupported type change in c1m15 from Object to ::C1*
+transformdb: unsupported type change in c1m15 from Object to ::Test::C1*
transformdb: unsupported type change in c2m1 from Object to bool
transformdb: unsupported type change in c2m2 from Object to byte
transformdb: unsupported type change in c2m3 from Object to short
@@ -22,12 +22,12 @@ transformdb: unsupported type change in c2m5 from Object to long
transformdb: unsupported type change in c2m6 from Object to float
transformdb: unsupported type change in c2m7 from Object to double
transformdb: unsupported type change in c2m8 from Object to string
-transformdb: unsupported type change in c2m9 from Object to enumeration ::E
-transformdb: unsupported type change in c2m10 from Object to struct ::S1
-transformdb: unsupported type change in c2m11 from Object to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from Object to dictionary ::D1
+transformdb: unsupported type change in c2m9 from Object to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from Object to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from Object to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from Object to dictionary ::Test::D1
transformdb: unsupported type change in c2m13 from Object to Object*
-transformdb: unsupported type change in c2m15 from Object to ::C1*
+transformdb: unsupported type change in c2m15 from Object to ::Test::C1*
transformdb: unsupported type change in m1 from Object to bool
transformdb: unsupported type change in m2 from Object to byte
transformdb: unsupported type change in m3 from Object to short
@@ -36,9 +36,9 @@ transformdb: unsupported type change in m5 from Object to long
transformdb: unsupported type change in m6 from Object to float
transformdb: unsupported type change in m7 from Object to double
transformdb: unsupported type change in m8 from Object to string
-transformdb: unsupported type change in m9 from Object to enumeration ::E
-transformdb: unsupported type change in m10 from Object to struct ::S1
-transformdb: unsupported type change in m11 from Object to sequence ::Seq1
-transformdb: unsupported type change in m12 from Object to dictionary ::D1
+transformdb: unsupported type change in m9 from Object to enumeration ::Test::E
+transformdb: unsupported type change in m10 from Object to struct ::Test::S1
+transformdb: unsupported type change in m11 from Object to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from Object to dictionary ::Test::D1
transformdb: unsupported type change in m13 from Object to Object*
-transformdb: unsupported type change in m15 from Object to ::C1*
+transformdb: unsupported type change in m15 from Object to ::Test::C1*
diff --git a/cpp/test/FreezeScript/dbmap/fail/14_new.ice b/cpp/test/FreezeScript/dbmap/fail/14_new.ice
index 46d2990d543..c4a2aa6ab2f 100644
--- a/cpp/test/FreezeScript/dbmap/fail/14_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/14_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/14_old.ice b/cpp/test/FreezeScript/dbmap/fail/14_old.ice
index 268345df5c0..a34384f82eb 100644
--- a/cpp/test/FreezeScript/dbmap/fail/14_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/14_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
Object m15;
Object m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/15.err b/cpp/test/FreezeScript/dbmap/fail/15.err
index 7505c36b481..1cde3f2f390 100644
--- a/cpp/test/FreezeScript/dbmap/fail/15.err
+++ b/cpp/test/FreezeScript/dbmap/fail/15.err
@@ -1,41 +1,41 @@
-transformdb: unsupported type change in ::Seq1 sequence type from bool to byte
-transformdb: unsupported type change in ::D1 value type from bool to byte
-transformdb: unsupported type change in c1m1 from ::C1* to bool
-transformdb: unsupported type change in c1m2 from ::C1* to byte
-transformdb: unsupported type change in c1m3 from ::C1* to short
-transformdb: unsupported type change in c1m4 from ::C1* to int
-transformdb: unsupported type change in c1m5 from ::C1* to long
-transformdb: unsupported type change in c1m6 from ::C1* to float
-transformdb: unsupported type change in c1m7 from ::C1* to double
-transformdb: unsupported type change in c1m9 from ::C1* to enumeration ::E
-transformdb: unsupported type change in c1m10 from ::C1* to struct ::S1
-transformdb: unsupported type change in c1m11 from ::C1* to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from ::C1* to dictionary ::D1
-transformdb: unsupported type change in c1m14 from ::C1* to Object
-transformdb: unsupported type change in c1m16 from ::C1* to class ::C1
-transformdb: unsupported type change in c2m1 from ::C1* to bool
-transformdb: unsupported type change in c2m2 from ::C1* to byte
-transformdb: unsupported type change in c2m3 from ::C1* to short
-transformdb: unsupported type change in c2m4 from ::C1* to int
-transformdb: unsupported type change in c2m5 from ::C1* to long
-transformdb: unsupported type change in c2m6 from ::C1* to float
-transformdb: unsupported type change in c2m7 from ::C1* to double
-transformdb: unsupported type change in c2m9 from ::C1* to enumeration ::E
-transformdb: unsupported type change in c2m10 from ::C1* to struct ::S1
-transformdb: unsupported type change in c2m11 from ::C1* to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from ::C1* to dictionary ::D1
-transformdb: unsupported type change in c2m14 from ::C1* to Object
-transformdb: unsupported type change in c2m16 from ::C1* to class ::C1
-transformdb: unsupported type change in m1 from ::C1* to bool
-transformdb: unsupported type change in m2 from ::C1* to byte
-transformdb: unsupported type change in m3 from ::C1* to short
-transformdb: unsupported type change in m4 from ::C1* to int
-transformdb: unsupported type change in m5 from ::C1* to long
-transformdb: unsupported type change in m6 from ::C1* to float
-transformdb: unsupported type change in m7 from ::C1* to double
-transformdb: unsupported type change in m9 from ::C1* to enumeration ::E
-transformdb: unsupported type change in m10 from ::C1* to struct ::S1
-transformdb: unsupported type change in m11 from ::C1* to sequence ::Seq1
-transformdb: unsupported type change in m12 from ::C1* to dictionary ::D1
-transformdb: unsupported type change in m14 from ::C1* to Object
-transformdb: unsupported type change in m16 from ::C1* to class ::C1
+transformdb: unsupported type change in ::Test::Seq1 sequence type from bool to byte
+transformdb: unsupported type change in ::Test::D1 value type from bool to byte
+transformdb: unsupported type change in c1m1 from ::Test::C1* to bool
+transformdb: unsupported type change in c1m2 from ::Test::C1* to byte
+transformdb: unsupported type change in c1m3 from ::Test::C1* to short
+transformdb: unsupported type change in c1m4 from ::Test::C1* to int
+transformdb: unsupported type change in c1m5 from ::Test::C1* to long
+transformdb: unsupported type change in c1m6 from ::Test::C1* to float
+transformdb: unsupported type change in c1m7 from ::Test::C1* to double
+transformdb: unsupported type change in c1m9 from ::Test::C1* to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from ::Test::C1* to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from ::Test::C1* to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from ::Test::C1* to dictionary ::Test::D1
+transformdb: unsupported type change in c1m14 from ::Test::C1* to Object
+transformdb: unsupported type change in c1m16 from ::Test::C1* to class ::Test::C1
+transformdb: unsupported type change in c2m1 from ::Test::C1* to bool
+transformdb: unsupported type change in c2m2 from ::Test::C1* to byte
+transformdb: unsupported type change in c2m3 from ::Test::C1* to short
+transformdb: unsupported type change in c2m4 from ::Test::C1* to int
+transformdb: unsupported type change in c2m5 from ::Test::C1* to long
+transformdb: unsupported type change in c2m6 from ::Test::C1* to float
+transformdb: unsupported type change in c2m7 from ::Test::C1* to double
+transformdb: unsupported type change in c2m9 from ::Test::C1* to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from ::Test::C1* to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from ::Test::C1* to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from ::Test::C1* to dictionary ::Test::D1
+transformdb: unsupported type change in c2m14 from ::Test::C1* to Object
+transformdb: unsupported type change in c2m16 from ::Test::C1* to class ::Test::C1
+transformdb: unsupported type change in m1 from ::Test::C1* to bool
+transformdb: unsupported type change in m2 from ::Test::C1* to byte
+transformdb: unsupported type change in m3 from ::Test::C1* to short
+transformdb: unsupported type change in m4 from ::Test::C1* to int
+transformdb: unsupported type change in m5 from ::Test::C1* to long
+transformdb: unsupported type change in m6 from ::Test::C1* to float
+transformdb: unsupported type change in m7 from ::Test::C1* to double
+transformdb: unsupported type change in m9 from ::Test::C1* to enumeration ::Test::E
+transformdb: unsupported type change in m10 from ::Test::C1* to struct ::Test::S1
+transformdb: unsupported type change in m11 from ::Test::C1* to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from ::Test::C1* to dictionary ::Test::D1
+transformdb: unsupported type change in m14 from ::Test::C1* to Object
+transformdb: unsupported type change in m16 from ::Test::C1* to class ::Test::C1
diff --git a/cpp/test/FreezeScript/dbmap/fail/15_new.ice b/cpp/test/FreezeScript/dbmap/fail/15_new.ice
index 7767a4253a3..e82c9ca9485 100644
--- a/cpp/test/FreezeScript/dbmap/fail/15_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/15_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15;
C1 m16; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/15_old.ice b/cpp/test/FreezeScript/dbmap/fail/15_old.ice
index 3ae41be53a1..d4ff7d1ab74 100644
--- a/cpp/test/FreezeScript/dbmap/fail/15_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/15_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15;
C1* m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/16.err b/cpp/test/FreezeScript/dbmap/fail/16.err
index c2b1c875971..0c59143cf6b 100644
--- a/cpp/test/FreezeScript/dbmap/fail/16.err
+++ b/cpp/test/FreezeScript/dbmap/fail/16.err
@@ -1,44 +1,44 @@
-transformdb: unsupported type change in ::Seq1 sequence type from bool to byte
-transformdb: unsupported type change in ::D1 value type from bool to byte
-transformdb: unsupported type change in c1m1 from class ::C1 to bool
-transformdb: unsupported type change in c1m2 from class ::C1 to byte
-transformdb: unsupported type change in c1m3 from class ::C1 to short
-transformdb: unsupported type change in c1m4 from class ::C1 to int
-transformdb: unsupported type change in c1m5 from class ::C1 to long
-transformdb: unsupported type change in c1m6 from class ::C1 to float
-transformdb: unsupported type change in c1m7 from class ::C1 to double
-transformdb: unsupported type change in c1m8 from class ::C1 to string
-transformdb: unsupported type change in c1m9 from class ::C1 to enumeration ::E
-transformdb: unsupported type change in c1m10 from class ::C1 to struct ::S1
-transformdb: unsupported type change in c1m11 from class ::C1 to sequence ::Seq1
-transformdb: unsupported type change in c1m12 from class ::C1 to dictionary ::D1
-transformdb: unsupported type change in c1m13 from class ::C1 to Object*
-transformdb: unsupported type change in c1m15 from class ::C1 to ::C1*
-transformdb: unsupported type change in c2m1 from class ::C1 to bool
-transformdb: unsupported type change in c2m2 from class ::C1 to byte
-transformdb: unsupported type change in c2m3 from class ::C1 to short
-transformdb: unsupported type change in c2m4 from class ::C1 to int
-transformdb: unsupported type change in c2m5 from class ::C1 to long
-transformdb: unsupported type change in c2m6 from class ::C1 to float
-transformdb: unsupported type change in c2m7 from class ::C1 to double
-transformdb: unsupported type change in c2m8 from class ::C1 to string
-transformdb: unsupported type change in c2m9 from class ::C1 to enumeration ::E
-transformdb: unsupported type change in c2m10 from class ::C1 to struct ::S1
-transformdb: unsupported type change in c2m11 from class ::C1 to sequence ::Seq1
-transformdb: unsupported type change in c2m12 from class ::C1 to dictionary ::D1
-transformdb: unsupported type change in c2m13 from class ::C1 to Object*
-transformdb: unsupported type change in c2m15 from class ::C1 to ::C1*
-transformdb: unsupported type change in m1 from class ::C1 to bool
-transformdb: unsupported type change in m2 from class ::C1 to byte
-transformdb: unsupported type change in m3 from class ::C1 to short
-transformdb: unsupported type change in m4 from class ::C1 to int
-transformdb: unsupported type change in m5 from class ::C1 to long
-transformdb: unsupported type change in m6 from class ::C1 to float
-transformdb: unsupported type change in m7 from class ::C1 to double
-transformdb: unsupported type change in m8 from class ::C1 to string
-transformdb: unsupported type change in m9 from class ::C1 to enumeration ::E
-transformdb: unsupported type change in m10 from class ::C1 to struct ::S1
-transformdb: unsupported type change in m11 from class ::C1 to sequence ::Seq1
-transformdb: unsupported type change in m12 from class ::C1 to dictionary ::D1
-transformdb: unsupported type change in m13 from class ::C1 to Object*
-transformdb: unsupported type change in m15 from class ::C1 to ::C1*
+transformdb: unsupported type change in ::Test::Seq1 sequence type from bool to byte
+transformdb: unsupported type change in ::Test::D1 value type from bool to byte
+transformdb: unsupported type change in c1m1 from class ::Test::C1 to bool
+transformdb: unsupported type change in c1m2 from class ::Test::C1 to byte
+transformdb: unsupported type change in c1m3 from class ::Test::C1 to short
+transformdb: unsupported type change in c1m4 from class ::Test::C1 to int
+transformdb: unsupported type change in c1m5 from class ::Test::C1 to long
+transformdb: unsupported type change in c1m6 from class ::Test::C1 to float
+transformdb: unsupported type change in c1m7 from class ::Test::C1 to double
+transformdb: unsupported type change in c1m8 from class ::Test::C1 to string
+transformdb: unsupported type change in c1m9 from class ::Test::C1 to enumeration ::Test::E
+transformdb: unsupported type change in c1m10 from class ::Test::C1 to struct ::Test::S1
+transformdb: unsupported type change in c1m11 from class ::Test::C1 to sequence ::Test::Seq1
+transformdb: unsupported type change in c1m12 from class ::Test::C1 to dictionary ::Test::D1
+transformdb: unsupported type change in c1m13 from class ::Test::C1 to Object*
+transformdb: unsupported type change in c1m15 from class ::Test::C1 to ::Test::C1*
+transformdb: unsupported type change in c2m1 from class ::Test::C1 to bool
+transformdb: unsupported type change in c2m2 from class ::Test::C1 to byte
+transformdb: unsupported type change in c2m3 from class ::Test::C1 to short
+transformdb: unsupported type change in c2m4 from class ::Test::C1 to int
+transformdb: unsupported type change in c2m5 from class ::Test::C1 to long
+transformdb: unsupported type change in c2m6 from class ::Test::C1 to float
+transformdb: unsupported type change in c2m7 from class ::Test::C1 to double
+transformdb: unsupported type change in c2m8 from class ::Test::C1 to string
+transformdb: unsupported type change in c2m9 from class ::Test::C1 to enumeration ::Test::E
+transformdb: unsupported type change in c2m10 from class ::Test::C1 to struct ::Test::S1
+transformdb: unsupported type change in c2m11 from class ::Test::C1 to sequence ::Test::Seq1
+transformdb: unsupported type change in c2m12 from class ::Test::C1 to dictionary ::Test::D1
+transformdb: unsupported type change in c2m13 from class ::Test::C1 to Object*
+transformdb: unsupported type change in c2m15 from class ::Test::C1 to ::Test::C1*
+transformdb: unsupported type change in m1 from class ::Test::C1 to bool
+transformdb: unsupported type change in m2 from class ::Test::C1 to byte
+transformdb: unsupported type change in m3 from class ::Test::C1 to short
+transformdb: unsupported type change in m4 from class ::Test::C1 to int
+transformdb: unsupported type change in m5 from class ::Test::C1 to long
+transformdb: unsupported type change in m6 from class ::Test::C1 to float
+transformdb: unsupported type change in m7 from class ::Test::C1 to double
+transformdb: unsupported type change in m8 from class ::Test::C1 to string
+transformdb: unsupported type change in m9 from class ::Test::C1 to enumeration ::Test::E
+transformdb: unsupported type change in m10 from class ::Test::C1 to struct ::Test::S1
+transformdb: unsupported type change in m11 from class ::Test::C1 to sequence ::Test::Seq1
+transformdb: unsupported type change in m12 from class ::Test::C1 to dictionary ::Test::D1
+transformdb: unsupported type change in m13 from class ::Test::C1 to Object*
+transformdb: unsupported type change in m15 from class ::Test::C1 to ::Test::C1*
diff --git a/cpp/test/FreezeScript/dbmap/fail/16_new.ice b/cpp/test/FreezeScript/dbmap/fail/16_new.ice
index 46d2990d543..c4a2aa6ab2f 100644
--- a/cpp/test/FreezeScript/dbmap/fail/16_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/16_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1* m15; // FAIL
C1 m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/16_old.ice b/cpp/test/FreezeScript/dbmap/fail/16_old.ice
index 3092a26c0fd..072f9d2a84d 100644
--- a/cpp/test/FreezeScript/dbmap/fail/16_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/16_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3 };
struct S1
@@ -72,3 +75,5 @@ struct S2
C1 m15;
C1 m16;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/17.err b/cpp/test/FreezeScript/dbmap/fail/17.err
index d8adb5f66a8..9a02673a722 100644
--- a/cpp/test/FreezeScript/dbmap/fail/17.err
+++ b/cpp/test/FreezeScript/dbmap/fail/17.err
@@ -1,4 +1,4 @@
-transformdb: class ::C declared but not defined
+transformdb: class ::Test::C declared but not defined
The following types had no matching definitions in the new Slice:
- ::C
+ ::Test::C
diff --git a/cpp/test/FreezeScript/dbmap/fail/17_new.ice b/cpp/test/FreezeScript/dbmap/fail/17_new.ice
index 53c636cc3fe..528d8cc0dde 100644
--- a/cpp/test/FreezeScript/dbmap/fail/17_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/17_new.ice
@@ -1,6 +1,11 @@
+module Test
+{
+
class C;
struct S
{
C m1; // FAIL
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/17_old.ice b/cpp/test/FreezeScript/dbmap/fail/17_old.ice
index 0d8efede30b..05ade822347 100644
--- a/cpp/test/FreezeScript/dbmap/fail/17_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/17_old.ice
@@ -1,6 +1,11 @@
+module Test
+{
+
class C {};
struct S
{
C m1;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/18.err b/cpp/test/FreezeScript/dbmap/fail/18.err
index 1e368a2b877..7ff719dba42 100644
--- a/cpp/test/FreezeScript/dbmap/fail/18.err
+++ b/cpp/test/FreezeScript/dbmap/fail/18.err
@@ -1 +1 @@
-transformdb: unsupported type change in m2 from class ::C1 to class ::C2
+transformdb: unsupported type change in m2 from class ::Test::C1 to class ::Test::C2
diff --git a/cpp/test/FreezeScript/dbmap/fail/18_new.ice b/cpp/test/FreezeScript/dbmap/fail/18_new.ice
index 54a8013af91..dfad7f8981b 100644
--- a/cpp/test/FreezeScript/dbmap/fail/18_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/18_new.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
class C1 {};
class C2 extends C1 {};
class C3 {};
@@ -9,3 +12,5 @@ struct S
C1 m3;
Object m4;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/18_old.ice b/cpp/test/FreezeScript/dbmap/fail/18_old.ice
index 6b7907e66e5..6ed6b829dd5 100644
--- a/cpp/test/FreezeScript/dbmap/fail/18_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/18_old.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
class C1 {};
class C2 extends C1 {};
class C3 {};
@@ -9,3 +12,5 @@ struct S
C2 m3;
C3 m4;
};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/19_new.ice b/cpp/test/FreezeScript/dbmap/fail/19_new.ice
index 411b21d8d9b..4c3bebb60c8 100644
--- a/cpp/test/FreezeScript/dbmap/fail/19_new.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/19_new.ice
@@ -1 +1,6 @@
+module Test
+{
+
local class C {};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/fail/19_old.ice b/cpp/test/FreezeScript/dbmap/fail/19_old.ice
index 07868b486a5..f52e8c9f09f 100644
--- a/cpp/test/FreezeScript/dbmap/fail/19_old.ice
+++ b/cpp/test/FreezeScript/dbmap/fail/19_old.ice
@@ -1 +1,6 @@
+module Test
+{
+
class C {};
+
+};
diff --git a/cpp/test/FreezeScript/dbmap/init.xml b/cpp/test/FreezeScript/dbmap/init.xml
index 90edf3ab68a..d3220a15b52 100644
--- a/cpp/test/FreezeScript/dbmap/init.xml
+++ b/cpp/test/FreezeScript/dbmap/init.xml
@@ -1,14 +1,14 @@
<transformdb>
- <database key="int" value="::S">
+ <database key="int" value="::Test::S">
<record>
</record>
</database>
<!-- enum ::E -->
- <transform type="::E"/>
+ <transform type="::Test::E"/>
<!-- struct ::S -->
- <transform type="::S">
+ <transform type="::Test::S">
<!-- Primitives -->
@@ -268,24 +268,24 @@
<!-- Objects -->
- <set target="new.baseObject" type="::F"/>
+ <set target="new.baseObject" type="::Test::F"/>
<set target="new.baseObject.stringToEnumSeq" length="2"/>
<set target="new.baseObject.stringToEnumSeq[0]" value="'E1'"/>
<set target="new.baseObject.stringToEnumSeq[1]" value="'E3'"/>
- <set target="new.cObject" type="::C"/>
+ <set target="new.cObject" type="::Test::C"/>
<add target="new.cObject.boolToStringDict" key="0" value="false"/>
<add target="new.cObject.boolToStringDict" key="1" value="true"/>
- <set target="new.dAsCObject" type="::D"/>
+ <set target="new.dAsCObject" type="::Test::D"/>
<add target="new.dAsCObject.boolToStringDict" key="0" value="false"/>
<add target="new.dAsCObject.boolToStringDict" key="1" value="true"/>
<set target="new.dAsCObject.stringToByteSeq" length="2"/>
<set target="new.dAsCObject.stringToByteSeq[0]" value="'0'"/>
<set target="new.dAsCObject.stringToByteSeq[1]" value="'255'"/>
- <set target="new.dAsCObject.obj" type="::F"/>
+ <set target="new.dAsCObject.obj" type="::Test::F"/>
- <set target="new.dObject" type="::D"/>
+ <set target="new.dObject" type="::Test::D"/>
<add target="new.dObject.boolToStringDict" key="0" value="false"/>
<add target="new.dObject.boolToStringDict" key="1" value="true"/>
<set target="new.dObject.stringToByteSeq" length="2"/>
diff --git a/cpp/test/FreezeScript/dbmap/makedb.cpp b/cpp/test/FreezeScript/dbmap/makedb.cpp
index dcda6f5cd3e..c33d2713d4b 100644
--- a/cpp/test/FreezeScript/dbmap/makedb.cpp
+++ b/cpp/test/FreezeScript/dbmap/makedb.cpp
@@ -14,6 +14,7 @@
using namespace std;
using namespace Ice;
using namespace Freeze;
+using namespace Test;
int
run(const CommunicatorPtr& communicator, const string& envName, const string& dbName)
diff --git a/cpp/test/FreezeScript/dbmap/run.py b/cpp/test/FreezeScript/dbmap/run.py
index 6ed553d5279..e8bca81e418 100755
--- a/cpp/test/FreezeScript/dbmap/run.py
+++ b/cpp/test/FreezeScript/dbmap/run.py
@@ -58,7 +58,7 @@ for oldfile in files:
newfile = oldfile.replace("old", "new")
if oldfile.find("19") == 0:
- value = "::C"
+ value = "::Test::C"
else:
value = "int"
@@ -110,7 +110,7 @@ print "ok"
print "executing default transformations... ",
sys.stdout.flush()
-command = transformdb + " --old " + testold + " --new " + testnew + " --key int --value ::S " + init_dbdir + " default.db " + check_dbdir
+command = transformdb + " --old " + testold + " --new " + testnew + " --key int --value ::Test::S " + init_dbdir + " default.db " + check_dbdir
stdin, stdout, stderr = os.popen3(command)
stderr.readlines()
diff --git a/cpp/test/FreezeScript/evictor/TestNew.ice b/cpp/test/FreezeScript/evictor/TestNew.ice
index 7063e974c49..216127d5f32 100644
--- a/cpp/test/FreezeScript/evictor/TestNew.ice
+++ b/cpp/test/FreezeScript/evictor/TestNew.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3};
class MainObject
@@ -38,3 +41,5 @@ class DerivedFacetObject extends FacetObject
long count;
};
*/
+
+};
diff --git a/cpp/test/FreezeScript/evictor/TestOld.ice b/cpp/test/FreezeScript/evictor/TestOld.ice
index 7edf6b5ca3c..25d74db4396 100644
--- a/cpp/test/FreezeScript/evictor/TestOld.ice
+++ b/cpp/test/FreezeScript/evictor/TestOld.ice
@@ -1,3 +1,6 @@
+module Test
+{
+
enum E { E1, E2, E3};
class MainObject
@@ -27,3 +30,5 @@ class DerivedFacetObject extends FacetObject
{
long count;
};
+
+};
diff --git a/cpp/test/FreezeScript/evictor/check.xml b/cpp/test/FreezeScript/evictor/check.xml
index c963acdb765..00eee237847 100644
--- a/cpp/test/FreezeScript/evictor/check.xml
+++ b/cpp/test/FreezeScript/evictor/check.xml
@@ -1,16 +1,16 @@
<transformdb>
<database key="::Ice::Identity" value="::Freeze::ObjectRecord">
<record>
- <fail test="newvalue.servant.ice_id == '::DerivedMainObject'"/>
- <fail test="newvalue.servant.ice_id == '::DerivedFacetObject'"/>
+ <fail test="newvalue.servant.ice_id == '::Test::DerivedMainObject'"/>
+ <fail test="newvalue.servant.ice_id == '::Test::DerivedFacetObject'"/>
</record>
</database>
- <!-- enum ::E -->
- <transform type="::E"/>
+ <!-- enum ::Test::E -->
+ <transform type="::Test::E"/>
- <!-- class ::MainObject -->
- <transform type="::MainObject">
+ <!-- class ::Test::MainObject -->
+ <transform type="::Test::MainObject">
<fail test="new.boolToString != 'true'"/>
<fail test="new.byteToShort != 0"/>
<fail test="new.shortToByte != 255"/>
@@ -18,12 +18,12 @@
<fail test="new.longToInt != 2147483647"/>
<fail test="new.floatToString != '4567.8'"/>
<fail test="new.doubleToFloat - 8765.4 > 0.001"/>
- <fail test="new.stringToEnum != ::New::E1"/>
- <fail test="new.newname != ::New::E2"/>
+ <fail test="new.stringToEnum != ::New::Test::E1"/>
+ <fail test="new.newname != ::New::Test::E2"/>
</transform>
- <!-- class ::RenamedFacetObject -->
- <transform type="::RenamedFacetObject">
+ <!-- class ::Test::RenamedFacetObject -->
+ <transform type="::Test::RenamedFacetObject">
<fail test="new.doubleToString != '901235' and new.doubleToString != '901234'"/>
</transform>
</transformdb>
diff --git a/cpp/test/FreezeScript/evictor/makedb.cpp b/cpp/test/FreezeScript/evictor/makedb.cpp
index ef8f575fdb5..d169f4713bf 100644
--- a/cpp/test/FreezeScript/evictor/makedb.cpp
+++ b/cpp/test/FreezeScript/evictor/makedb.cpp
@@ -12,6 +12,7 @@
#include <TestOld.h>
using namespace std;
+using namespace Test;
class MainObjectI : public MainObject, public IceUtil::AbstractMutexI<IceUtil::Mutex>
{
@@ -36,19 +37,19 @@ public:
virtual Ice::ObjectPtr
create(const string& type)
{
- if(type == "::MainObject")
+ if(type == "::Test::MainObject")
{
return new MainObjectI;
}
- else if(type == "::DerivedMainObject")
+ else if(type == "::Test::DerivedMainObject")
{
return new DerivedMainObjectI;
}
- else if(type == "::FacetObject")
+ else if(type == "::Test::FacetObject")
{
return new FacetObjectI;
}
- else if(type == "::DerivedFacetObject")
+ else if(type == "::Test::DerivedFacetObject")
{
return new DerivedFacetObjectI;
}
diff --git a/cpp/test/FreezeScript/evictor/transform.xml b/cpp/test/FreezeScript/evictor/transform.xml
index 8e65ba7d749..c18a6c6629c 100644
--- a/cpp/test/FreezeScript/evictor/transform.xml
+++ b/cpp/test/FreezeScript/evictor/transform.xml
@@ -3,16 +3,16 @@
<record/>
</database>
- <!-- enum ::E -->
- <transform type="::E"/>
+ <!-- enum ::Test::E -->
+ <transform type="::Test::E"/>
- <!-- class ::MainObject -->
- <transform type="::MainObject">
+ <!-- class ::Test::MainObject -->
+ <transform type="::Test::MainObject">
<!-- NOTICE: renamed has been removed -->
<!-- NOTICE: newname has been added -->
<set target="new.newname" value="old.renamed"/>
</transform>
- <!-- class ::RenamedFacetObject -->
- <transform type="::RenamedFacetObject" rename="::FacetObject"/>
+ <!-- class ::Test::RenamedFacetObject -->
+ <transform type="::Test::RenamedFacetObject" rename="::Test::FacetObject"/>
</transformdb>
diff --git a/cpp/test/Glacier/starter/Callback.ice b/cpp/test/Glacier/starter/Callback.ice
index fb56ee553d1..7fe414331e9 100644
--- a/cpp/test/Glacier/starter/Callback.ice
+++ b/cpp/test/Glacier/starter/Callback.ice
@@ -10,6 +10,9 @@
#ifndef CALLBACK_ICE
#define CALLBACK_ICE
+module Test
+{
+
exception CallbackException
{
double someValue;
@@ -34,4 +37,6 @@ class Callback
void shutdown();
};
+};
+
#endif
diff --git a/cpp/test/Glacier/starter/CallbackI.cpp b/cpp/test/Glacier/starter/CallbackI.cpp
index 2a5be3f93cf..be135022c2e 100644
--- a/cpp/test/Glacier/starter/CallbackI.cpp
+++ b/cpp/test/Glacier/starter/CallbackI.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Test;
CallbackReceiverI::CallbackReceiverI() :
_callback(false)
diff --git a/cpp/test/Glacier/starter/CallbackI.h b/cpp/test/Glacier/starter/CallbackI.h
index 91d92458313..41e648979c1 100644
--- a/cpp/test/Glacier/starter/CallbackI.h
+++ b/cpp/test/Glacier/starter/CallbackI.h
@@ -14,7 +14,7 @@
#include <IceUtil/Monitor.h>
#include <Callback.h>
-class CallbackReceiverI : public CallbackReceiver, IceUtil::Monitor<IceUtil::Mutex>
+class CallbackReceiverI : public ::Test::CallbackReceiver, IceUtil::Monitor<IceUtil::Mutex>
{
public:
@@ -29,14 +29,14 @@ private:
bool _callback;
};
-class CallbackI : public Callback
+class CallbackI : public ::Test::Callback
{
public:
CallbackI(const Ice::CommunicatorPtr&);
- virtual void initiateCallback(const CallbackReceiverPrx&, const Ice::Current&);
- virtual void initiateCallbackEx(const CallbackReceiverPrx&, const Ice::Current&);
+ virtual void initiateCallback(const ::Test::CallbackReceiverPrx&, const Ice::Current&);
+ virtual void initiateCallbackEx(const ::Test::CallbackReceiverPrx&, const Ice::Current&);
virtual void shutdown(const Ice::Current&);
private:
diff --git a/cpp/test/Glacier/starter/Client.cpp b/cpp/test/Glacier/starter/Client.cpp
index b514c249f1c..0c7db0b14c1 100644
--- a/cpp/test/Glacier/starter/Client.cpp
+++ b/cpp/test/Glacier/starter/Client.cpp
@@ -16,6 +16,7 @@
using namespace std;
using namespace Ice;
+using namespace Test;
class CallbackClient : public Application
{
diff --git a/cpp/test/Glacier/starter/Server.cpp b/cpp/test/Glacier/starter/Server.cpp
index 2fe64be5a45..ac16ef95f99 100644
--- a/cpp/test/Glacier/starter/Server.cpp
+++ b/cpp/test/Glacier/starter/Server.cpp
@@ -12,6 +12,7 @@
using namespace std;
using namespace Ice;
+using namespace Test;
class CallbackServer : public Application
{
diff --git a/cpp/test/Ice/adapterDeactivation/AllTests.cpp b/cpp/test/Ice/adapterDeactivation/AllTests.cpp
index 3215011ac6b..b6c91ecd0d6 100644
--- a/cpp/test/Ice/adapterDeactivation/AllTests.cpp
+++ b/cpp/test/Ice/adapterDeactivation/AllTests.cpp
@@ -13,8 +13,9 @@
using namespace std;
using namespace Ice;
+using namespace Test;
-TestPrx
+TestIntfPrx
allTests(const CommunicatorPtr& communicator)
{
cout << "testing stringToProxy... " << flush;
@@ -23,7 +24,7 @@ allTests(const CommunicatorPtr& communicator)
cout << "ok" << endl;
cout << "testing checked cast... " << flush;
- TestPrx obj = TestPrx::checkedCast(base);
+ TestIntfPrx obj = TestIntfPrx::checkedCast(base);
test(obj);
test(obj == base);
cout << "ok" << endl;
diff --git a/cpp/test/Ice/adapterDeactivation/Client.cpp b/cpp/test/Ice/adapterDeactivation/Client.cpp
index e11d09a5d62..9b192abb518 100644
--- a/cpp/test/Ice/adapterDeactivation/Client.cpp
+++ b/cpp/test/Ice/adapterDeactivation/Client.cpp
@@ -13,6 +13,7 @@
using namespace std;
using namespace Ice;
+using namespace Test;
class TestClient : public Application
{
@@ -31,7 +32,7 @@ main(int argc, char* argv[])
int
TestClient::run(int argc, char* argv[])
{
- TestPrx allTests(const CommunicatorPtr&);
- TestPrx obj = allTests(communicator());
+ TestIntfPrx allTests(const CommunicatorPtr&);
+ TestIntfPrx obj = allTests(communicator());
return EXIT_SUCCESS;
}
diff --git a/cpp/test/Ice/adapterDeactivation/Collocated.cpp b/cpp/test/Ice/adapterDeactivation/Collocated.cpp
index 7510e04c6a4..7f4b58f9808 100644
--- a/cpp/test/Ice/adapterDeactivation/Collocated.cpp
+++ b/cpp/test/Ice/adapterDeactivation/Collocated.cpp
@@ -14,6 +14,7 @@
using namespace std;
using namespace Ice;
+using namespace Test;
class TestServer : public Application
{
@@ -37,7 +38,7 @@ TestServer::run(int argc, char* argv[])
ServantLocatorPtr locator = new ServantLocatorI;
adapter->addServantLocator(locator, "");
- TestPrx allTests(const CommunicatorPtr&);
+ TestIntfPrx allTests(const CommunicatorPtr&);
allTests(communicator());
adapter->waitForDeactivate();
diff --git a/cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp b/cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp
index af6d58f6a4c..da364ca8377 100644
--- a/cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp
+++ b/cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp
@@ -13,6 +13,7 @@
using namespace std;
using namespace Ice;
+using namespace Test;
ServantLocatorI::ServantLocatorI() :
_deactivated(false)
diff --git a/cpp/test/Ice/adapterDeactivation/Test.ice b/cpp/test/Ice/adapterDeactivation/Test.ice
index 61e539de9be..30c397569bc 100644
--- a/cpp/test/Ice/adapterDeactivation/Test.ice
+++ b/cpp/test/Ice/adapterDeactivation/Test.ice
@@ -10,7 +10,10 @@
#ifndef TEST_ICE
#define TEST_ICE
-interface Test
+module Test
+{
+
+interface TestIntf
{
void transient();
@@ -22,4 +25,6 @@ local class Cookie
nonmutating string message();
};
+};
+
#endif
diff --git a/cpp/test/Ice/adapterDeactivation/TestI.h b/cpp/test/Ice/adapterDeactivation/TestI.h
index 73b75a0bb8e..b8ba80a19ea 100644
--- a/cpp/test/Ice/adapterDeactivation/TestI.h
+++ b/cpp/test/Ice/adapterDeactivation/TestI.h
@@ -12,7 +12,7 @@
#include <Test.h>
-class TestI : public Test
+class TestI : public Test::TestIntf
{
public:
@@ -20,7 +20,7 @@ public:
virtual void deactivate(const Ice::Current&);
};
-class CookieI : public Cookie
+class CookieI : public Test::Cookie
{
public:
diff --git a/cpp/test/Ice/checksum/client/Types.ice b/cpp/test/Ice/checksum/client/Types.ice
index 5162f718775..1fd712e3963 100644
--- a/cpp/test/Ice/checksum/client/Types.ice
+++ b/cpp/test/Ice/checksum/client/Types.ice
@@ -10,6 +10,9 @@
#ifndef CLASS_ICE
#define CLASS_ICE
+module Test
+{
+
//
// TEST: Same
//
@@ -432,4 +435,6 @@ local class LocalClass
{
};
+};
+
#endif
diff --git a/cpp/test/Ice/checksum/server/Types.ice b/cpp/test/Ice/checksum/server/Types.ice
index 0dd61483918..3f848504eb3 100644
--- a/cpp/test/Ice/checksum/server/Types.ice
+++ b/cpp/test/Ice/checksum/server/Types.ice
@@ -10,6 +10,9 @@
#ifndef CLASS_ICE
#define CLASS_ICE
+module Test
+{
+
//
// TEST: Same
//
@@ -427,4 +430,6 @@ local class LocalClass
{
};
+};
+
#endif
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp
index d563d5251f3..ee3fe2264ba 100644
--- a/cpp/test/Ice/exceptions/AllTests.cpp
+++ b/cpp/test/Ice/exceptions/AllTests.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
class EmptyI : virtual public Empty
{
diff --git a/cpp/test/Ice/exceptions/Client.cpp b/cpp/test/Ice/exceptions/Client.cpp
index 990b074a80f..8bb272ac9ff 100644
--- a/cpp/test/Ice/exceptions/Client.cpp
+++ b/cpp/test/Ice/exceptions/Client.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/Ice/exceptions/Collocated.cpp b/cpp/test/Ice/exceptions/Collocated.cpp
index 267677062e9..9925fc084a0 100644
--- a/cpp/test/Ice/exceptions/Collocated.cpp
+++ b/cpp/test/Ice/exceptions/Collocated.cpp
@@ -11,6 +11,7 @@
#include <TestI.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/Ice/exceptions/Test.ice b/cpp/test/Ice/exceptions/Test.ice
index 814de090d12..fd37aaba289 100644
--- a/cpp/test/Ice/exceptions/Test.ice
+++ b/cpp/test/Ice/exceptions/Test.ice
@@ -10,6 +10,9 @@
#ifndef TEST_ICE
#define TEST_ICE
+module Test
+{
+
interface Empty
{
};
@@ -38,7 +41,7 @@ exception D
module Mod
{
- exception A extends :: A
+ exception A extends ::Test::A
{
int a2Mem;
};
@@ -74,4 +77,6 @@ module Mod
void noSuchOperation();
};
+};
+
#endif
diff --git a/cpp/test/Ice/exceptions/TestAMD.ice b/cpp/test/Ice/exceptions/TestAMD.ice
index 4195793c995..04611f2034e 100644
--- a/cpp/test/Ice/exceptions/TestAMD.ice
+++ b/cpp/test/Ice/exceptions/TestAMD.ice
@@ -10,6 +10,9 @@
#ifndef TEST_AMD_ICE
#define TEST_AMD_ICE
+module Test
+{
+
interface Thrower;
exception A
@@ -34,7 +37,7 @@ exception D
module Mod
{
- exception A extends :: A
+ exception A extends ::Test::A
{
int a2Mem;
};
@@ -70,4 +73,6 @@ module Mod
void noSuchOperation();
};
+};
+
#endif
diff --git a/cpp/test/Ice/exceptions/TestAMDI.cpp b/cpp/test/Ice/exceptions/TestAMDI.cpp
index 41b9f08d8d8..38bf4bc72af 100644
--- a/cpp/test/Ice/exceptions/TestAMDI.cpp
+++ b/cpp/test/Ice/exceptions/TestAMDI.cpp
@@ -10,6 +10,8 @@
#include <Ice/Ice.h>
#include <TestAMDI.h>
+using namespace Test;
+
ThrowerI::ThrowerI(const Ice::ObjectAdapterPtr& adapter) :
_adapter(adapter)
{
diff --git a/cpp/test/Ice/exceptions/TestAMDI.h b/cpp/test/Ice/exceptions/TestAMDI.h
index bdfb3132e76..6259a91c241 100644
--- a/cpp/test/Ice/exceptions/TestAMDI.h
+++ b/cpp/test/Ice/exceptions/TestAMDI.h
@@ -12,48 +12,48 @@
#include <TestAMD.h>
-class ThrowerI : public Thrower
+class ThrowerI : public Test::Thrower
{
public:
ThrowerI(const Ice::ObjectAdapterPtr&);
- virtual void shutdown_async(const AMD_Thrower_shutdownPtr&,
+ virtual void shutdown_async(const Test::AMD_Thrower_shutdownPtr&,
const Ice::Current&);
- virtual void supportsUndeclaredExceptions_async(const AMD_Thrower_supportsUndeclaredExceptionsPtr&,
+ virtual void supportsUndeclaredExceptions_async(const Test::AMD_Thrower_supportsUndeclaredExceptionsPtr&,
const Ice::Current&);
- virtual void supportsAssertException_async(const AMD_Thrower_supportsAssertExceptionPtr&,
+ virtual void supportsAssertException_async(const Test::AMD_Thrower_supportsAssertExceptionPtr&,
const Ice::Current&);
- virtual void throwAasA_async(const AMD_Thrower_throwAasAPtr&,
+ virtual void throwAasA_async(const Test::AMD_Thrower_throwAasAPtr&,
Ice::Int, const Ice::Current&);
- virtual void throwAorDasAorD_async(const AMD_Thrower_throwAorDasAorDPtr&,
+ virtual void throwAorDasAorD_async(const Test::AMD_Thrower_throwAorDasAorDPtr&,
Ice::Int, const Ice::Current&);
- virtual void throwBasA_async(const AMD_Thrower_throwBasAPtr&,
+ virtual void throwBasA_async(const Test::AMD_Thrower_throwBasAPtr&,
Ice::Int, Ice::Int, const Ice::Current&);
- virtual void throwCasA_async(const AMD_Thrower_throwCasAPtr&,
+ virtual void throwCasA_async(const Test::AMD_Thrower_throwCasAPtr&,
Ice::Int, Ice::Int, Ice::Int, const Ice::Current&);
- virtual void throwBasB_async(const AMD_Thrower_throwBasBPtr&,
+ virtual void throwBasB_async(const Test::AMD_Thrower_throwBasBPtr&,
Ice::Int, Ice::Int, const Ice::Current&);
- virtual void throwCasB_async(const AMD_Thrower_throwCasBPtr&,
+ virtual void throwCasB_async(const Test::AMD_Thrower_throwCasBPtr&,
Ice::Int, Ice::Int, Ice::Int, const Ice::Current&);
- virtual void throwCasC_async(const AMD_Thrower_throwCasCPtr&,
+ virtual void throwCasC_async(const Test::AMD_Thrower_throwCasCPtr&,
Ice::Int, Ice::Int, Ice::Int, const Ice::Current&);
- virtual void throwModA_async(const AMD_Thrower_throwModAPtr&,
+ virtual void throwModA_async(const Test::AMD_Thrower_throwModAPtr&,
Ice::Int, Ice::Int, const Ice::Current&);
- virtual void throwUndeclaredA_async(const AMD_Thrower_throwUndeclaredAPtr&,
+ virtual void throwUndeclaredA_async(const Test::AMD_Thrower_throwUndeclaredAPtr&,
Ice::Int, const Ice::Current&);
- virtual void throwUndeclaredB_async(const AMD_Thrower_throwUndeclaredBPtr&,
+ virtual void throwUndeclaredB_async(const Test::AMD_Thrower_throwUndeclaredBPtr&,
Ice::Int, Ice::Int, const Ice::Current&);
- virtual void throwUndeclaredC_async(const AMD_Thrower_throwUndeclaredCPtr&,
+ virtual void throwUndeclaredC_async(const Test::AMD_Thrower_throwUndeclaredCPtr&,
Ice::Int, Ice::Int, Ice::Int, const Ice::Current&);
- virtual void throwLocalException_async(const AMD_Thrower_throwLocalExceptionPtr&,
+ virtual void throwLocalException_async(const Test::AMD_Thrower_throwLocalExceptionPtr&,
const Ice::Current&);
- virtual void throwNonIceException_async(const AMD_Thrower_throwNonIceExceptionPtr&,
+ virtual void throwNonIceException_async(const Test::AMD_Thrower_throwNonIceExceptionPtr&,
const Ice::Current&);
- virtual void throwAssertException_async(const AMD_Thrower_throwAssertExceptionPtr&,
+ virtual void throwAssertException_async(const Test::AMD_Thrower_throwAssertExceptionPtr&,
const Ice::Current&);
private:
diff --git a/cpp/test/Ice/exceptions/TestI.cpp b/cpp/test/Ice/exceptions/TestI.cpp
index a5696ec828f..7d6212fba86 100644
--- a/cpp/test/Ice/exceptions/TestI.cpp
+++ b/cpp/test/Ice/exceptions/TestI.cpp
@@ -10,6 +10,8 @@
#include <Ice/Ice.h>
#include <TestI.h>
+using namespace Test;
+
ThrowerI::ThrowerI(const Ice::ObjectAdapterPtr& adapter) :
_adapter(adapter)
{
diff --git a/cpp/test/Ice/exceptions/TestI.h b/cpp/test/Ice/exceptions/TestI.h
index c0014dae7ed..d9431a47c64 100644
--- a/cpp/test/Ice/exceptions/TestI.h
+++ b/cpp/test/Ice/exceptions/TestI.h
@@ -12,7 +12,7 @@
#include <Test.h>
-class ThrowerI : public Thrower
+class ThrowerI : public Test::Thrower
{
public:
diff --git a/cpp/test/Ice/facets/AllTests.cpp b/cpp/test/Ice/facets/AllTests.cpp
index 2d158fbf4ce..006a94e5105 100644
--- a/cpp/test/Ice/facets/AllTests.cpp
+++ b/cpp/test/Ice/facets/AllTests.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
class EmptyI : virtual public Empty
{
diff --git a/cpp/test/Ice/facets/Client.cpp b/cpp/test/Ice/facets/Client.cpp
index ff88f942b96..bf0237540c8 100644
--- a/cpp/test/Ice/facets/Client.cpp
+++ b/cpp/test/Ice/facets/Client.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/Ice/facets/Collocated.cpp b/cpp/test/Ice/facets/Collocated.cpp
index 2dd0aed44b6..01cc2324184 100644
--- a/cpp/test/Ice/facets/Collocated.cpp
+++ b/cpp/test/Ice/facets/Collocated.cpp
@@ -11,6 +11,7 @@
#include <TestI.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/Ice/facets/Test.ice b/cpp/test/Ice/facets/Test.ice
index adfcb0b9c31..3ee6b51a8f1 100644
--- a/cpp/test/Ice/facets/Test.ice
+++ b/cpp/test/Ice/facets/Test.ice
@@ -10,6 +10,9 @@
#ifndef TEST_ICE
#define TEST_ICE
+module Test
+{
+
interface Empty
{
};
@@ -55,4 +58,6 @@ interface H extends G
string callH();
};
+};
+
#endif
diff --git a/cpp/test/Ice/facets/TestI.h b/cpp/test/Ice/facets/TestI.h
index e3b9a6d132b..e828cfd7e44 100644
--- a/cpp/test/Ice/facets/TestI.h
+++ b/cpp/test/Ice/facets/TestI.h
@@ -12,49 +12,49 @@
#include <Test.h>
-class AI : virtual public A
+class AI : virtual public Test::A
{
public:
virtual std::string callA(const Ice::Current&);
};
-class BI : virtual public B, virtual public AI
+class BI : virtual public Test::B, virtual public AI
{
public:
virtual std::string callB(const Ice::Current&);
};
-class CI : virtual public C, virtual public AI
+class CI : virtual public Test::C, virtual public AI
{
public:
virtual std::string callC(const Ice::Current&);
};
-class DI : virtual public D, virtual public BI, virtual public CI
+class DI : virtual public Test::D, virtual public BI, virtual public CI
{
public:
virtual std::string callD(const Ice::Current&);
};
-class EI : virtual public E
+class EI : virtual public Test::E
{
public:
virtual std::string callE(const Ice::Current&);
};
-class FI : virtual public F, virtual public EI
+class FI : virtual public Test::F, virtual public EI
{
public:
virtual std::string callF(const Ice::Current&);
};
-class GI : virtual public G
+class GI : virtual public Test::G
{
public:
@@ -67,7 +67,7 @@ private:
Ice::CommunicatorPtr _communicator;
};
-class HI : virtual public H, virtual public GI
+class HI : virtual public Test::H, virtual public GI
{
public:
diff --git a/cpp/test/Ice/faultTolerance/AllTests.cpp b/cpp/test/Ice/faultTolerance/AllTests.cpp
index efbd59dbc17..903f0a3f47f 100644
--- a/cpp/test/Ice/faultTolerance/AllTests.cpp
+++ b/cpp/test/Ice/faultTolerance/AllTests.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
class CallbackBase : public IceUtil::Monitor<IceUtil::Mutex>
{
@@ -55,7 +56,7 @@ private:
bool _called;
};
-class AMI_Test_pidI : virtual public AMI_Test_pid, virtual public CallbackBase
+class AMI_Test_pidI : virtual public AMI_TestIntf_pid, virtual public CallbackBase
{
public:
@@ -82,7 +83,7 @@ private:
typedef IceUtil::Handle<AMI_Test_pidI> AMI_Test_pidIPtr;
-class AMI_Test_shutdownI : virtual public AMI_Test_shutdown, virtual public CallbackBase
+class AMI_Test_shutdownI : virtual public AMI_TestIntf_shutdown, virtual public CallbackBase
{
public:
@@ -99,7 +100,7 @@ public:
typedef IceUtil::Handle<AMI_Test_shutdownI> AMI_Test_shutdownIPtr;
-class AMI_Test_abortI : virtual public AMI_Test_abort, virtual public CallbackBase
+class AMI_Test_abortI : virtual public AMI_TestIntf_abort, virtual public CallbackBase
{
public:
@@ -131,7 +132,7 @@ public:
typedef IceUtil::Handle<AMI_Test_abortI> AMI_Test_abortIPtr;
-class AMI_Test_idempotentAbortI : public AMI_Test_idempotentAbort, public AMI_Test_abortI
+class AMI_Test_idempotentAbortI : public AMI_TestIntf_idempotentAbort, public AMI_Test_abortI
{
virtual void ice_response()
{
@@ -146,7 +147,7 @@ class AMI_Test_idempotentAbortI : public AMI_Test_idempotentAbort, public AMI_Te
typedef IceUtil::Handle<AMI_Test_idempotentAbortI> AMI_Test_idempotentAbortIPtr;
-class AMI_Test_nonmutatingAbortI : public AMI_Test_nonmutatingAbort, public AMI_Test_abortI
+class AMI_Test_nonmutatingAbortI : public AMI_TestIntf_nonmutatingAbort, public AMI_Test_abortI
{
virtual void ice_response()
{
@@ -176,7 +177,7 @@ allTests(const Ice::CommunicatorPtr& communicator, const vector<int>& ports)
cout << "ok" << endl;
cout << "testing checked cast... " << flush;
- TestPrx obj = TestPrx::checkedCast(base);
+ TestIntfPrx obj = TestIntfPrx::checkedCast(base);
test(obj);
test(obj == base);
cout << "ok" << endl;
diff --git a/cpp/test/Ice/faultTolerance/Test.ice b/cpp/test/Ice/faultTolerance/Test.ice
index aa61a3d687f..9f054386a61 100644
--- a/cpp/test/Ice/faultTolerance/Test.ice
+++ b/cpp/test/Ice/faultTolerance/Test.ice
@@ -10,7 +10,10 @@
#ifndef TEST_ICE
#define TEST_ICE
-["ami"] interface Test
+module Test
+{
+
+["ami"] interface TestIntf
{
void shutdown();
void abort();
@@ -19,4 +22,6 @@
idempotent int pid();
};
+};
+
#endif
diff --git a/cpp/test/Ice/faultTolerance/TestI.h b/cpp/test/Ice/faultTolerance/TestI.h
index b9cd2fee481..e3f947b4dff 100644
--- a/cpp/test/Ice/faultTolerance/TestI.h
+++ b/cpp/test/Ice/faultTolerance/TestI.h
@@ -12,7 +12,7 @@
#include <Test.h>
-class TestI : public Test
+class TestI : public Test::TestIntf
{
public:
diff --git a/cpp/test/Ice/gc/Client.cpp b/cpp/test/Ice/gc/Client.cpp
index 6e03a5920d7..dc7b7ee243a 100644
--- a/cpp/test/Ice/gc/Client.cpp
+++ b/cpp/test/Ice/gc/Client.cpp
@@ -14,6 +14,7 @@
#include <fstream>
using namespace std;
+using namespace Test;
static int num = 0;
diff --git a/cpp/test/Ice/gc/Test.ice b/cpp/test/Ice/gc/Test.ice
index ac8315b1ce4..a066c73ef10 100644
--- a/cpp/test/Ice/gc/Test.ice
+++ b/cpp/test/Ice/gc/Test.ice
@@ -10,6 +10,9 @@
#ifndef TEST_ICE
#define TEST_ICE
+module Test
+{
+
class C
{
C left;
@@ -92,4 +95,6 @@ class CTest
CDictDict theCDictDict;
};
+};
+
#endif
diff --git a/cpp/test/Ice/inheritance/AllTests.cpp b/cpp/test/Ice/inheritance/AllTests.cpp
index 0d1429a56a8..30a2c32b9e8 100644
--- a/cpp/test/Ice/inheritance/AllTests.cpp
+++ b/cpp/test/Ice/inheritance/AllTests.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
InitialPrx
allTests(const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/Ice/inheritance/Client.cpp b/cpp/test/Ice/inheritance/Client.cpp
index dc3b3686645..3524ce2cfe1 100644
--- a/cpp/test/Ice/inheritance/Client.cpp
+++ b/cpp/test/Ice/inheritance/Client.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/Ice/inheritance/Collocated.cpp b/cpp/test/Ice/inheritance/Collocated.cpp
index 4d44ce4f043..2171cda3afe 100644
--- a/cpp/test/Ice/inheritance/Collocated.cpp
+++ b/cpp/test/Ice/inheritance/Collocated.cpp
@@ -11,6 +11,7 @@
#include <TestI.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/Ice/inheritance/Test.ice b/cpp/test/Ice/inheritance/Test.ice
index db8df3320c5..f131c0c0729 100644
--- a/cpp/test/Ice/inheritance/Test.ice
+++ b/cpp/test/Ice/inheritance/Test.ice
@@ -10,6 +10,9 @@
#ifndef TEST_ICE
#define TEST_ICE
+module Test
+{
+
module MA
{
@@ -78,4 +81,6 @@ interface Initial
MA::IC* icop();
};
+};
+
#endif
diff --git a/cpp/test/Ice/inheritance/TestI.cpp b/cpp/test/Ice/inheritance/TestI.cpp
index 6aeb20763dc..6db30e02341 100644
--- a/cpp/test/Ice/inheritance/TestI.cpp
+++ b/cpp/test/Ice/inheritance/TestI.cpp
@@ -10,6 +10,8 @@
#include <Ice/Ice.h>
#include <TestI.h>
+using namespace Test;
+
MA::CAPrx
CAI_::caop(const MA::CAPrx& p, const Ice::Current&)
{
diff --git a/cpp/test/Ice/inheritance/TestI.h b/cpp/test/Ice/inheritance/TestI.h
index ed0638a2ee1..264358a672a 100644
--- a/cpp/test/Ice/inheritance/TestI.h
+++ b/cpp/test/Ice/inheritance/TestI.h
@@ -12,7 +12,7 @@
#include <Test.h>
-class InitialI : public Initial
+class InitialI : public Test::Initial
{
public:
@@ -20,82 +20,82 @@ public:
virtual void shutdown(const Ice::Current&);
- virtual MA::CAPrx caop(const Ice::Current&);
- virtual MB::CBPrx cbop(const Ice::Current&);
- virtual MA::CCPrx ccop(const Ice::Current&);
- virtual MA::CDPrx cdop(const Ice::Current&);
- virtual MA::IAPrx iaop(const Ice::Current&);
- virtual MB::IB1Prx ib1op(const Ice::Current&);
- virtual MB::IB2Prx ib2op(const Ice::Current&);
- virtual MA::ICPrx icop(const Ice::Current&);
+ virtual Test::MA::CAPrx caop(const Ice::Current&);
+ virtual Test::MB::CBPrx cbop(const Ice::Current&);
+ virtual Test::MA::CCPrx ccop(const Ice::Current&);
+ virtual Test::MA::CDPrx cdop(const Ice::Current&);
+ virtual Test::MA::IAPrx iaop(const Ice::Current&);
+ virtual Test::MB::IB1Prx ib1op(const Ice::Current&);
+ virtual Test::MB::IB2Prx ib2op(const Ice::Current&);
+ virtual Test::MA::ICPrx icop(const Ice::Current&);
private:
Ice::ObjectAdapterPtr _adapter;
- MA::CAPrx _ca;
- MB::CBPrx _cb;
- MA::CCPrx _cc;
- MA::CDPrx _cd;
- MA::IAPrx _ia;
- MB::IB1Prx _ib1;
- MB::IB2Prx _ib2;
- MA::ICPrx _ic;
+ Test::MA::CAPrx _ca;
+ Test::MB::CBPrx _cb;
+ Test::MA::CCPrx _cc;
+ Test::MA::CDPrx _cd;
+ Test::MA::IAPrx _ia;
+ Test::MB::IB1Prx _ib1;
+ Test::MB::IB2Prx _ib2;
+ Test::MA::ICPrx _ic;
};
-class CAI_ : virtual public MA::CA
+class CAI_ : virtual public Test::MA::CA
{
public:
- virtual MA::CAPrx caop(const MA::CAPrx&, const Ice::Current&);
+ virtual Test::MA::CAPrx caop(const Test::MA::CAPrx&, const Ice::Current&);
};
-class CBI : virtual public MB::CB, virtual public CAI_
+class CBI : virtual public Test::MB::CB, virtual public CAI_
{
public:
- virtual MB::CBPrx cbop(const MB::CBPrx&, const Ice::Current&);
+ virtual Test::MB::CBPrx cbop(const Test::MB::CBPrx&, const Ice::Current&);
};
-class CCI : virtual public MA::CC, virtual public CBI
+class CCI : virtual public Test::MA::CC, virtual public CBI
{
public:
- virtual MA::CCPrx ccop(const MA::CCPrx&, const Ice::Current&);
+ virtual Test::MA::CCPrx ccop(const Test::MA::CCPrx&, const Ice::Current&);
};
-class IAI : virtual public MA::IA
+class IAI : virtual public Test::MA::IA
{
public:
- virtual MA::IAPrx iaop(const MA::IAPrx&, const Ice::Current&);
+ virtual Test::MA::IAPrx iaop(const Test::MA::IAPrx&, const Ice::Current&);
};
-class IB1I : virtual public MB::IB1, virtual public IAI
+class IB1I : virtual public Test::MB::IB1, virtual public IAI
{
public:
- virtual MB::IB1Prx ib1op(const MB::IB1Prx&, const Ice::Current&);
+ virtual Test::MB::IB1Prx ib1op(const Test::MB::IB1Prx&, const Ice::Current&);
};
-class IB2I : virtual public MB::IB2, virtual public IAI
+class IB2I : virtual public Test::MB::IB2, virtual public IAI
{
public:
- virtual MB::IB2Prx ib2op(const MB::IB2Prx&, const Ice::Current&);
+ virtual Test::MB::IB2Prx ib2op(const Test::MB::IB2Prx&, const Ice::Current&);
};
-class ICI : virtual public MA::IC, virtual public IB1I, virtual public IB2I
+class ICI : virtual public Test::MA::IC, virtual public IB1I, virtual public IB2I
{
public:
- virtual MA::ICPrx icop(const MA::ICPrx&, const Ice::Current&);
+ virtual Test::MA::ICPrx icop(const Test::MA::ICPrx&, const Ice::Current&);
};
-class CDI : virtual public MA::CD, virtual public CCI, virtual public IB1I, virtual public IB2I
+class CDI : virtual public Test::MA::CD, virtual public CCI, virtual public IB1I, virtual public IB2I
{
public:
- virtual MA::CDPrx cdop(const MA::CDPrx&, const Ice::Current&);
+ virtual Test::MA::CDPrx cdop(const Test::MA::CDPrx&, const Ice::Current&);
};
#endif
diff --git a/cpp/test/Ice/location/AllTests.cpp b/cpp/test/Ice/location/AllTests.cpp
index 1a59bd50aca..4f2249f03b7 100644
--- a/cpp/test/Ice/location/AllTests.cpp
+++ b/cpp/test/Ice/location/AllTests.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
void
allTests(const Ice::CommunicatorPtr& communicator, const string& ref)
@@ -31,14 +32,14 @@ allTests(const Ice::CommunicatorPtr& communicator, const string& ref)
cout << "ok" << endl;
cout << "testing checked cast... " << flush;
- TestPrx obj = TestPrx::checkedCast(base);
- obj = TestPrx::checkedCast(communicator->stringToProxy("test@TestAdapter"));
- obj = TestPrx::checkedCast(communicator->stringToProxy("test @TestAdapter"));
- obj = TestPrx::checkedCast(communicator->stringToProxy("test@ TestAdapter"));
+ TestIntfPrx obj = TestIntfPrx::checkedCast(base);
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("test@TestAdapter"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("test @TestAdapter"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("test@ TestAdapter"));
test(obj);
- TestPrx obj2 = TestPrx::checkedCast(base2);
+ TestIntfPrx obj2 = TestIntfPrx::checkedCast(base2);
test(obj2);
- TestPrx obj3 = TestPrx::checkedCast(base3);
+ TestIntfPrx obj3 = TestIntfPrx::checkedCast(base3);
test(obj3);
ServerManagerPrx obj4 = ServerManagerPrx::checkedCast(base4);
test(obj4);
@@ -60,7 +61,7 @@ allTests(const Ice::CommunicatorPtr& communicator, const string& ref)
cout << "testing whether server is still reachable... " << flush;
try
{
- obj2 = TestPrx::checkedCast(base2);
+ obj2 = TestIntfPrx::checkedCast(base2);
obj2->ice_ping();
}
catch(const Ice::LocalException&)
diff --git a/cpp/test/Ice/location/Test.ice b/cpp/test/Ice/location/Test.ice
index 03f7b371bf9..53e0a2fc2a9 100644
--- a/cpp/test/Ice/location/Test.ice
+++ b/cpp/test/Ice/location/Test.ice
@@ -10,6 +10,9 @@
#ifndef TEST_ICE
#define TEST_ICE
+module Test
+{
+
interface ServerManager
{
void startServer();
@@ -21,11 +24,13 @@ interface Hello
void sayHello();
};
-interface Test
+interface TestIntf
{
void shutdown();
Hello* getHello();
};
+};
+
#endif
diff --git a/cpp/test/Ice/location/TestI.cpp b/cpp/test/Ice/location/TestI.cpp
index 46f84b8ed59..a70e57c1631 100644
--- a/cpp/test/Ice/location/TestI.cpp
+++ b/cpp/test/Ice/location/TestI.cpp
@@ -11,6 +11,8 @@
#include <Ice/Locator.h>
#include <TestI.h>
+using namespace Test;
+
ServerManagerI::ServerManagerI(const Ice::ObjectAdapterPtr& adapter) :
_adapter(adapter)
{
diff --git a/cpp/test/Ice/location/TestI.h b/cpp/test/Ice/location/TestI.h
index 7a9daf73b9b..be794a7c7e9 100644
--- a/cpp/test/Ice/location/TestI.h
+++ b/cpp/test/Ice/location/TestI.h
@@ -13,7 +13,7 @@
#include <Test.h>
#include <vector>
-class ServerManagerI : public ServerManager
+class ServerManagerI : public Test::ServerManager
{
public:
ServerManagerI(const Ice::ObjectAdapterPtr&);
@@ -27,21 +27,21 @@ private:
std::vector<Ice::CommunicatorPtr> _communicators;
};
-class HelloI : public Hello
+class HelloI : public Test::Hello
{
public:
virtual void sayHello(const Ice::Current&);
};
-class TestI : public Test
+class TestI : public Test::TestIntf
{
public:
TestI(const Ice::ObjectAdapterPtr&);
virtual void shutdown(const Ice::Current&);
- virtual HelloPrx getHello(const Ice::Current&);
+ virtual ::Test::HelloPrx getHello(const Ice::Current&);
private:
diff --git a/cpp/test/Ice/objects/AllTests.cpp b/cpp/test/Ice/objects/AllTests.cpp
index 375885d7bb8..a63c8171667 100644
--- a/cpp/test/Ice/objects/AllTests.cpp
+++ b/cpp/test/Ice/objects/AllTests.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
InitialPrx
allTests(const Ice::CommunicatorPtr& communicator, bool collocated)
diff --git a/cpp/test/Ice/objects/Client.cpp b/cpp/test/Ice/objects/Client.cpp
index 0a50ec3ccc4..702b79555b1 100644
--- a/cpp/test/Ice/objects/Client.cpp
+++ b/cpp/test/Ice/objects/Client.cpp
@@ -12,6 +12,7 @@
#include <TestI.h>
using namespace std;
+using namespace Test;
class MyObjectFactory : public Ice::ObjectFactory
{
@@ -19,15 +20,15 @@ public:
virtual Ice::ObjectPtr create(const string& type)
{
- if(type == "::B")
+ if(type == "::Test::B")
{
return new BI;
}
- else if(type == "::C")
+ else if(type == "::Test::C")
{
return new CI;
}
- else if(type == "::D")
+ else if(type == "::Test::D")
{
return new DI;
}
@@ -45,9 +46,9 @@ int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
Ice::ObjectFactoryPtr factory = new MyObjectFactory;
- communicator->addObjectFactory(factory, "::B");
- communicator->addObjectFactory(factory, "::C");
- communicator->addObjectFactory(factory, "::D");
+ communicator->addObjectFactory(factory, "::Test::B");
+ communicator->addObjectFactory(factory, "::Test::C");
+ communicator->addObjectFactory(factory, "::Test::D");
InitialPrx allTests(const Ice::CommunicatorPtr&, bool);
InitialPrx initial = allTests(communicator, false);
diff --git a/cpp/test/Ice/objects/Collocated.cpp b/cpp/test/Ice/objects/Collocated.cpp
index ae373c4c156..a239de6247a 100644
--- a/cpp/test/Ice/objects/Collocated.cpp
+++ b/cpp/test/Ice/objects/Collocated.cpp
@@ -11,6 +11,7 @@
#include <TestI.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/Ice/objects/Server.cpp b/cpp/test/Ice/objects/Server.cpp
index 908658ba974..c4f9ddff36a 100644
--- a/cpp/test/Ice/objects/Server.cpp
+++ b/cpp/test/Ice/objects/Server.cpp
@@ -11,6 +11,7 @@
#include <TestI.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/Ice/objects/Test.ice b/cpp/test/Ice/objects/Test.ice
index 3f57616f160..90af1dacd63 100644
--- a/cpp/test/Ice/objects/Test.ice
+++ b/cpp/test/Ice/objects/Test.ice
@@ -10,6 +10,9 @@
#ifndef TEST_ICE
#define TEST_ICE
+module Test
+{
+
class B;
class C;
@@ -55,4 +58,6 @@ class Initial
void getAll(out B b1, out B b2, out C theC, out D theD);
};
+};
+
#endif
diff --git a/cpp/test/Ice/objects/TestI.cpp b/cpp/test/Ice/objects/TestI.cpp
index e4025efdce7..ebffb7e0d0a 100644
--- a/cpp/test/Ice/objects/TestI.cpp
+++ b/cpp/test/Ice/objects/TestI.cpp
@@ -10,6 +10,8 @@
#include <Ice/Ice.h>
#include <TestI.h>
+using namespace Test;
+
BI::BI() :
_postUnmarshalInvoked(false)
{
diff --git a/cpp/test/Ice/objects/TestI.h b/cpp/test/Ice/objects/TestI.h
index d28c18dd5f1..6da6ef33716 100644
--- a/cpp/test/Ice/objects/TestI.h
+++ b/cpp/test/Ice/objects/TestI.h
@@ -12,7 +12,7 @@
#include <Test.h>
-class BI : public B
+class BI : public Test::B
{
public:
@@ -28,7 +28,7 @@ private:
bool _postUnmarshalInvoked;
};
-class CI : public C
+class CI : public Test::C
{
public:
@@ -44,7 +44,7 @@ private:
bool _postUnmarshalInvoked;
};
-class DI : public D
+class DI : public Test::D
{
public:
@@ -60,26 +60,26 @@ private:
bool _postUnmarshalInvoked;
};
-class InitialI : public Initial
+class InitialI : public Test::Initial
{
public:
InitialI(const Ice::ObjectAdapterPtr&);
virtual void shutdown(const Ice::Current&);
- virtual BPtr getB1(const Ice::Current&);
- virtual BPtr getB2(const Ice::Current&);
- virtual CPtr getC(const Ice::Current&);
- virtual DPtr getD(const Ice::Current&);
- virtual void getAll(BPtr&, BPtr&, CPtr&, DPtr&, const Ice::Current&);
+ virtual Test::BPtr getB1(const Ice::Current&);
+ virtual Test::BPtr getB2(const Ice::Current&);
+ virtual Test::CPtr getC(const Ice::Current&);
+ virtual Test::DPtr getD(const Ice::Current&);
+ virtual void getAll(Test::BPtr&, Test::BPtr&, Test::CPtr&, Test::DPtr&, const Ice::Current&);
private:
Ice::ObjectAdapterPtr _adapter;
- BPtr _b1;
- BPtr _b2;
- CPtr _c;
- DPtr _d;
+ Test::BPtr _b1;
+ Test::BPtr _b2;
+ Test::CPtr _c;
+ Test::DPtr _d;
};
#endif
diff --git a/cpp/test/Ice/slicing/exceptions/AllTests.cpp b/cpp/test/Ice/slicing/exceptions/AllTests.cpp
index da6bc5ca55e..762958f05eb 100644
--- a/cpp/test/Ice/slicing/exceptions/AllTests.cpp
+++ b/cpp/test/Ice/slicing/exceptions/AllTests.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
class CallbackBase : public IceUtil::Monitor<IceUtil::Mutex>
{
@@ -55,7 +56,7 @@ private:
bool _called;
};
-class AMI_Test_baseAsBaseI : public AMI_Test_baseAsBase, public CallbackBase
+class AMI_Test_baseAsBaseI : public AMI_TestIntf_baseAsBase, public CallbackBase
{
virtual void
ice_response()
@@ -73,7 +74,7 @@ class AMI_Test_baseAsBaseI : public AMI_Test_baseAsBase, public CallbackBase
catch(const Base& b)
{
test(b.b == "Base.b");
- test(b.ice_name() == "Base");
+ test(b.ice_name() =="Test::Base");
}
catch(...)
{
@@ -85,7 +86,7 @@ class AMI_Test_baseAsBaseI : public AMI_Test_baseAsBase, public CallbackBase
typedef IceUtil::Handle<AMI_Test_baseAsBaseI> AMI_Test_baseAsBaseIPtr;
-class AMI_Test_unknownDerivedAsBaseI : public AMI_Test_unknownDerivedAsBase, public CallbackBase
+class AMI_Test_unknownDerivedAsBaseI : public AMI_TestIntf_unknownDerivedAsBase, public CallbackBase
{
virtual void
ice_response()
@@ -103,7 +104,7 @@ class AMI_Test_unknownDerivedAsBaseI : public AMI_Test_unknownDerivedAsBase, pub
catch(const Base& b)
{
test(b.b == "UnknownDerived.b");
- test(b.ice_name() == "Base");
+ test(b.ice_name() =="Test::Base");
}
catch(...)
{
@@ -115,7 +116,7 @@ class AMI_Test_unknownDerivedAsBaseI : public AMI_Test_unknownDerivedAsBase, pub
typedef IceUtil::Handle<AMI_Test_unknownDerivedAsBaseI> AMI_Test_unknownDerivedAsBaseIPtr;
-class AMI_Test_knownDerivedAsBaseI : public AMI_Test_knownDerivedAsBase, public CallbackBase
+class AMI_Test_knownDerivedAsBaseI : public AMI_TestIntf_knownDerivedAsBase, public CallbackBase
{
virtual void
ice_response()
@@ -134,7 +135,7 @@ class AMI_Test_knownDerivedAsBaseI : public AMI_Test_knownDerivedAsBase, public
{
test(k.b == "KnownDerived.b");
test(k.kd == "KnownDerived.kd");
- test(k.ice_name() == "KnownDerived");
+ test(k.ice_name() =="Test::KnownDerived");
}
catch(...)
{
@@ -146,7 +147,7 @@ class AMI_Test_knownDerivedAsBaseI : public AMI_Test_knownDerivedAsBase, public
typedef IceUtil::Handle<AMI_Test_knownDerivedAsBaseI> AMI_Test_knownDerivedAsBaseIPtr;
-class AMI_Test_knownDerivedAsKnownDerivedI : public AMI_Test_knownDerivedAsKnownDerived, public CallbackBase
+class AMI_Test_knownDerivedAsKnownDerivedI : public AMI_TestIntf_knownDerivedAsKnownDerived, public CallbackBase
{
virtual void
ice_response()
@@ -165,7 +166,7 @@ class AMI_Test_knownDerivedAsKnownDerivedI : public AMI_Test_knownDerivedAsKnown
{
test(k.b == "KnownDerived.b");
test(k.kd == "KnownDerived.kd");
- test(k.ice_name() == "KnownDerived");
+ test(k.ice_name() =="Test::KnownDerived");
}
catch(...)
{
@@ -177,7 +178,7 @@ class AMI_Test_knownDerivedAsKnownDerivedI : public AMI_Test_knownDerivedAsKnown
typedef IceUtil::Handle<AMI_Test_knownDerivedAsKnownDerivedI> AMI_Test_knownDerivedAsKnownDerivedIPtr;
-class AMI_Test_unknownIntermediateAsBaseI : public AMI_Test_unknownIntermediateAsBase, public CallbackBase
+class AMI_Test_unknownIntermediateAsBaseI : public AMI_TestIntf_unknownIntermediateAsBase, public CallbackBase
{
virtual void
ice_response()
@@ -195,7 +196,7 @@ class AMI_Test_unknownIntermediateAsBaseI : public AMI_Test_unknownIntermediateA
catch(const Base& b)
{
test(b.b == "UnknownIntermediate.b");
- test(b.ice_name() == "Base");
+ test(b.ice_name() =="Test::Base");
}
catch(...)
{
@@ -207,7 +208,7 @@ class AMI_Test_unknownIntermediateAsBaseI : public AMI_Test_unknownIntermediateA
typedef IceUtil::Handle<AMI_Test_unknownIntermediateAsBaseI> AMI_Test_unknownIntermediateAsBaseIPtr;
-class AMI_Test_knownIntermediateAsBaseI : public AMI_Test_knownIntermediateAsBase, public CallbackBase
+class AMI_Test_knownIntermediateAsBaseI : public AMI_TestIntf_knownIntermediateAsBase, public CallbackBase
{
virtual void
ice_response()
@@ -226,7 +227,7 @@ class AMI_Test_knownIntermediateAsBaseI : public AMI_Test_knownIntermediateAsBas
{
test(ki.b == "KnownIntermediate.b");
test(ki.ki == "KnownIntermediate.ki");
- test(ki.ice_name() == "KnownIntermediate");
+ test(ki.ice_name() =="Test::KnownIntermediate");
}
catch(...)
{
@@ -238,7 +239,7 @@ class AMI_Test_knownIntermediateAsBaseI : public AMI_Test_knownIntermediateAsBas
typedef IceUtil::Handle<AMI_Test_knownIntermediateAsBaseI> AMI_Test_knownIntermediateAsBaseIPtr;
-class AMI_Test_knownMostDerivedAsBaseI : public AMI_Test_knownMostDerivedAsBase,
+class AMI_Test_knownMostDerivedAsBaseI : public AMI_TestIntf_knownMostDerivedAsBase,
public CallbackBase
{
virtual void
@@ -259,7 +260,7 @@ class AMI_Test_knownMostDerivedAsBaseI : public AMI_Test_knownMostDerivedAsBase,
test(kmd.b == "KnownMostDerived.b");
test(kmd.ki == "KnownMostDerived.ki");
test(kmd.kmd == "KnownMostDerived.kmd");
- test(kmd.ice_name() == "KnownMostDerived");
+ test(kmd.ice_name() =="Test::KnownMostDerived");
}
catch(...)
{
@@ -271,7 +272,7 @@ class AMI_Test_knownMostDerivedAsBaseI : public AMI_Test_knownMostDerivedAsBase,
typedef IceUtil::Handle<AMI_Test_knownMostDerivedAsBaseI> AMI_Test_knownMostDerivedAsBaseIPtr;
-class AMI_Test_knownIntermediateAsKnownIntermediateI : public AMI_Test_knownIntermediateAsKnownIntermediate,
+class AMI_Test_knownIntermediateAsKnownIntermediateI : public AMI_TestIntf_knownIntermediateAsKnownIntermediate,
public CallbackBase
{
virtual void
@@ -291,7 +292,7 @@ class AMI_Test_knownIntermediateAsKnownIntermediateI : public AMI_Test_knownInte
{
test(ki.b == "KnownIntermediate.b");
test(ki.ki == "KnownIntermediate.ki");
- test(ki.ice_name() == "KnownIntermediate");
+ test(ki.ice_name() =="Test::KnownIntermediate");
}
catch(...)
{
@@ -303,7 +304,7 @@ class AMI_Test_knownIntermediateAsKnownIntermediateI : public AMI_Test_knownInte
typedef IceUtil::Handle<AMI_Test_knownIntermediateAsKnownIntermediateI> AMI_Test_knownIntermediateAsKnownIntermediateIPtr;
-class AMI_Test_knownMostDerivedAsKnownMostDerivedI : public AMI_Test_knownMostDerivedAsKnownMostDerived,
+class AMI_Test_knownMostDerivedAsKnownMostDerivedI : public AMI_TestIntf_knownMostDerivedAsKnownMostDerived,
public CallbackBase
{
virtual void
@@ -324,7 +325,7 @@ class AMI_Test_knownMostDerivedAsKnownMostDerivedI : public AMI_Test_knownMostDe
test(kmd.b == "KnownMostDerived.b");
test(kmd.ki == "KnownMostDerived.ki");
test(kmd.kmd == "KnownMostDerived.kmd");
- test(kmd.ice_name() == "KnownMostDerived");
+ test(kmd.ice_name() =="Test::KnownMostDerived");
}
catch(...)
{
@@ -336,7 +337,7 @@ class AMI_Test_knownMostDerivedAsKnownMostDerivedI : public AMI_Test_knownMostDe
typedef IceUtil::Handle<AMI_Test_knownMostDerivedAsKnownMostDerivedI> AMI_Test_knownMostDerivedAsKnownMostDerivedIPtr;
-class AMI_Test_knownMostDerivedAsKnownIntermediateI : public AMI_Test_knownMostDerivedAsKnownIntermediate,
+class AMI_Test_knownMostDerivedAsKnownIntermediateI : public AMI_TestIntf_knownMostDerivedAsKnownIntermediate,
public CallbackBase
{
virtual void
@@ -357,7 +358,7 @@ class AMI_Test_knownMostDerivedAsKnownIntermediateI : public AMI_Test_knownMostD
test(kmd.b == "KnownMostDerived.b");
test(kmd.ki == "KnownMostDerived.ki");
test(kmd.kmd == "KnownMostDerived.kmd");
- test(kmd.ice_name() == "KnownMostDerived");
+ test(kmd.ice_name() =="Test::KnownMostDerived");
}
catch(...)
{
@@ -369,8 +370,8 @@ class AMI_Test_knownMostDerivedAsKnownIntermediateI : public AMI_Test_knownMostD
typedef IceUtil::Handle<AMI_Test_knownMostDerivedAsKnownIntermediateI> AMI_Test_knownMostDerivedAsKnownIntermediateIPtr;
-class AMI_Test_unknownMostDerived1AsBaseI : public AMI_Test_unknownMostDerived1AsBase,
- public CallbackBase
+class AMI_Test_unknownMostDerived1AsBaseI : public AMI_TestIntf_unknownMostDerived1AsBase,
+ public CallbackBase
{
virtual void
ice_response()
@@ -389,7 +390,7 @@ class AMI_Test_unknownMostDerived1AsBaseI : public AMI_Test_unknownMostDerived1A
{
test(ki.b == "UnknownMostDerived1.b");
test(ki.ki == "UnknownMostDerived1.ki");
- test(ki.ice_name() == "KnownIntermediate");
+ test(ki.ice_name() =="Test::KnownIntermediate");
}
catch(...)
{
@@ -401,7 +402,7 @@ class AMI_Test_unknownMostDerived1AsBaseI : public AMI_Test_unknownMostDerived1A
typedef IceUtil::Handle<AMI_Test_unknownMostDerived1AsBaseI> AMI_Test_unknownMostDerived1AsBaseIPtr;
-class AMI_Test_unknownMostDerived1AsKnownIntermediateI : public AMI_Test_unknownMostDerived1AsKnownIntermediate,
+class AMI_Test_unknownMostDerived1AsKnownIntermediateI : public AMI_TestIntf_unknownMostDerived1AsKnownIntermediate,
public CallbackBase
{
virtual void
@@ -421,7 +422,7 @@ class AMI_Test_unknownMostDerived1AsKnownIntermediateI : public AMI_Test_unknown
{
test(ki.b == "UnknownMostDerived1.b");
test(ki.ki == "UnknownMostDerived1.ki");
- test(ki.ice_name() == "KnownIntermediate");
+ test(ki.ice_name() =="Test::KnownIntermediate");
}
catch(...)
{
@@ -434,7 +435,7 @@ class AMI_Test_unknownMostDerived1AsKnownIntermediateI : public AMI_Test_unknown
typedef IceUtil::Handle<AMI_Test_unknownMostDerived1AsKnownIntermediateI>
AMI_Test_unknownMostDerived1AsKnownIntermediateIPtr;
-class AMI_Test_unknownMostDerived2AsBaseI : public AMI_Test_unknownMostDerived2AsBase,
+class AMI_Test_unknownMostDerived2AsBaseI : public AMI_TestIntf_unknownMostDerived2AsBase,
public CallbackBase
{
virtual void
@@ -453,7 +454,7 @@ class AMI_Test_unknownMostDerived2AsBaseI : public AMI_Test_unknownMostDerived2A
catch(const Base& b)
{
test(b.b == "UnknownMostDerived2.b");
- test(b.ice_name() == "Base");
+ test(b.ice_name() =="Test::Base");
}
catch(...)
{
@@ -465,11 +466,11 @@ class AMI_Test_unknownMostDerived2AsBaseI : public AMI_Test_unknownMostDerived2A
typedef IceUtil::Handle<AMI_Test_unknownMostDerived2AsBaseI> AMI_Test_unknownMostDerived2AsBaseIPtr;
-TestPrx
+TestIntfPrx
allTests(const Ice::CommunicatorPtr& communicator)
{
Ice::ObjectPrx obj = communicator->stringToProxy("Test:default -p 12345");
- TestPrx test = TestPrx::checkedCast(obj);
+ TestIntfPrx test = TestIntfPrx::checkedCast(obj);
cout << "base... " << flush;
{
@@ -481,7 +482,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
catch(const Base& b)
{
test(b.b == "Base.b");
- test(b.ice_name() == "Base");
+ test(b.ice_name() =="Test::Base");
gotException = true;
}
catch(...)
@@ -510,7 +511,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
catch(const Base& b)
{
test(b.b == "UnknownDerived.b");
- test(b.ice_name() == "Base");
+ test(b.ice_name() =="Test::Base");
gotException = true;
}
catch(...)
@@ -540,7 +541,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(k.b == "KnownDerived.b");
test(k.kd == "KnownDerived.kd");
- test(k.ice_name() == "KnownDerived");
+ test(k.ice_name() =="Test::KnownDerived");
gotException = true;
}
catch(...)
@@ -570,7 +571,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(k.b == "KnownDerived.b");
test(k.kd == "KnownDerived.kd");
- test(k.ice_name() == "KnownDerived");
+ test(k.ice_name() =="Test::KnownDerived");
gotException = true;
}
catch(...)
@@ -599,7 +600,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
catch(const Base& b)
{
test(b.b == "UnknownIntermediate.b");
- test(b.ice_name() == "Base");
+ test(b.ice_name() =="Test::Base");
gotException = true;
}
catch(...)
@@ -629,7 +630,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(ki.b == "KnownIntermediate.b");
test(ki.ki == "KnownIntermediate.ki");
- test(ki.ice_name() == "KnownIntermediate");
+ test(ki.ice_name() =="Test::KnownIntermediate");
gotException = true;
}
catch(...)
@@ -660,7 +661,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(kmd.b == "KnownMostDerived.b");
test(kmd.ki == "KnownMostDerived.ki");
test(kmd.kmd == "KnownMostDerived.kmd");
- test(kmd.ice_name() == "KnownMostDerived");
+ test(kmd.ice_name() =="Test::KnownMostDerived");
gotException = true;
}
catch(...)
@@ -690,7 +691,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(ki.b == "KnownIntermediate.b");
test(ki.ki == "KnownIntermediate.ki");
- test(ki.ice_name() == "KnownIntermediate");
+ test(ki.ice_name() =="Test::KnownIntermediate");
gotException = true;
}
catch(...)
@@ -721,7 +722,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(kmd.b == "KnownMostDerived.b");
test(kmd.ki == "KnownMostDerived.ki");
test(kmd.kmd == "KnownMostDerived.kmd");
- test(kmd.ice_name() == "KnownMostDerived");
+ test(kmd.ice_name() =="Test::KnownMostDerived");
gotException = true;
}
catch(...)
@@ -752,7 +753,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(kmd.b == "KnownMostDerived.b");
test(kmd.ki == "KnownMostDerived.ki");
test(kmd.kmd == "KnownMostDerived.kmd");
- test(kmd.ice_name() == "KnownMostDerived");
+ test(kmd.ice_name() =="Test::KnownMostDerived");
gotException = true;
}
catch(...)
@@ -782,7 +783,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(ki.b == "UnknownMostDerived1.b");
test(ki.ki == "UnknownMostDerived1.ki");
- test(ki.ice_name() == "KnownIntermediate");
+ test(ki.ice_name() =="Test::KnownIntermediate");
gotException = true;
}
catch(...)
@@ -812,7 +813,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(ki.b == "UnknownMostDerived1.b");
test(ki.ki == "UnknownMostDerived1.ki");
- test(ki.ice_name() == "KnownIntermediate");
+ test(ki.ice_name() =="Test::KnownIntermediate");
gotException = true;
}
catch(...)
@@ -841,7 +842,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
catch(const Base& b)
{
test(b.b == "UnknownMostDerived2.b");
- test(b.ice_name() == "Base");
+ test(b.ice_name() =="Test::Base");
gotException = true;
}
catch(...)
diff --git a/cpp/test/Ice/slicing/exceptions/Client.cpp b/cpp/test/Ice/slicing/exceptions/Client.cpp
index afd4f697e01..1eccc9709a7 100644
--- a/cpp/test/Ice/slicing/exceptions/Client.cpp
+++ b/cpp/test/Ice/slicing/exceptions/Client.cpp
@@ -12,12 +12,13 @@
#include <Test.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
- TestPrx allTests(const Ice::CommunicatorPtr&);
- TestPrx Test = allTests(communicator);
+ TestIntfPrx allTests(const Ice::CommunicatorPtr&);
+ TestIntfPrx Test = allTests(communicator);
Test->shutdown();
return EXIT_SUCCESS;
}
diff --git a/cpp/test/Ice/slicing/exceptions/ServerPrivate.ice b/cpp/test/Ice/slicing/exceptions/ServerPrivate.ice
index 7fb5f592869..49c3f3a81d0 100644
--- a/cpp/test/Ice/slicing/exceptions/ServerPrivate.ice
+++ b/cpp/test/Ice/slicing/exceptions/ServerPrivate.ice
@@ -12,6 +12,9 @@
#include <Test.ice>
+module Test
+{
+
exception UnknownDerived extends Base
{
string ud;
@@ -32,4 +35,6 @@ exception UnknownMostDerived2 extends UnknownIntermediate
string umd2;
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/exceptions/ServerPrivateAMD.ice b/cpp/test/Ice/slicing/exceptions/ServerPrivateAMD.ice
index 9426a0c9273..08e0df79485 100644
--- a/cpp/test/Ice/slicing/exceptions/ServerPrivateAMD.ice
+++ b/cpp/test/Ice/slicing/exceptions/ServerPrivateAMD.ice
@@ -12,6 +12,9 @@
#include <TestAMD.ice>
+module Test
+{
+
exception UnknownDerived extends Base
{
string ud;
@@ -32,4 +35,6 @@ exception UnknownMostDerived2 extends UnknownIntermediate
string umd2;
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/exceptions/Test.ice b/cpp/test/Ice/slicing/exceptions/Test.ice
index cc3e8b3f85f..1bf3f61f5b5 100644
--- a/cpp/test/Ice/slicing/exceptions/Test.ice
+++ b/cpp/test/Ice/slicing/exceptions/Test.ice
@@ -10,6 +10,9 @@
#ifndef TEST_ICE
#define TEST_ICE
+module Test
+{
+
exception Base
{
string b;
@@ -30,7 +33,7 @@ exception KnownMostDerived extends KnownIntermediate
string kmd;
};
-["ami"] interface Test
+["ami"] interface TestIntf
{
void baseAsBase() throws Base;
void unknownDerivedAsBase() throws Base;
@@ -51,4 +54,6 @@ exception KnownMostDerived extends KnownIntermediate
void shutdown();
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/exceptions/TestAMD.ice b/cpp/test/Ice/slicing/exceptions/TestAMD.ice
index 54f3dca65ec..989f71eb4b0 100644
--- a/cpp/test/Ice/slicing/exceptions/TestAMD.ice
+++ b/cpp/test/Ice/slicing/exceptions/TestAMD.ice
@@ -10,6 +10,9 @@
#ifndef TEST_AMD_ICE
#define TEST_AMD_ICE
+module Test
+{
+
exception Base
{
string b;
@@ -30,7 +33,7 @@ exception KnownMostDerived extends KnownIntermediate
string kmd;
};
-["ami", "amd"] interface Test
+["ami", "amd"] interface TestIntf
{
void baseAsBase() throws Base;
void unknownDerivedAsBase() throws Base;
@@ -51,4 +54,6 @@ exception KnownMostDerived extends KnownIntermediate
void shutdown();
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/exceptions/TestAMDI.cpp b/cpp/test/Ice/slicing/exceptions/TestAMDI.cpp
index 9a54e0dc347..2f342005577 100644
--- a/cpp/test/Ice/slicing/exceptions/TestAMDI.cpp
+++ b/cpp/test/Ice/slicing/exceptions/TestAMDI.cpp
@@ -10,13 +10,15 @@
#include <TestAMDI.h>
#include <Ice/Ice.h>
+using namespace Test;
+
TestI::TestI(const Ice::ObjectAdapterPtr& adapter) :
_adapter(adapter)
{
}
void
-TestI::baseAsBase_async(const ::AMD_Test_baseAsBasePtr& cb, const ::Ice::Current&)
+TestI::baseAsBase_async(const ::AMD_TestIntf_baseAsBasePtr& cb, const ::Ice::Current&)
{
Base b;
b.b = "Base.b";
@@ -24,7 +26,7 @@ TestI::baseAsBase_async(const ::AMD_Test_baseAsBasePtr& cb, const ::Ice::Current
}
void
-TestI::unknownDerivedAsBase_async(const ::AMD_Test_unknownDerivedAsBasePtr& cb, const ::Ice::Current&)
+TestI::unknownDerivedAsBase_async(const ::AMD_TestIntf_unknownDerivedAsBasePtr& cb, const ::Ice::Current&)
{
UnknownDerived d;
d.b = "UnknownDerived.b";
@@ -33,7 +35,7 @@ TestI::unknownDerivedAsBase_async(const ::AMD_Test_unknownDerivedAsBasePtr& cb,
}
void
-TestI::knownDerivedAsBase_async(const ::AMD_Test_knownDerivedAsBasePtr& cb, const ::Ice::Current&)
+TestI::knownDerivedAsBase_async(const ::AMD_TestIntf_knownDerivedAsBasePtr& cb, const ::Ice::Current&)
{
KnownDerived d;
d.b = "KnownDerived.b";
@@ -42,7 +44,7 @@ TestI::knownDerivedAsBase_async(const ::AMD_Test_knownDerivedAsBasePtr& cb, cons
}
void
-TestI::knownDerivedAsKnownDerived_async(const ::AMD_Test_knownDerivedAsKnownDerivedPtr& cb, const ::Ice::Current&)
+TestI::knownDerivedAsKnownDerived_async(const ::AMD_TestIntf_knownDerivedAsKnownDerivedPtr& cb, const ::Ice::Current&)
{
KnownDerived d;
d.b = "KnownDerived.b";
@@ -51,7 +53,7 @@ TestI::knownDerivedAsKnownDerived_async(const ::AMD_Test_knownDerivedAsKnownDeri
}
void
-TestI::unknownIntermediateAsBase_async(const ::AMD_Test_unknownIntermediateAsBasePtr& cb, const ::Ice::Current&)
+TestI::unknownIntermediateAsBase_async(const ::AMD_TestIntf_unknownIntermediateAsBasePtr& cb, const ::Ice::Current&)
{
UnknownIntermediate ui;
ui.b = "UnknownIntermediate.b";
@@ -60,7 +62,7 @@ TestI::unknownIntermediateAsBase_async(const ::AMD_Test_unknownIntermediateAsBas
}
void
-TestI::knownIntermediateAsBase_async(const ::AMD_Test_knownIntermediateAsBasePtr& cb, const ::Ice::Current&)
+TestI::knownIntermediateAsBase_async(const ::AMD_TestIntf_knownIntermediateAsBasePtr& cb, const ::Ice::Current&)
{
KnownIntermediate ki;
ki.b = "KnownIntermediate.b";
@@ -69,7 +71,7 @@ TestI::knownIntermediateAsBase_async(const ::AMD_Test_knownIntermediateAsBasePtr
}
void
-TestI::knownMostDerivedAsBase_async(const ::AMD_Test_knownMostDerivedAsBasePtr& cb, const ::Ice::Current&)
+TestI::knownMostDerivedAsBase_async(const ::AMD_TestIntf_knownMostDerivedAsBasePtr& cb, const ::Ice::Current&)
{
KnownMostDerived kmd;
kmd.b = "KnownMostDerived.b";
@@ -79,7 +81,7 @@ TestI::knownMostDerivedAsBase_async(const ::AMD_Test_knownMostDerivedAsBasePtr&
}
void
-TestI::knownIntermediateAsKnownIntermediate_async(const ::AMD_Test_knownIntermediateAsKnownIntermediatePtr& cb,
+TestI::knownIntermediateAsKnownIntermediate_async(const ::AMD_TestIntf_knownIntermediateAsKnownIntermediatePtr& cb,
const ::Ice::Current&)
{
KnownIntermediate ki;
@@ -89,7 +91,7 @@ TestI::knownIntermediateAsKnownIntermediate_async(const ::AMD_Test_knownIntermed
}
void
-TestI::knownMostDerivedAsKnownIntermediate_async(const ::AMD_Test_knownMostDerivedAsKnownIntermediatePtr& cb,
+TestI::knownMostDerivedAsKnownIntermediate_async(const ::AMD_TestIntf_knownMostDerivedAsKnownIntermediatePtr& cb,
const ::Ice::Current&)
{
KnownMostDerived kmd;
@@ -101,7 +103,7 @@ TestI::knownMostDerivedAsKnownIntermediate_async(const ::AMD_Test_knownMostDeriv
void
TestI::
-knownMostDerivedAsKnownMostDerived_async(const ::AMD_Test_knownMostDerivedAsKnownMostDerivedPtr& cb,
+knownMostDerivedAsKnownMostDerived_async(const ::AMD_TestIntf_knownMostDerivedAsKnownMostDerivedPtr& cb,
const ::Ice::Current&)
{
KnownMostDerived kmd;
@@ -112,7 +114,7 @@ knownMostDerivedAsKnownMostDerived_async(const ::AMD_Test_knownMostDerivedAsKnow
}
void
-TestI::unknownMostDerived1AsBase_async(const ::AMD_Test_unknownMostDerived1AsBasePtr& cb, const ::Ice::Current&)
+TestI::unknownMostDerived1AsBase_async(const ::AMD_TestIntf_unknownMostDerived1AsBasePtr& cb, const ::Ice::Current&)
{
UnknownMostDerived1 umd1;
umd1.b = "UnknownMostDerived1.b";
@@ -122,7 +124,7 @@ TestI::unknownMostDerived1AsBase_async(const ::AMD_Test_unknownMostDerived1AsBas
}
void
-TestI::unknownMostDerived1AsKnownIntermediate_async(const ::AMD_Test_unknownMostDerived1AsKnownIntermediatePtr& cb,
+TestI::unknownMostDerived1AsKnownIntermediate_async(const ::AMD_TestIntf_unknownMostDerived1AsKnownIntermediatePtr& cb,
const ::Ice::Current&)
{
UnknownMostDerived1 umd1;
@@ -133,7 +135,7 @@ TestI::unknownMostDerived1AsKnownIntermediate_async(const ::AMD_Test_unknownMost
}
void
-TestI::unknownMostDerived2AsBase_async(const ::AMD_Test_unknownMostDerived2AsBasePtr& cb, const ::Ice::Current&)
+TestI::unknownMostDerived2AsBase_async(const ::AMD_TestIntf_unknownMostDerived2AsBasePtr& cb, const ::Ice::Current&)
{
UnknownMostDerived2 umd2;
umd2.b = "UnknownMostDerived2.b";
@@ -143,7 +145,7 @@ TestI::unknownMostDerived2AsBase_async(const ::AMD_Test_unknownMostDerived2AsBas
}
void
-TestI::shutdown_async(const ::AMD_Test_shutdownPtr& cb, const ::Ice::Current&)
+TestI::shutdown_async(const ::AMD_TestIntf_shutdownPtr& cb, const ::Ice::Current&)
{
_adapter->getCommunicator()->shutdown();
cb->ice_response();
diff --git a/cpp/test/Ice/slicing/exceptions/TestAMDI.h b/cpp/test/Ice/slicing/exceptions/TestAMDI.h
index 1eb34729a1b..810e0a9a14f 100644
--- a/cpp/test/Ice/slicing/exceptions/TestAMDI.h
+++ b/cpp/test/Ice/slicing/exceptions/TestAMDI.h
@@ -12,35 +12,45 @@
#include <ServerPrivateAMD.h>
-class TestI : virtual public Test
+class TestI : virtual public Test::TestIntf
{
public:
TestI(const ::Ice::ObjectAdapterPtr&);
- virtual void baseAsBase_async(const ::AMD_Test_baseAsBasePtr&, const ::Ice::Current&);
+ virtual void baseAsBase_async(const ::Test::AMD_TestIntf_baseAsBasePtr&, const ::Ice::Current&);
- virtual void unknownDerivedAsBase_async(const ::AMD_Test_unknownDerivedAsBasePtr&, const ::Ice::Current&);
- virtual void knownDerivedAsBase_async(const ::AMD_Test_knownDerivedAsBasePtr&, const ::Ice::Current&);
- virtual void knownDerivedAsKnownDerived_async(const ::AMD_Test_knownDerivedAsKnownDerivedPtr&,
+ virtual void unknownDerivedAsBase_async(const ::Test::AMD_TestIntf_unknownDerivedAsBasePtr&, const ::Ice::Current&);
+ virtual void knownDerivedAsBase_async(const ::Test::AMD_TestIntf_knownDerivedAsBasePtr&, const ::Ice::Current&);
+ virtual void knownDerivedAsKnownDerived_async(const ::Test::AMD_TestIntf_knownDerivedAsKnownDerivedPtr&,
const ::Ice::Current&);
- virtual void unknownIntermediateAsBase_async(const ::AMD_Test_unknownIntermediateAsBasePtr&, const ::Ice::Current&);
- virtual void knownIntermediateAsBase_async(const ::AMD_Test_knownIntermediateAsBasePtr&, const ::Ice::Current&);
- virtual void knownMostDerivedAsBase_async(const ::AMD_Test_knownMostDerivedAsBasePtr&, const ::Ice::Current&);
- virtual void knownIntermediateAsKnownIntermediate_async(const ::AMD_Test_knownIntermediateAsKnownIntermediatePtr&,
- const ::Ice::Current&);
- virtual void knownMostDerivedAsKnownIntermediate_async(const ::AMD_Test_knownMostDerivedAsKnownIntermediatePtr&,
- const ::Ice::Current&);
- virtual void knownMostDerivedAsKnownMostDerived_async(const ::AMD_Test_knownMostDerivedAsKnownMostDerivedPtr&,
- const ::Ice::Current&);
-
- virtual void unknownMostDerived1AsBase_async(const ::AMD_Test_unknownMostDerived1AsBasePtr&, const ::Ice::Current&);
+ virtual void unknownIntermediateAsBase_async(const ::Test::AMD_TestIntf_unknownIntermediateAsBasePtr&,
+ const ::Ice::Current&);
+ virtual void knownIntermediateAsBase_async(const ::Test::AMD_TestIntf_knownIntermediateAsBasePtr&,
+ const ::Ice::Current&);
+ virtual void knownMostDerivedAsBase_async(const ::Test::AMD_TestIntf_knownMostDerivedAsBasePtr&,
+ const ::Ice::Current&);
+ virtual void knownIntermediateAsKnownIntermediate_async(
+ const ::Test::AMD_TestIntf_knownIntermediateAsKnownIntermediatePtr&,
+ const ::Ice::Current&);
+ virtual void knownMostDerivedAsKnownIntermediate_async(
+ const ::Test::AMD_TestIntf_knownMostDerivedAsKnownIntermediatePtr&,
+ const ::Ice::Current&);
+ virtual void knownMostDerivedAsKnownMostDerived_async(
+ const ::Test::AMD_TestIntf_knownMostDerivedAsKnownMostDerivedPtr&,
+ const ::Ice::Current&);
+
+ virtual void unknownMostDerived1AsBase_async(
+ const ::Test::AMD_TestIntf_unknownMostDerived1AsBasePtr&,
+ const ::Ice::Current&);
virtual void unknownMostDerived1AsKnownIntermediate_async(
- const ::AMD_Test_unknownMostDerived1AsKnownIntermediatePtr&,
+ const ::Test::AMD_TestIntf_unknownMostDerived1AsKnownIntermediatePtr&,
const ::Ice::Current&);
- virtual void unknownMostDerived2AsBase_async(const ::AMD_Test_unknownMostDerived2AsBasePtr&, const ::Ice::Current&);
+ virtual void unknownMostDerived2AsBase_async(
+ const ::Test::AMD_TestIntf_unknownMostDerived2AsBasePtr&,
+ const ::Ice::Current&);
- virtual void shutdown_async(const ::AMD_Test_shutdownPtr&, const ::Ice::Current&);
+ virtual void shutdown_async(const ::Test::AMD_TestIntf_shutdownPtr&, const ::Ice::Current&);
private:
diff --git a/cpp/test/Ice/slicing/exceptions/TestI.cpp b/cpp/test/Ice/slicing/exceptions/TestI.cpp
index 4f04f203eb7..6e4a794ff52 100644
--- a/cpp/test/Ice/slicing/exceptions/TestI.cpp
+++ b/cpp/test/Ice/slicing/exceptions/TestI.cpp
@@ -10,6 +10,8 @@
#include <TestI.h>
#include <Ice/Ice.h>
+using namespace Test;
+
TestI::TestI(const Ice::ObjectAdapterPtr& adapter) :
_adapter(adapter)
{
diff --git a/cpp/test/Ice/slicing/exceptions/TestI.h b/cpp/test/Ice/slicing/exceptions/TestI.h
index f7de3b0da5d..f5282a5c812 100644
--- a/cpp/test/Ice/slicing/exceptions/TestI.h
+++ b/cpp/test/Ice/slicing/exceptions/TestI.h
@@ -12,7 +12,7 @@
#include <ServerPrivate.h>
-class TestI : virtual public Test
+class TestI : virtual public Test::TestIntf
{
public:
diff --git a/cpp/test/Ice/slicing/objects/AllTests.cpp b/cpp/test/Ice/slicing/objects/AllTests.cpp
index 53bf7758a01..8dfe865e8f1 100644
--- a/cpp/test/Ice/slicing/objects/AllTests.cpp
+++ b/cpp/test/Ice/slicing/objects/AllTests.cpp
@@ -13,6 +13,7 @@
#include <sstream>
using namespace std;
+using namespace Test;
class CallbackBase : public IceUtil::Monitor<IceUtil::Mutex>
{
@@ -56,13 +57,13 @@ private:
bool _called;
};
-class AMI_Test_SBaseAsObjectI : public AMI_Test_SBaseAsObject, public CallbackBase
+class AMI_Test_SBaseAsObjectI : public AMI_TestIntf_SBaseAsObject, public CallbackBase
{
virtual void
ice_response(const ::Ice::ObjectPtr& o)
{
test(o);
- test(o->ice_id() == "::SBase");
+ test(o->ice_id() == "::Test::SBase");
SBasePtr sb = SBasePtr::dynamicCast(o);
test(sb);
test(sb->sb == "SBase.sb");
@@ -78,7 +79,7 @@ class AMI_Test_SBaseAsObjectI : public AMI_Test_SBaseAsObject, public CallbackBa
typedef IceUtil::Handle<AMI_Test_SBaseAsObjectI> AMI_Test_SBaseAsObjectIPtr;
-class AMI_Test_SBaseAsSBaseI : public AMI_Test_SBaseAsSBase, public CallbackBase
+class AMI_Test_SBaseAsSBaseI : public AMI_TestIntf_SBaseAsSBase, public CallbackBase
{
virtual void
ice_response(const SBasePtr& sb)
@@ -96,7 +97,7 @@ class AMI_Test_SBaseAsSBaseI : public AMI_Test_SBaseAsSBase, public CallbackBase
typedef IceUtil::Handle<AMI_Test_SBaseAsSBaseI> AMI_Test_SBaseAsSBaseIPtr;
-class AMI_Test_SBSKnownDerivedAsSBaseI : public AMI_Test_SBSKnownDerivedAsSBase, public CallbackBase
+class AMI_Test_SBSKnownDerivedAsSBaseI : public AMI_TestIntf_SBSKnownDerivedAsSBase, public CallbackBase
{
virtual void
ice_response(const SBasePtr& sb)
@@ -116,7 +117,8 @@ class AMI_Test_SBSKnownDerivedAsSBaseI : public AMI_Test_SBSKnownDerivedAsSBase,
typedef IceUtil::Handle<AMI_Test_SBSKnownDerivedAsSBaseI> AMI_Test_SBSKnownDerivedAsSBaseIPtr;
-class AMI_Test_SBSKnownDerivedAsSBSKnownDerivedI : public AMI_Test_SBSKnownDerivedAsSBSKnownDerived, public CallbackBase
+class AMI_Test_SBSKnownDerivedAsSBSKnownDerivedI
+ : public AMI_TestIntf_SBSKnownDerivedAsSBSKnownDerived, public CallbackBase
{
virtual void
ice_response(const SBSKnownDerivedPtr& sbskd)
@@ -134,7 +136,7 @@ class AMI_Test_SBSKnownDerivedAsSBSKnownDerivedI : public AMI_Test_SBSKnownDeriv
typedef IceUtil::Handle<AMI_Test_SBSKnownDerivedAsSBSKnownDerivedI> AMI_Test_SBSKnownDerivedAsSBSKnownDerivedIPtr;
-class AMI_Test_SBSUnknownDerivedAsSBaseI : public AMI_Test_SBSUnknownDerivedAsSBase, public CallbackBase
+class AMI_Test_SBSUnknownDerivedAsSBaseI : public AMI_TestIntf_SBSUnknownDerivedAsSBase, public CallbackBase
{
virtual void
ice_response(const SBasePtr& sb)
@@ -152,7 +154,7 @@ class AMI_Test_SBSUnknownDerivedAsSBaseI : public AMI_Test_SBSUnknownDerivedAsSB
typedef IceUtil::Handle<AMI_Test_SBSUnknownDerivedAsSBaseI> AMI_Test_SBSUnknownDerivedAsSBaseIPtr;
-class AMI_Test_SUnknownAsObjectI : public AMI_Test_SUnknownAsObject, public CallbackBase
+class AMI_Test_SUnknownAsObjectI : public AMI_TestIntf_SUnknownAsObject, public CallbackBase
{
virtual void
ice_response(const Ice::ObjectPtr& o)
@@ -170,13 +172,13 @@ class AMI_Test_SUnknownAsObjectI : public AMI_Test_SUnknownAsObject, public Call
typedef IceUtil::Handle<AMI_Test_SUnknownAsObjectI> AMI_Test_SUnknownAsObjectIPtr;
-class AMI_Test_oneElementCycleI : public AMI_Test_oneElementCycle, public CallbackBase
+class AMI_Test_oneElementCycleI : public AMI_TestIntf_oneElementCycle, public CallbackBase
{
virtual void
ice_response(const BPtr& b)
{
test(b);
- test(b->ice_id() == "::B");
+ test(b->ice_id() == "::Test::B");
test(b->sb == "B1.sb");
test(b->pb == b);
called();
@@ -191,18 +193,18 @@ class AMI_Test_oneElementCycleI : public AMI_Test_oneElementCycle, public Callba
typedef IceUtil::Handle<AMI_Test_oneElementCycleI> AMI_Test_oneElementCycleIPtr;
-class AMI_Test_twoElementCycleI : public AMI_Test_twoElementCycle, public CallbackBase
+class AMI_Test_twoElementCycleI : public AMI_TestIntf_twoElementCycle, public CallbackBase
{
virtual void
ice_response(const BPtr& b1)
{
test(b1);
- test(b1->ice_id() == "::B");
+ test(b1->ice_id() == "::Test::B");
test(b1->sb == "B1.sb");
BPtr b2 = b1->pb;
test(b2);
- test(b2->ice_id() == "::B");
+ test(b2->ice_id() == "::Test::B");
test(b2->sb == "B2.sb");
test(b2->pb == b1);
called();
@@ -217,13 +219,13 @@ class AMI_Test_twoElementCycleI : public AMI_Test_twoElementCycle, public Callba
typedef IceUtil::Handle<AMI_Test_twoElementCycleI> AMI_Test_twoElementCycleIPtr;
-class AMI_Test_D1AsBI : public AMI_Test_D1AsB, public CallbackBase
+class AMI_Test_D1AsBI : public AMI_TestIntf_D1AsB, public CallbackBase
{
virtual void
ice_response(const BPtr& b1)
{
test(b1);
- test(b1->ice_id() == "::D1");
+ test(b1->ice_id() == "::Test::D1");
test(b1->sb == "D1.sb");
test(b1->pb);
test(b1->pb != b1);
@@ -238,7 +240,7 @@ class AMI_Test_D1AsBI : public AMI_Test_D1AsB, public CallbackBase
test(b2);
test(b2->pb == b1);
test(b2->sb == "D2.sb");
- test(b2->ice_id() == "::B");
+ test(b2->ice_id() == "::Test::B");
called();
}
@@ -251,20 +253,20 @@ class AMI_Test_D1AsBI : public AMI_Test_D1AsB, public CallbackBase
typedef IceUtil::Handle<AMI_Test_D1AsBI> AMI_Test_D1AsBIPtr;
-class AMI_Test_D1AsD1I : public AMI_Test_D1AsD1, public CallbackBase
+class AMI_Test_D1AsD1I : public AMI_TestIntf_D1AsD1, public CallbackBase
{
virtual void
ice_response(const D1Ptr& d1)
{
test(d1);
- test(d1->ice_id() == "::D1");
+ test(d1->ice_id() == "::Test::D1");
test(d1->sb == "D1.sb");
test(d1->pb);
test(d1->pb != d1);
BPtr b2 = d1->pb;
test(b2);
- test(b2->ice_id() == "::B");
+ test(b2->ice_id() == "::Test::B");
test(b2->sb == "D2.sb");
test(b2->pb == d1);
called();
@@ -279,20 +281,20 @@ class AMI_Test_D1AsD1I : public AMI_Test_D1AsD1, public CallbackBase
typedef IceUtil::Handle<AMI_Test_D1AsD1I> AMI_Test_D1AsD1IPtr;
-class AMI_Test_D2AsBI : public AMI_Test_D2AsB, public CallbackBase
+class AMI_Test_D2AsBI : public AMI_TestIntf_D2AsB, public CallbackBase
{
virtual void
ice_response(const BPtr& b2)
{
test(b2);
- test(b2->ice_id() == "::B");
+ test(b2->ice_id() == "::Test::B");
test(b2->sb == "D2.sb");
test(b2->pb);
test(b2->pb != b2);
BPtr b1 = b2->pb;
test(b1);
- test(b1->ice_id() == "::D1");
+ test(b1->ice_id() == "::Test::D1");
test(b1->sb == "D1.sb");
test(b1->pb == b2);
D1Ptr d1 = D1Ptr::dynamicCast(b1);
@@ -311,13 +313,13 @@ class AMI_Test_D2AsBI : public AMI_Test_D2AsB, public CallbackBase
typedef IceUtil::Handle<AMI_Test_D2AsBI> AMI_Test_D2AsBIPtr;
-class AMI_Test_paramTest1I : public AMI_Test_paramTest1, public CallbackBase
+class AMI_Test_paramTest1I : public AMI_TestIntf_paramTest1, public CallbackBase
{
virtual void
ice_response(const BPtr& b1, const BPtr& b2)
{
test(b1);
- test(b1->ice_id() == "::D1");
+ test(b1->ice_id() == "::Test::D1");
test(b1->sb == "D1.sb");
test(b1->pb == b2);
D1Ptr d1 = D1Ptr::dynamicCast(b1);
@@ -326,7 +328,7 @@ class AMI_Test_paramTest1I : public AMI_Test_paramTest1, public CallbackBase
test(d1->pd1 == b2);
test(b2);
- test(b2->ice_id() == "::B"); // No factory, must be sliced
+ test(b2->ice_id() == "::Test::B"); // No factory, must be sliced
test(b2->sb == "D2.sb");
test(b2->pb == b1);
called();
@@ -341,7 +343,7 @@ class AMI_Test_paramTest1I : public AMI_Test_paramTest1, public CallbackBase
typedef IceUtil::Handle<AMI_Test_paramTest1I> AMI_Test_paramTest1IPtr;
-class AMI_Test_returnTest1I : public AMI_Test_returnTest1, public CallbackBase
+class AMI_Test_returnTest1I : public AMI_TestIntf_returnTest1, public CallbackBase
{
virtual void
ice_response(const BPtr& r, const BPtr& p1, const BPtr& p2)
@@ -359,7 +361,7 @@ class AMI_Test_returnTest1I : public AMI_Test_returnTest1, public CallbackBase
typedef IceUtil::Handle<AMI_Test_returnTest1I> AMI_Test_returnTest1IPtr;
-class AMI_Test_returnTest2I : public AMI_Test_returnTest2, public CallbackBase
+class AMI_Test_returnTest2I : public AMI_TestIntf_returnTest2, public CallbackBase
{
virtual void
ice_response(const BPtr& r, const BPtr& p1, const BPtr& p2)
@@ -377,7 +379,7 @@ class AMI_Test_returnTest2I : public AMI_Test_returnTest2, public CallbackBase
typedef IceUtil::Handle<AMI_Test_returnTest2I> AMI_Test_returnTest2IPtr;
-class AMI_Test_returnTest3I : public AMI_Test_returnTest3, public CallbackBase
+class AMI_Test_returnTest3I : public AMI_TestIntf_returnTest3, public CallbackBase
{
public:
virtual void
@@ -398,7 +400,7 @@ public:
typedef IceUtil::Handle<AMI_Test_returnTest3I> AMI_Test_returnTest3IPtr;
-class AMI_Test_paramTest3I : public AMI_Test_paramTest3, public CallbackBase
+class AMI_Test_paramTest3I : public AMI_TestIntf_paramTest3, public CallbackBase
{
virtual void
ice_response(const BPtr& ret, const BPtr& p1, const BPtr& p2)
@@ -406,17 +408,17 @@ class AMI_Test_paramTest3I : public AMI_Test_paramTest3, public CallbackBase
test(p1);
test(p1->sb == "D2.sb (p1 1)");
test(p1->pb == 0);
- test(p1->ice_id() == "::B");
+ test(p1->ice_id() == "::Test::B");
test(p2);
test(p2->sb == "D2.sb (p2 1)");
test(p2->pb == 0);
- test(p2->ice_id() == "::B");
+ test(p2->ice_id() == "::Test::B");
test(ret);
test(ret->sb == "D1.sb (p2 2)");
test(ret->pb == 0);
- test(ret->ice_id() == "::D1");
+ test(ret->ice_id() == "::Test::D1");
called();
}
@@ -429,7 +431,7 @@ class AMI_Test_paramTest3I : public AMI_Test_paramTest3, public CallbackBase
typedef IceUtil::Handle<AMI_Test_paramTest3I> AMI_Test_paramTest3IPtr;
-class AMI_Test_paramTest4I : public AMI_Test_paramTest4, public CallbackBase
+class AMI_Test_paramTest4I : public AMI_TestIntf_paramTest4, public CallbackBase
{
virtual void
ice_response(const BPtr& ret, const BPtr& b)
@@ -437,12 +439,12 @@ class AMI_Test_paramTest4I : public AMI_Test_paramTest4, public CallbackBase
test(b);
test(b->sb == "D4.sb (1)");
test(b->pb == 0);
- test(b->ice_id() == "::B");
+ test(b->ice_id() == "::Test::B");
test(ret);
test(ret->sb == "B.sb (2)");
test(ret->pb == 0);
- test(ret->ice_id() == "::B");
+ test(ret->ice_id() == "::Test::B");
called();
}
@@ -455,7 +457,7 @@ class AMI_Test_paramTest4I : public AMI_Test_paramTest4, public CallbackBase
typedef IceUtil::Handle<AMI_Test_paramTest4I> AMI_Test_paramTest4IPtr;
-class AMI_Test_sequenceTestI : public AMI_Test_sequenceTest, public CallbackBase
+class AMI_Test_sequenceTestI : public AMI_TestIntf_sequenceTest, public CallbackBase
{
virtual void
ice_response(const SS& ss)
@@ -477,7 +479,7 @@ public:
typedef IceUtil::Handle<AMI_Test_sequenceTestI> AMI_Test_sequenceTestIPtr;
-class AMI_Test_dictionaryTestI : public AMI_Test_dictionaryTest, public CallbackBase
+class AMI_Test_dictionaryTestI : public AMI_TestIntf_dictionaryTest, public CallbackBase
{
virtual void
ice_response(const BDict& r, const BDict& bout)
@@ -501,7 +503,7 @@ public:
typedef IceUtil::Handle<AMI_Test_dictionaryTestI> AMI_Test_dictionaryTestIPtr;
-class AMI_Test_throwBaseAsBaseI : public AMI_Test_throwBaseAsBase, public CallbackBase
+class AMI_Test_throwBaseAsBaseI : public AMI_TestIntf_throwBaseAsBase, public CallbackBase
{
virtual void
ice_response()
@@ -512,7 +514,7 @@ class AMI_Test_throwBaseAsBaseI : public AMI_Test_throwBaseAsBase, public Callba
virtual void
ice_exception(const ::Ice::Exception& ex)
{
- test(ex.ice_name() == "BaseException");
+ test(ex.ice_name() == "Test::BaseException");
const BaseException& e = dynamic_cast<const BaseException&>(ex);
test(e.sbe == "sbe");
test(e.pb);
@@ -524,7 +526,7 @@ class AMI_Test_throwBaseAsBaseI : public AMI_Test_throwBaseAsBase, public Callba
typedef IceUtil::Handle<AMI_Test_throwBaseAsBaseI> AMI_Test_throwBaseAsBaseIPtr;
-class AMI_Test_throwDerivedAsBaseI : public AMI_Test_throwDerivedAsBase, public CallbackBase
+class AMI_Test_throwDerivedAsBaseI : public AMI_TestIntf_throwDerivedAsBase, public CallbackBase
{
virtual void
ice_response()
@@ -535,7 +537,7 @@ class AMI_Test_throwDerivedAsBaseI : public AMI_Test_throwDerivedAsBase, public
virtual void
ice_exception(const ::Ice::Exception& ex)
{
- test(ex.ice_name() == "DerivedException");
+ test(ex.ice_name() == "Test::DerivedException");
const DerivedException& e = dynamic_cast<const DerivedException&>(ex);
test(e.sbe == "sbe");
test(e.pb);
@@ -553,7 +555,7 @@ class AMI_Test_throwDerivedAsBaseI : public AMI_Test_throwDerivedAsBase, public
typedef IceUtil::Handle<AMI_Test_throwDerivedAsBaseI> AMI_Test_throwDerivedAsBaseIPtr;
-class AMI_Test_throwDerivedAsDerivedI : public AMI_Test_throwDerivedAsDerived, public CallbackBase
+class AMI_Test_throwDerivedAsDerivedI : public AMI_TestIntf_throwDerivedAsDerived, public CallbackBase
{
virtual void
ice_response()
@@ -564,7 +566,7 @@ class AMI_Test_throwDerivedAsDerivedI : public AMI_Test_throwDerivedAsDerived, p
virtual void
ice_exception(const ::Ice::Exception& ex)
{
- test(ex.ice_name() == "DerivedException");
+ test(ex.ice_name() == "Test::DerivedException");
const DerivedException& e = dynamic_cast<const DerivedException&>(ex);
test(e.sbe == "sbe");
test(e.pb);
@@ -582,7 +584,7 @@ class AMI_Test_throwDerivedAsDerivedI : public AMI_Test_throwDerivedAsDerived, p
typedef IceUtil::Handle<AMI_Test_throwDerivedAsDerivedI> AMI_Test_throwDerivedAsDerivedIPtr;
-class AMI_Test_throwUnknownDerivedAsBaseI : public AMI_Test_throwUnknownDerivedAsBase, public CallbackBase
+class AMI_Test_throwUnknownDerivedAsBaseI : public AMI_TestIntf_throwUnknownDerivedAsBase, public CallbackBase
{
virtual void
ice_response()
@@ -593,7 +595,7 @@ class AMI_Test_throwUnknownDerivedAsBaseI : public AMI_Test_throwUnknownDerivedA
virtual void
ice_exception(const ::Ice::Exception& ex)
{
- test(ex.ice_name() == "BaseException");
+ test(ex.ice_name() == "Test::BaseException");
const BaseException& e = dynamic_cast<const BaseException&>(ex);
test(e.sbe == "sbe");
test(e.pb);
@@ -605,7 +607,7 @@ class AMI_Test_throwUnknownDerivedAsBaseI : public AMI_Test_throwUnknownDerivedA
typedef IceUtil::Handle<AMI_Test_throwUnknownDerivedAsBaseI> AMI_Test_throwUnknownDerivedAsBaseIPtr;
-class AMI_Test_useForwardI : public AMI_Test_useForward, public CallbackBase
+class AMI_Test_useForwardI : public AMI_TestIntf_useForward, public CallbackBase
{
virtual void
ice_response(const ForwardPtr& f)
@@ -623,11 +625,11 @@ class AMI_Test_useForwardI : public AMI_Test_useForward, public CallbackBase
typedef IceUtil::Handle<AMI_Test_useForwardI> AMI_Test_useForwardIPtr;
-TestPrx
+TestIntfPrx
allTests(const Ice::CommunicatorPtr& communicator)
{
Ice::ObjectPrx obj = communicator->stringToProxy("Test:default -p 12345");
- TestPrx test = TestPrx::checkedCast(obj);
+ TestIntfPrx test = TestIntfPrx::checkedCast(obj);
cout << "base as Object... " << flush;
{
@@ -636,7 +638,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
o = test->SBaseAsObject();
test(o);
- test(o->ice_id() == "::SBase");
+ test(o->ice_id() == "::Test::SBase");
}
catch(...)
{
@@ -780,7 +782,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
BPtr b = test->oneElementCycle();
test(b);
- test(b->ice_id() == "::B");
+ test(b->ice_id() == "::Test::B");
test(b->sb == "B1.sb");
test(b->pb == b);
}
@@ -805,12 +807,12 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
BPtr b1 = test->twoElementCycle();
test(b1);
- test(b1->ice_id() == "::B");
+ test(b1->ice_id() == "::Test::B");
test(b1->sb == "B1.sb");
BPtr b2 = b1->pb;
test(b2);
- test(b2->ice_id() == "::B");
+ test(b2->ice_id() == "::Test::B");
test(b2->sb == "B2.sb");
test(b2->pb == b1);
}
@@ -836,7 +838,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
BPtr b1;
b1 = test->D1AsB();
test(b1);
- test(b1->ice_id() == "::D1");
+ test(b1->ice_id() == "::Test::D1");
test(b1->sb == "D1.sb");
test(b1->pb);
test(b1->pb != b1);
@@ -851,7 +853,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(b2);
test(b2->pb == b1);
test(b2->sb == "D2.sb");
- test(b2->ice_id() == "::B");
+ test(b2->ice_id() == "::Test::B");
}
catch(...)
{
@@ -875,14 +877,14 @@ allTests(const Ice::CommunicatorPtr& communicator)
D1Ptr d1;
d1 = test->D1AsD1();
test(d1);
- test(d1->ice_id() == "::D1");
+ test(d1->ice_id() == "::Test::D1");
test(d1->sb == "D1.sb");
test(d1->pb);
test(d1->pb != d1);
BPtr b2 = d1->pb;
test(b2);
- test(b2->ice_id() == "::B");
+ test(b2->ice_id() == "::Test::B");
test(b2->sb == "D2.sb");
test(b2->pb == d1);
}
@@ -908,14 +910,14 @@ allTests(const Ice::CommunicatorPtr& communicator)
BPtr b2;
b2 = test->D2AsB();
test(b2);
- test(b2->ice_id() == "::B");
+ test(b2->ice_id() == "::Test::B");
test(b2->sb == "D2.sb");
test(b2->pb);
test(b2->pb != b2);
BPtr b1 = b2->pb;
test(b1);
- test(b1->ice_id() == "::D1");
+ test(b1->ice_id() == "::Test::D1");
test(b1->sb == "D1.sb");
test(b1->pb == b2);
D1Ptr d1 = D1Ptr::dynamicCast(b1);
@@ -947,7 +949,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test->paramTest1(b1, b2);
test(b1);
- test(b1->ice_id() == "::D1");
+ test(b1->ice_id() == "::Test::D1");
test(b1->sb == "D1.sb");
test(b1->pb == b2);
D1Ptr d1 = D1Ptr::dynamicCast(b1);
@@ -956,7 +958,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(d1->pd1 == b2);
test(b2);
- test(b2->ice_id() == "::B"); // No factory, must be sliced
+ test(b2->ice_id() == "::Test::B"); // No factory, must be sliced
test(b2->sb == "D2.sb");
test(b2->pb == b1);
}
@@ -984,7 +986,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test->paramTest2(b2, b1);
test(b1);
- test(b1->ice_id() == "::D1");
+ test(b1->ice_id() == "::Test::D1");
test(b1->sb == "D1.sb");
test(b1->pb == b2);
D1Ptr d1 = D1Ptr::dynamicCast(b1);
@@ -993,7 +995,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(d1->pd1 == b2);
test(b2);
- test(b2->ice_id() == "::B"); // No factory, must be sliced
+ test(b2->ice_id() == "::Test::B"); // No factory, must be sliced
test(b2->sb == "D2.sb");
test(b2->pb == b1);
}
@@ -1071,7 +1073,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(b1);
test(b1->sb == "D1.sb");
- test(b1->ice_id() == "::D1");
+ test(b1->ice_id() == "::Test::D1");
D1Ptr p1 = D1Ptr::dynamicCast(b1);
test(p1);
test(p1->sd1 == "D1.sd1");
@@ -1080,7 +1082,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
BPtr b2 = b1->pb;
test(b2);
test(b2->sb == "D3.sb");
- test(b2->ice_id() == "::B"); // Sliced by server
+ test(b2->ice_id() == "::Test::B"); // Sliced by server
test(b2->pb == b1);
D3Ptr p3 = D3Ptr::dynamicCast(b2);
test(!p3);
@@ -1119,7 +1121,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(b1);
test(b1->sb == "D1.sb");
- test(b1->ice_id() == "::D1");
+ test(b1->ice_id() == "::Test::D1");
D1Ptr p1 = D1Ptr::dynamicCast(b1);
test(p1);
test(p1->sd1 == "D1.sd1");
@@ -1128,7 +1130,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
BPtr b2 = b1->pb;
test(b2);
test(b2->sb == "D3.sb");
- test(b2->ice_id() == "::B"); // Sliced by server
+ test(b2->ice_id() == "::Test::B"); // Sliced by server
test(b2->pb == b1);
D3Ptr p3 = D3Ptr::dynamicCast(b2);
test(!p3);
@@ -1164,14 +1166,14 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(b1);
test(b1->sb == "D3.sb");
- test(b1->ice_id() == "::B"); // Sliced by server
+ test(b1->ice_id() == "::Test::B"); // Sliced by server
D3Ptr p1 = D3Ptr::dynamicCast(b1);
test(!p1);
BPtr b2 = b1->pb;
test(b2);
test(b2->sb == "D1.sb");
- test(b2->ice_id() == "::D1");
+ test(b2->ice_id() == "::Test::D1");
test(b2->pb == b1);
D1Ptr p3 = D1Ptr::dynamicCast(b2);
test(p3);
@@ -1212,14 +1214,14 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(b1);
test(b1->sb == "D3.sb");
- test(b1->ice_id() == "::B"); // Sliced by server
+ test(b1->ice_id() == "::Test::B"); // Sliced by server
D3Ptr p1 = D3Ptr::dynamicCast(b1);
test(!p1);
BPtr b2 = b1->pb;
test(b2);
test(b2->sb == "D1.sb");
- test(b2->ice_id() == "::D1");
+ test(b2->ice_id() == "::Test::D1");
test(b2->pb == b1);
D1Ptr p3 = D1Ptr::dynamicCast(b2);
test(p3);
@@ -1249,17 +1251,17 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(p1);
test(p1->sb == "D2.sb (p1 1)");
test(p1->pb == 0);
- test(p1->ice_id() == "::B");
+ test(p1->ice_id() == "::Test::B");
test(p2);
test(p2->sb == "D2.sb (p2 1)");
test(p2->pb == 0);
- test(p2->ice_id() == "::B");
+ test(p2->ice_id() == "::Test::B");
test(ret);
test(ret->sb == "D1.sb (p2 2)");
test(ret->pb == 0);
- test(ret->ice_id() == "::D1");
+ test(ret->ice_id() == "::Test::D1");
}
catch(...)
{
@@ -1286,12 +1288,12 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(b);
test(b->sb == "D4.sb (1)");
test(b->pb == 0);
- test(b->ice_id() == "::B");
+ test(b->ice_id() == "::Test::B");
test(ret);
test(ret->sb == "B.sb (2)");
test(ret->pb == 0);
- test(ret->ice_id() == "::B");
+ test(ret->ice_id() == "::Test::B");
}
catch(...)
{
@@ -1330,7 +1332,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
BPtr r = test->returnTest3(d3, b2);
test(r);
- test(r->ice_id() == "::B");
+ test(r->ice_id() == "::Test::B");
test(r->sb == "D3.sb");
test(r->pb = r);
}
@@ -1365,7 +1367,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
BPtr r = cb->r;
test(r);
- test(r->ice_id() == "::B");
+ test(r->ice_id() == "::Test::B");
test(r->sb == "D3.sb");
test(r->pb = r);
}
@@ -1400,7 +1402,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
BPtr r = test->returnTest3(d3, d12);
test(r);
- test(r->ice_id() == "::B");
+ test(r->ice_id() == "::Test::B");
test(r->sb == "D3.sb");
test(r->pb = r);
}
@@ -1438,7 +1440,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(cb->check());
BPtr r = cb->r;
test(r);
- test(r->ice_id() == "::B");
+ test(r->ice_id() == "::Test::B");
test(r->sb == "D3.sb");
test(r->pb = r);
}
@@ -1521,13 +1523,13 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(ss2d1->pb == ss2b);
test(ss2d3->pb == ss2b);
- test(ss1b->ice_id() == "::B");
- test(ss1d1->ice_id() == "::D1");
- test(ss1d3->ice_id() == "::B");
+ test(ss1b->ice_id() == "::Test::B");
+ test(ss1d1->ice_id() == "::Test::D1");
+ test(ss1d3->ice_id() == "::Test::B");
- test(ss2b->ice_id() == "::B");
- test(ss2d1->ice_id() == "::D1");
- test(ss2d3->ice_id() == "::B");
+ test(ss2b->ice_id() == "::Test::B");
+ test(ss2d1->ice_id() == "::Test::D1");
+ test(ss2d3->ice_id() == "::Test::B");
}
catch(const ::Ice::Exception&)
{
@@ -1611,13 +1613,13 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(ss2d1->pb == ss2b);
test(ss2d3->pb == ss2b);
- test(ss1b->ice_id() == "::B");
- test(ss1d1->ice_id() == "::D1");
- test(ss1d3->ice_id() == "::B");
+ test(ss1b->ice_id() == "::Test::B");
+ test(ss1d1->ice_id() == "::Test::D1");
+ test(ss1d3->ice_id() == "::Test::B");
- test(ss2b->ice_id() == "::B");
- test(ss2d1->ice_id() == "::D1");
- test(ss2d3->ice_id() == "::B");
+ test(ss2b->ice_id() == "::Test::B");
+ test(ss2d1->ice_id() == "::Test::D1");
+ test(ss2d3->ice_id() == "::Test::B");
}
catch(const ::Ice::Exception&)
{
@@ -1753,7 +1755,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
}
catch(const BaseException& e)
{
- test(e.ice_name() == "BaseException");
+ test(e.ice_name() == "Test::BaseException");
test(e.sbe == "sbe");
test(e.pb);
test(e.pb->sb == "sb");
@@ -1783,7 +1785,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
}
catch(const DerivedException& e)
{
- test(e.ice_name() == "DerivedException");
+ test(e.ice_name() == "Test::DerivedException");
test(e.sbe == "sbe");
test(e.pb);
test(e.pb->sb == "sb1");
@@ -1819,7 +1821,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
}
catch(const DerivedException& e)
{
- test(e.ice_name() == "DerivedException");
+ test(e.ice_name() == "Test::DerivedException");
test(e.sbe == "sbe");
test(e.pb);
test(e.pb->sb == "sb1");
@@ -1855,7 +1857,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
}
catch(const BaseException& e)
{
- test(e.ice_name() == "BaseException");
+ test(e.ice_name() == "Test::BaseException");
test(e.sbe == "sbe");
test(e.pb);
test(e.pb->sb == "sb d2");
diff --git a/cpp/test/Ice/slicing/objects/Client.cpp b/cpp/test/Ice/slicing/objects/Client.cpp
index 5d65ddc55a4..c9009d61983 100644
--- a/cpp/test/Ice/slicing/objects/Client.cpp
+++ b/cpp/test/Ice/slicing/objects/Client.cpp
@@ -12,12 +12,13 @@
#include <ClientPrivate.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
- TestPrx allTests(const Ice::CommunicatorPtr&);
- TestPrx Test = allTests(communicator);
+ TestIntfPrx allTests(const Ice::CommunicatorPtr&);
+ TestIntfPrx Test = allTests(communicator);
Test->shutdown();
return EXIT_SUCCESS;
}
diff --git a/cpp/test/Ice/slicing/objects/ClientPrivate.ice b/cpp/test/Ice/slicing/objects/ClientPrivate.ice
index c32c2495f52..6ee187eeba5 100644
--- a/cpp/test/Ice/slicing/objects/ClientPrivate.ice
+++ b/cpp/test/Ice/slicing/objects/ClientPrivate.ice
@@ -12,10 +12,15 @@
#include <Test.ice>
+module Test
+{
+
class D3 extends B
{
string sd3;
B pd3;
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/objects/Forward.ice b/cpp/test/Ice/slicing/objects/Forward.ice
index 74ae4b8c7e0..b4a01e4aab8 100644
--- a/cpp/test/Ice/slicing/objects/Forward.ice
+++ b/cpp/test/Ice/slicing/objects/Forward.ice
@@ -10,6 +10,9 @@
#ifndef FORWARD_ICE
#define FORWARD_ICE
+module Test
+{
+
class Forward;
class Hidden
@@ -22,4 +25,6 @@ class Forward
Hidden h;
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/objects/ServerPrivate.ice b/cpp/test/Ice/slicing/objects/ServerPrivate.ice
index b963d10122d..ecd2228876e 100644
--- a/cpp/test/Ice/slicing/objects/ServerPrivate.ice
+++ b/cpp/test/Ice/slicing/objects/ServerPrivate.ice
@@ -12,6 +12,9 @@
#include <Test.ice>
+module Test
+{
+
class SBSUnknownDerived extends SBase
{
string sbsud;
@@ -40,4 +43,6 @@ exception UnknownDerivedException extends BaseException
D2 pd2;
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/objects/ServerPrivateAMD.ice b/cpp/test/Ice/slicing/objects/ServerPrivateAMD.ice
index 07e05c6a76b..8c9a5ec3d13 100644
--- a/cpp/test/Ice/slicing/objects/ServerPrivateAMD.ice
+++ b/cpp/test/Ice/slicing/objects/ServerPrivateAMD.ice
@@ -12,6 +12,9 @@
#include <TestAMD.ice>
+module Test
+{
+
class SBSUnknownDerived extends SBase
{
string sbsud;
@@ -40,4 +43,6 @@ exception UnknownDerivedException extends BaseException
D2 pd2;
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/objects/Test.ice b/cpp/test/Ice/slicing/objects/Test.ice
index 3817f608833..93bcbf9dcd6 100644
--- a/cpp/test/Ice/slicing/objects/Test.ice
+++ b/cpp/test/Ice/slicing/objects/Test.ice
@@ -10,6 +10,9 @@
#ifndef TEST_ICE
#define TEST_ICE
+module Test
+{
+
class SBase
{
string sb;
@@ -66,7 +69,7 @@ exception DerivedException extends BaseException
class Forward; // Forward-declared class defined in another compilation unit
-["ami"] interface Test
+["ami"] interface TestIntf
{
Object SBaseAsObject();
SBase SBaseAsSBase();
@@ -106,4 +109,6 @@ class Forward; // Forward-declared class defined in another compilation unit
void shutdown();
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/objects/TestAMD.ice b/cpp/test/Ice/slicing/objects/TestAMD.ice
index b68706f831e..f22792c198f 100644
--- a/cpp/test/Ice/slicing/objects/TestAMD.ice
+++ b/cpp/test/Ice/slicing/objects/TestAMD.ice
@@ -10,6 +10,9 @@
#ifndef TEST_AMD_ICE
#define TEST_AMD_ICE
+module Test
+{
+
class SBase
{
string sb;
@@ -66,7 +69,7 @@ exception DerivedException extends BaseException
class Forward; // Forward-declared class defined in another compilation unit
-["ami", "amd"] interface Test
+["ami", "amd"] interface TestIntf
{
Object SBaseAsObject();
SBase SBaseAsSBase();
@@ -106,4 +109,6 @@ class Forward; // Forward-declared class defined in another compilation unit
void shutdown();
};
+};
+
#endif
diff --git a/cpp/test/Ice/slicing/objects/TestAMDI.cpp b/cpp/test/Ice/slicing/objects/TestAMDI.cpp
index 9915f35c06c..eb42882f8fc 100644
--- a/cpp/test/Ice/slicing/objects/TestAMDI.cpp
+++ b/cpp/test/Ice/slicing/objects/TestAMDI.cpp
@@ -11,13 +11,15 @@
#include <Ice/Ice.h>
#include <sstream>
+using namespace Test;
+
TestI::TestI(const Ice::ObjectAdapterPtr& adapter) :
_adapter(adapter)
{
}
void
-TestI::SBaseAsObject_async(const ::AMD_Test_SBaseAsObjectPtr& cb, const ::Ice::Current&)
+TestI::SBaseAsObject_async(const ::AMD_TestIntf_SBaseAsObjectPtr& cb, const ::Ice::Current&)
{
SBasePtr sb = new SBase;
sb->sb = "SBase.sb";
@@ -25,7 +27,7 @@ TestI::SBaseAsObject_async(const ::AMD_Test_SBaseAsObjectPtr& cb, const ::Ice::C
}
void
-TestI::SBaseAsSBase_async(const ::AMD_Test_SBaseAsSBasePtr& cb, const ::Ice::Current&)
+TestI::SBaseAsSBase_async(const ::AMD_TestIntf_SBaseAsSBasePtr& cb, const ::Ice::Current&)
{
SBasePtr sb = new SBase;
sb->sb = "SBase.sb";
@@ -33,7 +35,7 @@ TestI::SBaseAsSBase_async(const ::AMD_Test_SBaseAsSBasePtr& cb, const ::Ice::Cur
}
void
-TestI::SBSKnownDerivedAsSBase_async(const ::AMD_Test_SBSKnownDerivedAsSBasePtr& cb, const ::Ice::Current&)
+TestI::SBSKnownDerivedAsSBase_async(const ::AMD_TestIntf_SBSKnownDerivedAsSBasePtr& cb, const ::Ice::Current&)
{
SBSKnownDerivedPtr sbskd = new SBSKnownDerived;
sbskd->sb = "SBSKnownDerived.sb";
@@ -42,7 +44,7 @@ TestI::SBSKnownDerivedAsSBase_async(const ::AMD_Test_SBSKnownDerivedAsSBasePtr&
}
void
-TestI::SBSKnownDerivedAsSBSKnownDerived_async(const ::AMD_Test_SBSKnownDerivedAsSBSKnownDerivedPtr& cb,
+TestI::SBSKnownDerivedAsSBSKnownDerived_async(const ::AMD_TestIntf_SBSKnownDerivedAsSBSKnownDerivedPtr& cb,
const ::Ice::Current&)
{
SBSKnownDerivedPtr sbskd = new SBSKnownDerived;
@@ -52,7 +54,7 @@ TestI::SBSKnownDerivedAsSBSKnownDerived_async(const ::AMD_Test_SBSKnownDerivedAs
}
void
-TestI::SBSUnknownDerivedAsSBase_async(const ::AMD_Test_SBSUnknownDerivedAsSBasePtr& cb, const ::Ice::Current&)
+TestI::SBSUnknownDerivedAsSBase_async(const ::AMD_TestIntf_SBSUnknownDerivedAsSBasePtr& cb, const ::Ice::Current&)
{
SBSUnknownDerivedPtr sbsud = new SBSUnknownDerived;
sbsud->sb = "SBSUnknownDerived.sb";
@@ -61,7 +63,7 @@ TestI::SBSUnknownDerivedAsSBase_async(const ::AMD_Test_SBSUnknownDerivedAsSBaseP
}
void
-TestI::SUnknownAsObject_async(const ::AMD_Test_SUnknownAsObjectPtr& cb, const ::Ice::Current&)
+TestI::SUnknownAsObject_async(const ::AMD_TestIntf_SUnknownAsObjectPtr& cb, const ::Ice::Current&)
{
SUnknownPtr su = new SUnknown;
su->su = "SUnknown.su";
@@ -69,7 +71,7 @@ TestI::SUnknownAsObject_async(const ::AMD_Test_SUnknownAsObjectPtr& cb, const ::
}
void
-TestI::oneElementCycle_async(const ::AMD_Test_oneElementCyclePtr& cb, const ::Ice::Current&)
+TestI::oneElementCycle_async(const ::AMD_TestIntf_oneElementCyclePtr& cb, const ::Ice::Current&)
{
BPtr b = new B;
b->sb = "B1.sb";
@@ -78,7 +80,7 @@ TestI::oneElementCycle_async(const ::AMD_Test_oneElementCyclePtr& cb, const ::Ic
}
void
-TestI::twoElementCycle_async(const ::AMD_Test_twoElementCyclePtr& cb, const ::Ice::Current&)
+TestI::twoElementCycle_async(const ::AMD_TestIntf_twoElementCyclePtr& cb, const ::Ice::Current&)
{
BPtr b1 = new B;
b1->sb = "B1.sb";
@@ -90,7 +92,7 @@ TestI::twoElementCycle_async(const ::AMD_Test_twoElementCyclePtr& cb, const ::Ic
}
void
-TestI::D1AsB_async(const ::AMD_Test_D1AsBPtr& cb, const ::Ice::Current&)
+TestI::D1AsB_async(const ::AMD_TestIntf_D1AsBPtr& cb, const ::Ice::Current&)
{
D1Ptr d1 = new D1;
d1->sb = "D1.sb";
@@ -106,7 +108,7 @@ TestI::D1AsB_async(const ::AMD_Test_D1AsBPtr& cb, const ::Ice::Current&)
}
void
-TestI::D1AsD1_async(const ::AMD_Test_D1AsD1Ptr& cb, const ::Ice::Current&)
+TestI::D1AsD1_async(const ::AMD_TestIntf_D1AsD1Ptr& cb, const ::Ice::Current&)
{
D1Ptr d1 = new D1;
d1->sb = "D1.sb";
@@ -122,7 +124,7 @@ TestI::D1AsD1_async(const ::AMD_Test_D1AsD1Ptr& cb, const ::Ice::Current&)
}
void
-TestI::D2AsB_async(const ::AMD_Test_D2AsBPtr& cb, const ::Ice::Current&)
+TestI::D2AsB_async(const ::AMD_TestIntf_D2AsBPtr& cb, const ::Ice::Current&)
{
D2Ptr d2 = new D2;
d2->sb = "D2.sb";
@@ -138,7 +140,7 @@ TestI::D2AsB_async(const ::AMD_Test_D2AsBPtr& cb, const ::Ice::Current&)
}
void
-TestI::paramTest1_async(const ::AMD_Test_paramTest1Ptr& cb, const ::Ice::Current&)
+TestI::paramTest1_async(const ::AMD_TestIntf_paramTest1Ptr& cb, const ::Ice::Current&)
{
D1Ptr d1 = new D1;
d1->sb = "D1.sb";
@@ -154,7 +156,7 @@ TestI::paramTest1_async(const ::AMD_Test_paramTest1Ptr& cb, const ::Ice::Current
}
void
-TestI::paramTest2_async(const ::AMD_Test_paramTest2Ptr& cb, const ::Ice::Current&)
+TestI::paramTest2_async(const ::AMD_TestIntf_paramTest2Ptr& cb, const ::Ice::Current&)
{
D1Ptr d1 = new D1;
d1->sb = "D1.sb";
@@ -170,7 +172,7 @@ TestI::paramTest2_async(const ::AMD_Test_paramTest2Ptr& cb, const ::Ice::Current
}
void
-TestI::paramTest3_async(const ::AMD_Test_paramTest3Ptr& cb, const ::Ice::Current&)
+TestI::paramTest3_async(const ::AMD_TestIntf_paramTest3Ptr& cb, const ::Ice::Current&)
{
D2Ptr d2 = new D2;
d2->sb = "D2.sb (p1 1)";
@@ -200,7 +202,7 @@ TestI::paramTest3_async(const ::AMD_Test_paramTest3Ptr& cb, const ::Ice::Current
}
void
-TestI::paramTest4_async(const ::AMD_Test_paramTest4Ptr& cb, const ::Ice::Current&)
+TestI::paramTest4_async(const ::AMD_TestIntf_paramTest4Ptr& cb, const ::Ice::Current&)
{
D4Ptr d4 = new D4;
d4->sb = "D4.sb (1)";
@@ -213,7 +215,7 @@ TestI::paramTest4_async(const ::AMD_Test_paramTest4Ptr& cb, const ::Ice::Current
}
void
-TestI::returnTest1_async(const ::AMD_Test_returnTest1Ptr& cb, const ::Ice::Current&)
+TestI::returnTest1_async(const ::AMD_TestIntf_returnTest1Ptr& cb, const ::Ice::Current&)
{
D1Ptr d1 = new D1;
d1->sb = "D1.sb";
@@ -229,7 +231,7 @@ TestI::returnTest1_async(const ::AMD_Test_returnTest1Ptr& cb, const ::Ice::Curre
}
void
-TestI::returnTest2_async(const ::AMD_Test_returnTest2Ptr& cb, const ::Ice::Current&)
+TestI::returnTest2_async(const ::AMD_TestIntf_returnTest2Ptr& cb, const ::Ice::Current&)
{
D1Ptr d1 = new D1;
d1->sb = "D1.sb";
@@ -245,13 +247,13 @@ TestI::returnTest2_async(const ::AMD_Test_returnTest2Ptr& cb, const ::Ice::Curre
}
void
-TestI::returnTest3_async(const ::AMD_Test_returnTest3Ptr& cb, const BPtr& p1, const BPtr& p2, const ::Ice::Current&)
+TestI::returnTest3_async(const ::AMD_TestIntf_returnTest3Ptr& cb, const BPtr& p1, const BPtr& p2, const ::Ice::Current&)
{
cb->ice_response(p1);
}
void
-TestI::sequenceTest_async(const ::AMD_Test_sequenceTestPtr& cb,
+TestI::sequenceTest_async(const ::AMD_TestIntf_sequenceTestPtr& cb,
const SS1Ptr& p1, const SS2Ptr& p2, const ::Ice::Current&)
{
SS ss;
@@ -261,7 +263,7 @@ TestI::sequenceTest_async(const ::AMD_Test_sequenceTestPtr& cb,
}
void
-TestI::dictionaryTest_async(const ::AMD_Test_dictionaryTestPtr& cb, const ::BDict& bin, const ::Ice::Current&)
+TestI::dictionaryTest_async(const ::AMD_TestIntf_dictionaryTestPtr& cb, const ::BDict& bin, const ::Ice::Current&)
{
BDict bout;
int i;
@@ -291,7 +293,7 @@ TestI::dictionaryTest_async(const ::AMD_Test_dictionaryTestPtr& cb, const ::BDic
}
void
-TestI::throwBaseAsBase_async(const ::AMD_Test_throwBaseAsBasePtr& cb, const ::Ice::Current&)
+TestI::throwBaseAsBase_async(const ::AMD_TestIntf_throwBaseAsBasePtr& cb, const ::Ice::Current&)
{
BaseException be;
be.sbe = "sbe";
@@ -302,7 +304,7 @@ TestI::throwBaseAsBase_async(const ::AMD_Test_throwBaseAsBasePtr& cb, const ::Ic
}
void
-TestI::throwDerivedAsBase_async(const ::AMD_Test_throwDerivedAsBasePtr& cb, const ::Ice::Current&)
+TestI::throwDerivedAsBase_async(const ::AMD_TestIntf_throwDerivedAsBasePtr& cb, const ::Ice::Current&)
{
DerivedException de;
de.sbe = "sbe";
@@ -319,7 +321,7 @@ TestI::throwDerivedAsBase_async(const ::AMD_Test_throwDerivedAsBasePtr& cb, cons
}
void
-TestI::throwDerivedAsDerived_async(const ::AMD_Test_throwDerivedAsDerivedPtr& cb, const ::Ice::Current&)
+TestI::throwDerivedAsDerived_async(const ::AMD_TestIntf_throwDerivedAsDerivedPtr& cb, const ::Ice::Current&)
{
DerivedException de;
de.sbe = "sbe";
@@ -336,7 +338,7 @@ TestI::throwDerivedAsDerived_async(const ::AMD_Test_throwDerivedAsDerivedPtr& cb
}
void
-TestI::throwUnknownDerivedAsBase_async(const ::AMD_Test_throwUnknownDerivedAsBasePtr& cb, const ::Ice::Current&)
+TestI::throwUnknownDerivedAsBase_async(const ::AMD_TestIntf_throwUnknownDerivedAsBasePtr& cb, const ::Ice::Current&)
{
D2Ptr d2 = new D2;
d2->sb = "sb d2";
@@ -353,7 +355,7 @@ TestI::throwUnknownDerivedAsBase_async(const ::AMD_Test_throwUnknownDerivedAsBas
}
void
-TestI::useForward_async(const ::AMD_Test_useForwardPtr& cb, const ::Ice::Current&)
+TestI::useForward_async(const ::AMD_TestIntf_useForwardPtr& cb, const ::Ice::Current&)
{
ForwardPtr f = new Forward;
f->h = new Hidden;
@@ -362,7 +364,7 @@ TestI::useForward_async(const ::AMD_Test_useForwardPtr& cb, const ::Ice::Current
}
void
-TestI::shutdown_async(const ::AMD_Test_shutdownPtr& cb, const ::Ice::Current&)
+TestI::shutdown_async(const ::AMD_TestIntf_shutdownPtr& cb, const ::Ice::Current&)
{
_adapter->getCommunicator()->shutdown();
cb->ice_response();
diff --git a/cpp/test/Ice/slicing/objects/TestAMDI.h b/cpp/test/Ice/slicing/objects/TestAMDI.h
index 0fa7f350990..85bebdc1ecf 100644
--- a/cpp/test/Ice/slicing/objects/TestAMDI.h
+++ b/cpp/test/Ice/slicing/objects/TestAMDI.h
@@ -13,53 +13,57 @@
#include <ServerPrivateAMD.h>
#include <Forward.h>
-class TestI : virtual public Test
+class TestI : virtual public ::Test::TestIntf
{
public:
TestI(const ::Ice::ObjectAdapterPtr&);
- virtual void SBaseAsObject_async(const ::AMD_Test_SBaseAsObjectPtr&, const ::Ice::Current&);
- virtual void SBaseAsSBase_async(const ::AMD_Test_SBaseAsSBasePtr&, const ::Ice::Current&);
- virtual void SBSKnownDerivedAsSBase_async(const ::AMD_Test_SBSKnownDerivedAsSBasePtr&, const ::Ice::Current&);
- virtual void SBSKnownDerivedAsSBSKnownDerived_async(const ::AMD_Test_SBSKnownDerivedAsSBSKnownDerivedPtr&,
+ virtual void SBaseAsObject_async(const ::Test::AMD_TestIntf_SBaseAsObjectPtr&, const ::Ice::Current&);
+ virtual void SBaseAsSBase_async(const ::Test::AMD_TestIntf_SBaseAsSBasePtr&, const ::Ice::Current&);
+ virtual void SBSKnownDerivedAsSBase_async(const ::Test::AMD_TestIntf_SBSKnownDerivedAsSBasePtr&,
+ const ::Ice::Current&);
+ virtual void SBSKnownDerivedAsSBSKnownDerived_async(const ::Test::AMD_TestIntf_SBSKnownDerivedAsSBSKnownDerivedPtr&,
const ::Ice::Current&);
- virtual void SBSUnknownDerivedAsSBase_async(const ::AMD_Test_SBSUnknownDerivedAsSBasePtr&,
+ virtual void SBSUnknownDerivedAsSBase_async(const ::Test::AMD_TestIntf_SBSUnknownDerivedAsSBasePtr&,
const ::Ice::Current&);
- virtual void SUnknownAsObject_async(const ::AMD_Test_SUnknownAsObjectPtr&, const ::Ice::Current&);
+ virtual void SUnknownAsObject_async(const ::Test::AMD_TestIntf_SUnknownAsObjectPtr&, const ::Ice::Current&);
- virtual void oneElementCycle_async(const ::AMD_Test_oneElementCyclePtr&, const ::Ice::Current&);
- virtual void twoElementCycle_async(const ::AMD_Test_twoElementCyclePtr&, const ::Ice::Current&);
+ virtual void oneElementCycle_async(const ::Test::AMD_TestIntf_oneElementCyclePtr&, const ::Ice::Current&);
+ virtual void twoElementCycle_async(const ::Test::AMD_TestIntf_twoElementCyclePtr&, const ::Ice::Current&);
- virtual void D1AsB_async(const ::AMD_Test_D1AsBPtr&, const ::Ice::Current&);
- virtual void D1AsD1_async(const ::AMD_Test_D1AsD1Ptr&, const ::Ice::Current&);
- virtual void D2AsB_async(const ::AMD_Test_D2AsBPtr&, const ::Ice::Current&);
+ virtual void D1AsB_async(const ::Test::AMD_TestIntf_D1AsBPtr&, const ::Ice::Current&);
+ virtual void D1AsD1_async(const ::Test::AMD_TestIntf_D1AsD1Ptr&, const ::Ice::Current&);
+ virtual void D2AsB_async(const ::Test::AMD_TestIntf_D2AsBPtr&, const ::Ice::Current&);
- virtual void paramTest1_async(const ::AMD_Test_paramTest1Ptr&, const ::Ice::Current&);
- virtual void paramTest2_async(const ::AMD_Test_paramTest2Ptr&, const ::Ice::Current&);
- virtual void paramTest3_async(const ::AMD_Test_paramTest3Ptr&, const ::Ice::Current&);
- virtual void paramTest4_async(const ::AMD_Test_paramTest4Ptr&, const ::Ice::Current&);
+ virtual void paramTest1_async(const ::Test::AMD_TestIntf_paramTest1Ptr&, const ::Ice::Current&);
+ virtual void paramTest2_async(const ::Test::AMD_TestIntf_paramTest2Ptr&, const ::Ice::Current&);
+ virtual void paramTest3_async(const ::Test::AMD_TestIntf_paramTest3Ptr&, const ::Ice::Current&);
+ virtual void paramTest4_async(const ::Test::AMD_TestIntf_paramTest4Ptr&, const ::Ice::Current&);
- virtual void returnTest1_async(const ::AMD_Test_returnTest1Ptr&, const ::Ice::Current&);
- virtual void returnTest2_async(const ::AMD_Test_returnTest2Ptr&, const ::Ice::Current&);
- virtual void returnTest3_async(const ::AMD_Test_returnTest3Ptr&, const BPtr&, const BPtr&, const ::Ice::Current&);
+ virtual void returnTest1_async(const ::Test::AMD_TestIntf_returnTest1Ptr&, const ::Ice::Current&);
+ virtual void returnTest2_async(const ::Test::AMD_TestIntf_returnTest2Ptr&, const ::Ice::Current&);
+ virtual void returnTest3_async(const ::Test::AMD_TestIntf_returnTest3Ptr&, const ::Test::BPtr&, const ::Test::BPtr&,
+ const ::Ice::Current&);
- virtual void sequenceTest_async(const ::AMD_Test_sequenceTestPtr&,
- const SS1Ptr&, const SS2Ptr&, const ::Ice::Current&);
+ virtual void sequenceTest_async(const ::Test::AMD_TestIntf_sequenceTestPtr&,
+ const ::Test::SS1Ptr&, const ::Test::SS2Ptr&, const ::Ice::Current&);
- virtual void dictionaryTest_async(const ::AMD_Test_dictionaryTestPtr&,
- const ::BDict&, const ::Ice::Current&);
+ virtual void dictionaryTest_async(const ::Test::AMD_TestIntf_dictionaryTestPtr&,
+ const ::Test::BDict&, const ::Ice::Current&);
- virtual void throwBaseAsBase_async(const ::AMD_Test_throwBaseAsBasePtr&, const ::Ice::Current&);
- virtual void throwDerivedAsBase_async(const ::AMD_Test_throwDerivedAsBasePtr&, const ::Ice::Current&);
- virtual void throwDerivedAsDerived_async(const ::AMD_Test_throwDerivedAsDerivedPtr&, const ::Ice::Current&);
- virtual void throwUnknownDerivedAsBase_async(const ::AMD_Test_throwUnknownDerivedAsBasePtr&, const ::Ice::Current&);
+ virtual void throwBaseAsBase_async(const ::Test::AMD_TestIntf_throwBaseAsBasePtr&, const ::Ice::Current&);
+ virtual void throwDerivedAsBase_async(const ::Test::AMD_TestIntf_throwDerivedAsBasePtr&, const ::Ice::Current&);
+ virtual void throwDerivedAsDerived_async(const ::Test::AMD_TestIntf_throwDerivedAsDerivedPtr&,
+ const ::Ice::Current&);
+ virtual void throwUnknownDerivedAsBase_async(const ::Test::AMD_TestIntf_throwUnknownDerivedAsBasePtr&,
+ const ::Ice::Current&);
- virtual void useForward_async(const ::AMD_Test_useForwardPtr&, const ::Ice::Current&);
+ virtual void useForward_async(const ::Test::AMD_TestIntf_useForwardPtr&, const ::Ice::Current&);
- virtual void shutdown_async(const ::AMD_Test_shutdownPtr&, const ::Ice::Current&);
+ virtual void shutdown_async(const ::Test::AMD_TestIntf_shutdownPtr&, const ::Ice::Current&);
private:
diff --git a/cpp/test/Ice/slicing/objects/TestI.cpp b/cpp/test/Ice/slicing/objects/TestI.cpp
index 1deb66fe725..db9e6b4d9f4 100644
--- a/cpp/test/Ice/slicing/objects/TestI.cpp
+++ b/cpp/test/Ice/slicing/objects/TestI.cpp
@@ -11,6 +11,8 @@
#include <Ice/Ice.h>
#include <sstream>
+using namespace Test;
+
TestI::TestI(const Ice::ObjectAdapterPtr& adapter) :
_adapter(adapter)
{
diff --git a/cpp/test/Ice/slicing/objects/TestI.h b/cpp/test/Ice/slicing/objects/TestI.h
index 5eda53d47f1..b49fa9fea0a 100644
--- a/cpp/test/Ice/slicing/objects/TestI.h
+++ b/cpp/test/Ice/slicing/objects/TestI.h
@@ -13,47 +13,47 @@
#include <ServerPrivate.h>
#include <Forward.h>
-class TestI : virtual public Test
+class TestI : virtual public Test::TestIntf
{
public:
TestI(const ::Ice::ObjectAdapterPtr&);
virtual ::Ice::ObjectPtr SBaseAsObject(const ::Ice::Current&);
- virtual SBasePtr SBaseAsSBase(const ::Ice::Current&);
- virtual SBasePtr SBSKnownDerivedAsSBase(const ::Ice::Current&);
- virtual SBSKnownDerivedPtr SBSKnownDerivedAsSBSKnownDerived(const ::Ice::Current&);
+ virtual ::Test::SBasePtr SBaseAsSBase(const ::Ice::Current&);
+ virtual ::Test::SBasePtr SBSKnownDerivedAsSBase(const ::Ice::Current&);
+ virtual ::Test::SBSKnownDerivedPtr SBSKnownDerivedAsSBSKnownDerived(const ::Ice::Current&);
- virtual SBasePtr SBSUnknownDerivedAsSBase(const ::Ice::Current&);
+ virtual ::Test::SBasePtr SBSUnknownDerivedAsSBase(const ::Ice::Current&);
virtual ::Ice::ObjectPtr SUnknownAsObject(const ::Ice::Current&);
- virtual BPtr oneElementCycle(const ::Ice::Current&);
- virtual BPtr twoElementCycle(const ::Ice::Current&);
+ virtual ::Test::BPtr oneElementCycle(const ::Ice::Current&);
+ virtual ::Test::BPtr twoElementCycle(const ::Ice::Current&);
- virtual BPtr D1AsB(const ::Ice::Current&);
- virtual D1Ptr D1AsD1(const ::Ice::Current&);
- virtual BPtr D2AsB(const ::Ice::Current&);
+ virtual ::Test::BPtr D1AsB(const ::Ice::Current&);
+ virtual ::Test::D1Ptr D1AsD1(const ::Ice::Current&);
+ virtual ::Test::BPtr D2AsB(const ::Ice::Current&);
- virtual void paramTest1(BPtr&, BPtr&, const ::Ice::Current&);
- virtual void paramTest2(BPtr&, BPtr&, const ::Ice::Current&);
- virtual BPtr paramTest3(BPtr&, BPtr&, const ::Ice::Current&);
- virtual BPtr paramTest4(BPtr&, const ::Ice::Current&);
+ virtual void paramTest1(::Test::BPtr&, ::Test::BPtr&, const ::Ice::Current&);
+ virtual void paramTest2(::Test::BPtr&, ::Test::BPtr&, const ::Ice::Current&);
+ virtual ::Test::BPtr paramTest3(::Test::BPtr&, ::Test::BPtr&, const ::Ice::Current&);
+ virtual ::Test::BPtr paramTest4(::Test::BPtr&, const ::Ice::Current&);
- virtual BPtr returnTest1(BPtr&, BPtr&, const ::Ice::Current&);
- virtual BPtr returnTest2(BPtr&, BPtr&, const ::Ice::Current&);
- virtual BPtr returnTest3(const BPtr&, const BPtr&, const ::Ice::Current&);
+ virtual ::Test::BPtr returnTest1(::Test::BPtr&, ::Test::BPtr&, const ::Ice::Current&);
+ virtual ::Test::BPtr returnTest2(::Test::BPtr&, ::Test::BPtr&, const ::Ice::Current&);
+ virtual ::Test::BPtr returnTest3(const ::Test::BPtr&, const ::Test::BPtr&, const ::Ice::Current&);
- virtual SS sequenceTest(const SS1Ptr&, const SS2Ptr&, const ::Ice::Current&);
+ virtual ::Test::SS sequenceTest(const ::Test::SS1Ptr&, const ::Test::SS2Ptr&, const ::Ice::Current&);
- virtual ::BDict dictionaryTest(const ::BDict&, ::BDict&, const ::Ice::Current&);
+ virtual ::Test::BDict dictionaryTest(const ::Test::BDict&, ::Test::BDict&, const ::Ice::Current&);
virtual void throwBaseAsBase(const ::Ice::Current&);
virtual void throwDerivedAsBase(const ::Ice::Current&);
virtual void throwDerivedAsDerived(const ::Ice::Current&);
virtual void throwUnknownDerivedAsBase(const ::Ice::Current&);
- virtual void useForward(::ForwardPtr&, const ::Ice::Current&);
+ virtual void useForward(::Test::ForwardPtr&, const ::Ice::Current&);
virtual void shutdown(const ::Ice::Current&);
diff --git a/cpp/test/IcePack/deployer/AllTests.cpp b/cpp/test/IcePack/deployer/AllTests.cpp
index 4deaf9ef799..728885de005 100644
--- a/cpp/test/IcePack/deployer/AllTests.cpp
+++ b/cpp/test/IcePack/deployer/AllTests.cpp
@@ -16,6 +16,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
struct ProxyIdentityEqual : public std::binary_function<Ice::ObjectPrx,string,bool>
{
@@ -99,20 +100,20 @@ allTests(const Ice::CommunicatorPtr& communicator)
//
cout << "pinging server objects... " << flush;
- TestPrx obj;
+ TestIntfPrx obj;
- obj = TestPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
- obj = TestPrx::checkedCast(communicator->stringToProxy("Server2@Server2.Server"));
- obj = TestPrx::checkedCast(communicator->stringToProxy("IceBox1-Service1@IceBox1.Service1.Service1"));
- obj = TestPrx::checkedCast(communicator->stringToProxy("IceBox1-Service2@IceBox1Service2Adapter"));
- obj = TestPrx::checkedCast(communicator->stringToProxy("IceBox2-Service1@IceBox2.Service1.Service1"));
- obj = TestPrx::checkedCast(communicator->stringToProxy("IceBox2-Service2@IceBox2Service2Adapter"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("Server2@Server2.Server"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("IceBox1-Service1@IceBox1.Service1.Service1"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("IceBox1-Service2@IceBox1Service2Adapter"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("IceBox2-Service1@IceBox2.Service1.Service1"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("IceBox2-Service2@IceBox2Service2Adapter"));
cout << "ok" << endl;
cout << "testing server configuration... " << flush;
- obj = TestPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
test(obj->getProperty("Type") == "Server");
test(obj->getProperty("Name") == "Server1");
@@ -120,7 +121,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(obj->getProperty("Variable1") == "");
test(obj->getProperty("Variable2") == "");
- obj = TestPrx::checkedCast(communicator->stringToProxy("Server2@Server2.Server"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("Server2@Server2.Server"));
test(obj->getProperty("Target1") == "1");
test(obj->getProperty("Target2") == "1");
test(obj->getProperty("Variable") == "val0prop");
@@ -131,13 +132,13 @@ allTests(const Ice::CommunicatorPtr& communicator)
cout << "testing service configuration... " << flush;
- obj = TestPrx::checkedCast(communicator->stringToProxy("IceBox1-Service1@IceBox1.Service1.Service1"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("IceBox1-Service1@IceBox1.Service1.Service1"));
test(obj->getProperty("Service1.Type") == "standard");
test(obj->getProperty("Service1.ServiceName") == "Service1");
test(obj->getProperty("Service1.InheritedVariable") == "inherited");
- obj = TestPrx::checkedCast(communicator->stringToProxy("IceBox2-Service2@IceBox2Service2Adapter"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("IceBox2-Service2@IceBox2Service2Adapter"));
test(obj->getProperty("Service2.Type") == "freeze");
test(obj->getProperty("Service2.ServiceName") == "Service2");
@@ -151,7 +152,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
cout << "testing server options... " << flush;
- obj = TestPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
test(obj->getProperty("Test.Test") == "2");
test(obj->getProperty("Test.Test1") == "0");
@@ -169,11 +170,11 @@ allTestsWithTarget(const Ice::CommunicatorPtr& communicator)
cout << "pinging server objects... " << flush;
- TestPrx obj;
+ TestIntfPrx obj;
admin->setServerActivation("Server1", IcePack::Manual);
try
{
- obj = TestPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
test(false);
}
catch(const Ice::LocalException&)
@@ -181,15 +182,15 @@ allTestsWithTarget(const Ice::CommunicatorPtr& communicator)
}
admin->startServer("Server1");
- obj = TestPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("Server1@Server1.Server"));
test(obj->getProperty("Mode") == "manual");
- obj = TestPrx::checkedCast(communicator->stringToProxy("Server2@Server2.Server"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("Server2@Server2.Server"));
cout << "ok" << endl;
cout << "testing service configuration... " << flush;
- obj = TestPrx::checkedCast(communicator->stringToProxy("IceBox1-Service1@IceBox1.Service1.Service1"));
+ obj = TestIntfPrx::checkedCast(communicator->stringToProxy("IceBox1-Service1@IceBox1.Service1.Service1"));
test(obj->getProperty("Service1.DebugProperty") == "debug");
cout << "ok" << endl;
diff --git a/cpp/test/IcePack/deployer/Test.ice b/cpp/test/IcePack/deployer/Test.ice
index 04841b0d1db..f2cd7f239b8 100644
--- a/cpp/test/IcePack/deployer/Test.ice
+++ b/cpp/test/IcePack/deployer/Test.ice
@@ -10,11 +10,16 @@
#ifndef TEST_ICE
#define TEST_ICE
-interface Test
+module Test
+{
+
+interface TestIntf
{
void shutdown();
string getProperty(string name);
};
+};
+
#endif
diff --git a/cpp/test/IcePack/deployer/TestI.h b/cpp/test/IcePack/deployer/TestI.h
index d760ad720b7..dd80f510d91 100644
--- a/cpp/test/IcePack/deployer/TestI.h
+++ b/cpp/test/IcePack/deployer/TestI.h
@@ -12,7 +12,7 @@
#include <Test.h>
-class TestI : public Test
+class TestI : public ::Test::TestIntf
{
public:
diff --git a/cpp/test/IcePack/simple/AllTests.cpp b/cpp/test/IcePack/simple/AllTests.cpp
index eeb8592b0e6..4c5ac451805 100644
--- a/cpp/test/IcePack/simple/AllTests.cpp
+++ b/cpp/test/IcePack/simple/AllTests.cpp
@@ -13,8 +13,9 @@
#include <Test.h>
using namespace std;
+using namespace Test;
-TestPrx
+TestIntfPrx
allTests(const Ice::CommunicatorPtr& communicator)
{
cout << "testing stringToProxy... " << flush;
@@ -23,7 +24,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
cout << "ok" << endl;
cout << "testing checked cast... " << flush;
- TestPrx obj = TestPrx::checkedCast(base);
+ TestIntfPrx obj = TestIntfPrx::checkedCast(base);
test(obj);
test(obj == base);
cout << "ok" << endl;
@@ -35,7 +36,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
return obj;
}
-TestPrx
+TestIntfPrx
allTestsWithDeploy(const Ice::CommunicatorPtr& communicator)
{
cout << "testing stringToProxy... " << flush;
@@ -46,10 +47,10 @@ allTestsWithDeploy(const Ice::CommunicatorPtr& communicator)
cout << "ok" << endl;
cout << "testing checked cast... " << flush;
- TestPrx obj = TestPrx::checkedCast(base);
+ TestIntfPrx obj = TestIntfPrx::checkedCast(base);
test(obj);
test(obj == base);
- TestPrx obj2 = TestPrx::checkedCast(base2);
+ TestIntfPrx obj2 = TestIntfPrx::checkedCast(base2);
test(obj2);
test(obj2 == base2);
cout << "ok" << endl;
@@ -94,7 +95,7 @@ allTestsWithDeploy(const Ice::CommunicatorPtr& communicator)
cout << "testing whether server is still reachable... " << flush;
try
{
- obj = TestPrx::checkedCast(base);
+ obj = TestIntfPrx::checkedCast(base);
test(false);
}
catch(const Ice::NoEndpointException&)
@@ -102,7 +103,7 @@ allTestsWithDeploy(const Ice::CommunicatorPtr& communicator)
}
try
{
- obj2 = TestPrx::checkedCast(base2);
+ obj2 = TestIntfPrx::checkedCast(base2);
test(false);
}
catch(const Ice::NoEndpointException&)
@@ -113,7 +114,7 @@ allTestsWithDeploy(const Ice::CommunicatorPtr& communicator)
try
{
- obj = TestPrx::checkedCast(base);
+ obj = TestIntfPrx::checkedCast(base);
}
catch(const Ice::NoEndpointException&)
{
@@ -121,7 +122,7 @@ allTestsWithDeploy(const Ice::CommunicatorPtr& communicator)
}
try
{
- obj2 = TestPrx::checkedCast(base2);
+ obj2 = TestIntfPrx::checkedCast(base2);
}
catch(const Ice::NoEndpointException&)
{
diff --git a/cpp/test/IcePack/simple/Client.cpp b/cpp/test/IcePack/simple/Client.cpp
index 5ff301d7ac0..fbec566f23d 100644
--- a/cpp/test/IcePack/simple/Client.cpp
+++ b/cpp/test/IcePack/simple/Client.cpp
@@ -12,6 +12,7 @@
#include <Test.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
@@ -27,11 +28,11 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
}
}
- TestPrx obj;
+ TestIntfPrx obj;
if(!withDeploy)
{
- TestPrx allTests(const Ice::CommunicatorPtr&);
+ TestIntfPrx allTests(const Ice::CommunicatorPtr&);
obj = allTests(communicator);
cout << "shutting down server... " << flush;
@@ -40,7 +41,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
}
else
{
- TestPrx allTestsWithDeploy(const Ice::CommunicatorPtr&);
+ TestIntfPrx allTestsWithDeploy(const Ice::CommunicatorPtr&);
obj = allTestsWithDeploy(communicator);
}
diff --git a/cpp/test/IcePack/simple/Test.ice b/cpp/test/IcePack/simple/Test.ice
index 54953223857..2553165ab21 100644
--- a/cpp/test/IcePack/simple/Test.ice
+++ b/cpp/test/IcePack/simple/Test.ice
@@ -10,9 +10,14 @@
#ifndef TEST_ICE
#define TEST_ICE
-interface Test
+module Test
+{
+
+interface TestIntf
{
void shutdown();
};
+};
+
#endif
diff --git a/cpp/test/IcePack/simple/TestI.cpp b/cpp/test/IcePack/simple/TestI.cpp
index 10f2ecade27..698588264c5 100644
--- a/cpp/test/IcePack/simple/TestI.cpp
+++ b/cpp/test/IcePack/simple/TestI.cpp
@@ -10,6 +10,8 @@
#include <Ice/Ice.h>
#include <TestI.h>
+using namespace Test;
+
TestI::TestI(const Ice::ObjectAdapterPtr& adapter) :
_adapter(adapter)
{
diff --git a/cpp/test/IcePack/simple/TestI.h b/cpp/test/IcePack/simple/TestI.h
index 59790712392..c3cd07af279 100644
--- a/cpp/test/IcePack/simple/TestI.h
+++ b/cpp/test/IcePack/simple/TestI.h
@@ -12,7 +12,7 @@
#include <Test.h>
-class TestI : public Test
+class TestI : public ::Test::TestIntf
{
public:
diff --git a/cpp/test/IceSSL/certificateVerification/Client.cpp b/cpp/test/IceSSL/certificateVerification/Client.cpp
index 60505c4ba02..230e0b5734c 100644
--- a/cpp/test/IceSSL/certificateVerification/Client.cpp
+++ b/cpp/test/IceSSL/certificateVerification/Client.cpp
@@ -14,6 +14,7 @@
#include <Pinger.h>
using namespace std;
+using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
diff --git a/cpp/test/IceSSL/certificateVerification/Pinger.ice b/cpp/test/IceSSL/certificateVerification/Pinger.ice
index 8fbe12b4b27..e805fcb87c7 100644
--- a/cpp/test/IceSSL/certificateVerification/Pinger.ice
+++ b/cpp/test/IceSSL/certificateVerification/Pinger.ice
@@ -12,6 +12,9 @@
#include <Ice/BuiltinSequences.ice>
+module Test
+{
+
class KeyManager
{
void getServerCerts(out Ice::ByteSeq trusted, out Ice::ByteSeq untrusted);
@@ -25,4 +28,6 @@ class Pinger
void ping();
};
+};
+
#endif
diff --git a/cpp/test/IceSSL/certificateVerification/Server.cpp b/cpp/test/IceSSL/certificateVerification/Server.cpp
index b5bc762bd6a..fe4d689cc99 100644
--- a/cpp/test/IceSSL/certificateVerification/Server.cpp
+++ b/cpp/test/IceSSL/certificateVerification/Server.cpp
@@ -14,6 +14,7 @@
#include <Pinger.h>
using namespace std;
+using namespace Test;
class KeyManagerI : public KeyManager
{
diff --git a/cpp/test/IceStorm/federation/Event.ice b/cpp/test/IceStorm/federation/Event.ice
index 82f18651871..9167ec4f393 100644
--- a/cpp/test/IceStorm/federation/Event.ice
+++ b/cpp/test/IceStorm/federation/Event.ice
@@ -10,9 +10,14 @@
#ifndef EVENT_ICE
#define EVENT_ICE
+module Test
+{
+
interface Event
{
void pub(string data);
};
+};
+
#endif
diff --git a/cpp/test/IceStorm/federation/Publisher.cpp b/cpp/test/IceStorm/federation/Publisher.cpp
index 2ceac955796..0d7dbde7c6a 100644
--- a/cpp/test/IceStorm/federation/Publisher.cpp
+++ b/cpp/test/IceStorm/federation/Publisher.cpp
@@ -14,6 +14,7 @@
using namespace std;
using namespace Ice;
using namespace IceStorm;
+using namespace Test;
int
run(int argc, char* argv[], const CommunicatorPtr& communicator)
diff --git a/cpp/test/IceStorm/federation/Subscriber.cpp b/cpp/test/IceStorm/federation/Subscriber.cpp
index 14b8be18faa..d6a2b144d0a 100644
--- a/cpp/test/IceStorm/federation/Subscriber.cpp
+++ b/cpp/test/IceStorm/federation/Subscriber.cpp
@@ -24,6 +24,7 @@
using namespace std;
using namespace Ice;
using namespace IceStorm;
+using namespace Test;
class EventI : public Event
{
diff --git a/cpp/test/IceStorm/single/Publisher.cpp b/cpp/test/IceStorm/single/Publisher.cpp
index fd106e1e5e1..fb6dffc02e9 100644
--- a/cpp/test/IceStorm/single/Publisher.cpp
+++ b/cpp/test/IceStorm/single/Publisher.cpp
@@ -14,6 +14,7 @@
using namespace std;
using namespace Ice;
using namespace IceStorm;
+using namespace Test;
int
run(int argc, char* argv[], const CommunicatorPtr& communicator)
diff --git a/cpp/test/IceStorm/single/Single.ice b/cpp/test/IceStorm/single/Single.ice
index a4a1b8cecdf..22287c3698a 100644
--- a/cpp/test/IceStorm/single/Single.ice
+++ b/cpp/test/IceStorm/single/Single.ice
@@ -10,9 +10,14 @@
#ifndef SINGLE_ICE
#define SINGLE_ICE
+module Test
+{
+
interface Single
{
void event();
};
+};
+
#endif
diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp
index 70225e34b0a..f026681826a 100644
--- a/cpp/test/IceStorm/single/Subscriber.cpp
+++ b/cpp/test/IceStorm/single/Subscriber.cpp
@@ -22,6 +22,7 @@
using namespace std;
using namespace Ice;
using namespace IceStorm;
+using namespace Test;
class SingleI : public Single, public IceUtil::Mutex
{
diff --git a/cpp/test/Slice/errorDetection/CaseInsensitive.err b/cpp/test/Slice/errorDetection/CaseInsensitive.err
index e3accbf1dea..a307a69b466 100644
--- a/cpp/test/Slice/errorDetection/CaseInsensitive.err
+++ b/cpp/test/Slice/errorDetection/CaseInsensitive.err
@@ -49,23 +49,23 @@ CaseInsensitive.ice:194: redefinition of enumeration `en1' as enumerator
CaseInsensitive.ice:195: enumerator `EN1' differs only in capitalization from enumeration `en1'
CaseInsensitive.ice:196: redefinition of module `m1' as enumerator
CaseInsensitive.ice:197: enumerator `M1' differs only in capitalization from module `m1'
-CaseInsensitive.ice:215: interface name `base' is capitalized inconsistently with its previous name: `::xxx::xx::Base'
+CaseInsensitive.ice:215: interface name `base' is capitalized inconsistently with its previous name: `::Test::xxx::xx::Base'
CaseInsensitive.ice:215: redefinition of interface `Derived'
-CaseInsensitive.ice:223: exception name `E1' is capitalized inconsistently with its previous name: `::xxx::xx::e1'
-CaseInsensitive.ice:229: sequence name `S1' is capitalized inconsistently with its previous name: `::xxx::xx::s1'
-CaseInsensitive.ice:230: sequence name `xxx::xx::S1' is capitalized inconsistently with its previous name: `::xxx::xx::s1'
-CaseInsensitive.ice:231: sequence name `xxx::XX::s1' is capitalized inconsistently with its previous name: `::xxx::xx::s1'
-CaseInsensitive.ice:232: sequence name `xxx::XX::s1' is capitalized inconsistently with its previous name: `::xxx::xx::s1'
-CaseInsensitive.ice:238: interface name `derived' is capitalized inconsistently with its previous name: `::xxx::xx::Derived'
+CaseInsensitive.ice:223: exception name `E1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::e1'
+CaseInsensitive.ice:229: sequence name `S1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::s1'
+CaseInsensitive.ice:230: sequence name `xxx::xx::S1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::s1'
+CaseInsensitive.ice:231: sequence name `xxx::XX::s1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::s1'
+CaseInsensitive.ice:232: sequence name `xxx::XX::s1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::s1'
+CaseInsensitive.ice:238: interface name `derived' is capitalized inconsistently with its previous name: `::Test::xxx::xx::Derived'
CaseInsensitive.ice:247: parameter `Param' differs only in capitalization from parameter `param'
CaseInsensitive.ice:247: `Param' has changed meaning
-CaseInsensitive.ice:249: exception name `E1' is capitalized inconsistently with its previous name: `::e1'
-CaseInsensitive.ice:251: exception name `xxx::xx::E1' is capitalized inconsistently with its previous name: `::xxx::xx::e1'
-CaseInsensitive.ice:252: exception name `xxx::XX::e1' is capitalized inconsistently with its previous name: `::xxx::xx::e1'
-CaseInsensitive.ice:253: exception name `XXX::xx::e1' is capitalized inconsistently with its previous name: `::xxx::xx::e1'
-CaseInsensitive.ice:255: exception name `xxx::xx::E1' is capitalized inconsistently with its previous name: `::xxx::xx::e1'
-CaseInsensitive.ice:256: exception name `xxx::XX::e1' is capitalized inconsistently with its previous name: `::xxx::xx::e1'
-CaseInsensitive.ice:257: exception name `XXX::xx::e1' is capitalized inconsistently with its previous name: `::xxx::xx::e1'
+CaseInsensitive.ice:249: exception name `E1' is capitalized inconsistently with its previous name: `::Test::e1'
+CaseInsensitive.ice:251: exception name `Test::xxx::xx::E1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::e1'
+CaseInsensitive.ice:252: exception name `Test::xxx::XX::e1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::e1'
+CaseInsensitive.ice:253: exception name `Test::XXX::xx::e1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::e1'
+CaseInsensitive.ice:255: exception name `Test::xxx::xx::E1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::e1'
+CaseInsensitive.ice:256: exception name `Test::xxx::XX::e1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::e1'
+CaseInsensitive.ice:257: exception name `Test::XXX::xx::e1' is capitalized inconsistently with its previous name: `::Test::xxx::xx::e1'
CaseInsensitive.ice:258: operation name `op12' cannot be used as parameter name
CaseInsensitive.ice:259: parameter `OP13' differs only in capitalization from operation name `op13'
CaseInsensitive.ice:275: ambiguous multiple inheritance: `derived' inherits operations `op' and `OP', which differ only in capitalization, from unrelated base interfaces
diff --git a/cpp/test/Slice/errorDetection/CaseInsensitive.ice b/cpp/test/Slice/errorDetection/CaseInsensitive.ice
index fa0e5e674c9..30334202b64 100644
--- a/cpp/test/Slice/errorDetection/CaseInsensitive.ice
+++ b/cpp/test/Slice/errorDetection/CaseInsensitive.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
interface i1
{
@@ -227,8 +227,8 @@ sequence<long> s1;
struct s
{
S1 x;
- ::xxx::xx::S1 y;
- ::xxx::XX::s1 z;
+ xxx::xx::S1 y;
+ xxx::XX::s1 z;
xxx::XX::s1 w;
};
@@ -247,14 +247,14 @@ interface Foo
void op(long param, string Param);
void op2() throws e1;
void op3() throws E1;
- void op4() throws xxx::xx::e1;
- void op5() throws xxx::xx::E1;
- void op6() throws xxx::XX::e1;
- void op7() throws XXX::xx::e1;
- void op8() throws ::xxx::xx::e1;
- void op9() throws ::xxx::xx::E1;
- void op10() throws ::xxx::XX::e1;
- void op11() throws ::XXX::xx::e1;
+ void op4() throws Test::xxx::xx::e1;
+ void op5() throws Test::xxx::xx::E1;
+ void op6() throws Test::xxx::XX::e1;
+ void op7() throws Test::XXX::xx::e1;
+ void op8() throws ::Test::xxx::xx::e1;
+ void op9() throws ::Test::xxx::xx::E1;
+ void op10() throws ::Test::xxx::XX::e1;
+ void op11() throws ::Test::XXX::xx::e1;
void op12(long op12);
void op13(long OP13);
};
@@ -275,3 +275,5 @@ module CI
{
};
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/CaseSensitive.ice b/cpp/test/Slice/errorDetection/CaseSensitive.ice
index 32149de9f8c..eeaa418b1e3 100644
--- a/cpp/test/Slice/errorDetection/CaseSensitive.ice
+++ b/cpp/test/Slice/errorDetection/CaseSensitive.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
module M1
{
@@ -148,3 +148,5 @@ interface i15
{
void op(int Op);
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/ChangedMeaning.ice b/cpp/test/Slice/errorDetection/ChangedMeaning.ice
index 92d9c2cdbec..26ad276009e 100644
--- a/cpp/test/Slice/errorDetection/ChangedMeaning.ice
+++ b/cpp/test/Slice/errorDetection/ChangedMeaning.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
sequence<long> ls;
@@ -21,7 +21,7 @@ struct s00
struct s0
{
- ::ls ls; // OK
+ Test::ls ls; // OK
};
struct s1
@@ -32,7 +32,7 @@ struct s1
struct s2
{
- ::ls mem;
+ Test::ls mem;
long ls; // OK
};
@@ -67,9 +67,9 @@ module N
module O
{
- interface n1 extends ::i1 {};
+ interface n1 extends ::Test::i1 {};
interface i1 {}; // OK
- interface i2 extends ::i2 {}; // OK
+ interface i2 extends ::Test::i2 {}; // OK
};
@@ -136,19 +136,19 @@ struct x
struct y
{
- ::IS is; // OK, nothing introduced
+ ::Test::IS is; // OK, nothing introduced
};
interface Blah
{
- void op1() throws ::E::ee1; // Nothing introduced
+ void op1() throws ::Test::E::ee1; // Nothing introduced
void E(); // OK
void op2() throws E; // Changed meaning
};
interface Blah2
{
- void op3() throws ::E::ee1; // Nothing introduced
+ void op3() throws ::Test::E::ee1; // Nothing introduced
void E(); // OK
void op4() throws E::ee1; // Changed meaning
};
@@ -178,12 +178,14 @@ module M1
};
};
-const M1::M2::C MyConstant1 = M1::M2::C2; // OK
-const ::M1::M2::C MyConstant2 = M1::M2::C2; // OK
-const M1::M2::C MyConstant3 = ::M1::M2::C2; // OK
-const ::M1::M2::C MyConstant4 = ::M1::M2::C2; // OK
+const Test::M1::M2::C MyConstant1 = Test::M1::M2::C2; // OK
+const ::Test::M1::M2::C MyConstant2 = Test::M1::M2::C2; // OK
+const Test::M1::M2::C MyConstant3 = ::Test::M1::M2::C2; // OK
+const ::Test::M1::M2::C MyConstant4 = ::Test::M1::M2::C2; // OK
class smnpTest1Class
{
M1::smnpStruct smnpTest1Op1() throws M1::smnpException; // OK
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/ClassRedefinition.err b/cpp/test/Slice/errorDetection/ClassRedefinition.err
index ba6f871e04b..483961ff9e0 100644
--- a/cpp/test/Slice/errorDetection/ClassRedefinition.err
+++ b/cpp/test/Slice/errorDetection/ClassRedefinition.err
@@ -1,4 +1,2 @@
-ClassRedefinition.ice:17: redefinition of class `Class1'
-ClassRedefinition.ice:17: syntax error
-ClassRedefinition.ice:21: redefinition of class `Class2'
-ClassRedefinition.ice:21: syntax error
+ClassRedefinition.ice:18: redefinition of class `Class1'
+ClassRedefinition.ice:22: redefinition of class `Class2'
diff --git a/cpp/test/Slice/errorDetection/ClassRedefinition.ice b/cpp/test/Slice/errorDetection/ClassRedefinition.ice
index 3de8fb3b7f5..b87f2fbf706 100644
--- a/cpp/test/Slice/errorDetection/ClassRedefinition.ice
+++ b/cpp/test/Slice/errorDetection/ClassRedefinition.ice
@@ -9,14 +9,16 @@
-
-
+module Test
+{
interface Foo { long op(); };
-class Class1 implements Foo { byte b; };
-class Class1 implements Foo { long l; };
+class Class1 implements Foo { byte b; long l; };
class Class1;
+class Class1 implements Foo { long l; };
local class Class2 implements Foo { byte b; };
-local class Class2 implements Foo { byte b; };
local class Class2;
+local class Class2 implements Foo { byte b; };
+
+};
diff --git a/cpp/test/Slice/errorDetection/ConstDef.err b/cpp/test/Slice/errorDetection/ConstDef.err
index 27d7bcafe9e..7f8d198b784 100644
--- a/cpp/test/Slice/errorDetection/ConstDef.err
+++ b/cpp/test/Slice/errorDetection/ConstDef.err
@@ -9,7 +9,7 @@ ConstDef.ice:85: initializer of type `double' is incompatible with the type `sho
ConstDef.ice:86: type of initializer is incompatible with the type `int' of constant `ic7'
ConstDef.ice:87: initializer of type `bool' is incompatible with the type `long' of constant `ic8'
ConstDef.ice:89: missing constant name
-ConstDef.ice:92: enumerator `two' is not defined in enumeration `::color'
+ConstDef.ice:92: enumerator `two' is not defined in enumeration `::Test::color'
ConstDef.ice:93: type of initializer is incompatible with the type of constant `ic10'
ConstDef.ice:109: integer constant `-9223372036854775809' out of range
ConstDef.ice:110: integer constant `+9223372036854775808' out of range
diff --git a/cpp/test/Slice/errorDetection/ConstDef.ice b/cpp/test/Slice/errorDetection/ConstDef.ice
index c5861cbc604..29bda54871a 100644
--- a/cpp/test/Slice/errorDetection/ConstDef.ice
+++ b/cpp/test/Slice/errorDetection/ConstDef.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
//
// Basic checks (all OK)
@@ -27,7 +27,7 @@ const string stringconst = "X\aX\x00001X\rX\007\xffX\xffffX\xff7f";
const string stringconst2 = "Hello World!";
enum color { red, green, blue };
const color colorconst = blue;
-const ::color colorconst2 = ::green;
+const ::Test::color colorconst2 = ::Test::green;
//
// Checks for number formats (all OK)
@@ -73,7 +73,7 @@ const float nf10 = -1E+1f;
const float nf11 = -1E1F;
const XXX ic1 = 1; // no such type
-const long f11 = 1; // redifinition
+const long f11 = 1; // redefinition
const long F10 = 1; // case-insensitive redefinition
sequence<long> LS;
@@ -123,3 +123,5 @@ const byte b1 = 0; // OK
const byte b2 = 255; // OK
const byte b3 = -1; // underflow
const byte b4 = 256; // overflow
+
+};
diff --git a/cpp/test/Slice/errorDetection/DataMemberRedefinition.ice b/cpp/test/Slice/errorDetection/DataMemberRedefinition.ice
index 570c125b7dc..7049c527392 100644
--- a/cpp/test/Slice/errorDetection/DataMemberRedefinition.ice
+++ b/cpp/test/Slice/errorDetection/DataMemberRedefinition.ice
@@ -9,11 +9,13 @@
-
-
+module Test
+{
class C
{
int member;
int member;
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/DeclaratorMissing.ice b/cpp/test/Slice/errorDetection/DeclaratorMissing.ice
index 5a96a7b04cb..7074c6e24d8 100644
--- a/cpp/test/Slice/errorDetection/DeclaratorMissing.ice
+++ b/cpp/test/Slice/errorDetection/DeclaratorMissing.ice
@@ -9,11 +9,13 @@
-
-
+module Test
+{
interface Foo
{
int bar(string, long l, out bool, out short s);
int bar2(string s, long, out bool b, out short);
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/DerivedRedefinition.ice b/cpp/test/Slice/errorDetection/DerivedRedefinition.ice
index 24acc948e4b..959c114b71c 100644
--- a/cpp/test/Slice/errorDetection/DerivedRedefinition.ice
+++ b/cpp/test/Slice/errorDetection/DerivedRedefinition.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
interface Base1
{
@@ -49,3 +49,5 @@ class c1 { long l; };
class c2 extends c1 { double l; }; // error
class c3 extends c1 { double d; }; // OK
class c4 extends c3 { short l; }; // error, l in c1
+
+};
diff --git a/cpp/test/Slice/errorDetection/DictionaryRedefinition.ice b/cpp/test/Slice/errorDetection/DictionaryRedefinition.ice
index b7dac037a28..7807bc3e696 100644
--- a/cpp/test/Slice/errorDetection/DictionaryRedefinition.ice
+++ b/cpp/test/Slice/errorDetection/DictionaryRedefinition.ice
@@ -9,10 +9,12 @@
-
-
+module Test
+{
dictionary<int, long> Dictionary;
dictionary<int, long> Dictionary;
dictionary<int, long> foo;
dictionary<int, long> foo;
+
+};
diff --git a/cpp/test/Slice/errorDetection/DuplicateParameter.ice b/cpp/test/Slice/errorDetection/DuplicateParameter.ice
index 8891863793c..d1d68f5cb05 100644
--- a/cpp/test/Slice/errorDetection/DuplicateParameter.ice
+++ b/cpp/test/Slice/errorDetection/DuplicateParameter.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
class Foo
{
@@ -29,3 +29,5 @@ interface IFoo
string bar3(out string s, out int s);
string bar4(string s, int i, out int i);
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/DuplicateThrows.ice b/cpp/test/Slice/errorDetection/DuplicateThrows.ice
index 0fb106536c3..bbc2f42d067 100644
--- a/cpp/test/Slice/errorDetection/DuplicateThrows.ice
+++ b/cpp/test/Slice/errorDetection/DuplicateThrows.ice
@@ -9,12 +9,14 @@
-
-
+module Test
+{
exception e {};
exception e2 {};
-interface i2 { void op() throws ::e, e; };
-interface i3 { void op() throws e, ::e; };
+interface i2 { void op() throws ::Test::e, e; };
+interface i3 { void op() throws e, ::Test::e; };
interface i4 { void op() throws e2, e, e2; };
-interface i5 { void op() throws e2, e, e2, ::e; };
+interface i5 { void op() throws e2, e, e2, ::Test::e; };
+
+};
diff --git a/cpp/test/Slice/errorDetection/EnumEmpty.ice b/cpp/test/Slice/errorDetection/EnumEmpty.ice
index 7e796ae8b1e..4c906d71efe 100644
--- a/cpp/test/Slice/errorDetection/EnumEmpty.ice
+++ b/cpp/test/Slice/errorDetection/EnumEmpty.ice
@@ -9,7 +9,9 @@
-
-
+module Test
+{
enum foo {};
+
+};
diff --git a/cpp/test/Slice/errorDetection/EnumRedefinition.ice b/cpp/test/Slice/errorDetection/EnumRedefinition.ice
index 43adb38c70a..c11a8a68370 100644
--- a/cpp/test/Slice/errorDetection/EnumRedefinition.ice
+++ b/cpp/test/Slice/errorDetection/EnumRedefinition.ice
@@ -9,8 +9,10 @@
-
-
+module Test
+{
enum E1 { A, B, C };
enum E1 { D, E, F };
+
+};
diff --git a/cpp/test/Slice/errorDetection/EnumeratorRedefinition.ice b/cpp/test/Slice/errorDetection/EnumeratorRedefinition.ice
index ea25dffb995..eda84afc845 100644
--- a/cpp/test/Slice/errorDetection/EnumeratorRedefinition.ice
+++ b/cpp/test/Slice/errorDetection/EnumeratorRedefinition.ice
@@ -9,8 +9,10 @@
-
-
+module Test
+{
enum Enum1 { A, B, C };
enum Enum2 { A, B, E };
+
+};
diff --git a/cpp/test/Slice/errorDetection/IdentAsKeyword.err b/cpp/test/Slice/errorDetection/IdentAsKeyword.err
index 80a03b40ca4..7fd2910e0bd 100644
--- a/cpp/test/Slice/errorDetection/IdentAsKeyword.err
+++ b/cpp/test/Slice/errorDetection/IdentAsKeyword.err
@@ -18,11 +18,10 @@ IdentAsKeyword.ice:31: illegal identifier: `MOdule' differs from keyword `module
IdentAsKeyword.ice:31: keyword `module' cannot be used as class name
IdentAsKeyword.ice:32: keyword `module' cannot be used as class name
IdentAsKeyword.ice:32: redefinition of class `module'
-IdentAsKeyword.ice:32: syntax error
IdentAsKeyword.ice:34: illegal identifier: `extendS' differs from keyword `extends' only in capitalization
IdentAsKeyword.ice:34: keyword `extends' cannot be used as data member name
IdentAsKeyword.ice:35: redefinition of class `C'
-IdentAsKeyword.ice:35: syntax error
+IdentAsKeyword.ice:35: keyword `extends' cannot be used as data member name
IdentAsKeyword.ice:36: keyword `extends' cannot be used as data member name
IdentAsKeyword.ice:38: keyword `local' cannot be used as interface name
IdentAsKeyword.ice:39: illegal identifier: `Local' differs from keyword `local' only in capitalization
@@ -31,7 +30,6 @@ IdentAsKeyword.ice:41: keyword `Object' cannot be used as interface name
IdentAsKeyword.ice:42: illegal identifier: `object' differs from keyword `Object' only in capitalization
IdentAsKeyword.ice:42: keyword `Object' cannot be used as interface name
IdentAsKeyword.ice:42: redefinition of interface `Object'
-IdentAsKeyword.ice:42: syntax error
IdentAsKeyword.ice:43: keyword `long' cannot be used as interface name
IdentAsKeyword.ice:45: illegal identifier: `impLEments' differs from keyword `implements' only in capitalization
IdentAsKeyword.ice:45: keyword `implements' cannot be used as sequence name
diff --git a/cpp/test/Slice/errorDetection/IdentAsKeyword.ice b/cpp/test/Slice/errorDetection/IdentAsKeyword.ice
index 13df1383c65..a6e8bd9da81 100644
--- a/cpp/test/Slice/errorDetection/IdentAsKeyword.ice
+++ b/cpp/test/Slice/errorDetection/IdentAsKeyword.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
INTERFACE i { void op(); };
@@ -92,3 +92,5 @@ interface \_true; // Illegal leading underscore
interface b_; // Illegal underscore
interface tr_ue; // Illegal underscore
interface \tr_ue; // Illegal underscore
+
+};
diff --git a/cpp/test/Slice/errorDetection/IllegalDictionary.ice b/cpp/test/Slice/errorDetection/IllegalDictionary.ice
index ac12f2e1be3..790e9380d6c 100644
--- a/cpp/test/Slice/errorDetection/IllegalDictionary.ice
+++ b/cpp/test/Slice/errorDetection/IllegalDictionary.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
dictionary<bool, long> d1; // OK
dictionary<byte, long> d2; // OK
@@ -55,3 +55,5 @@ sequence<e> s4;
dictionary<s4, long> d10; // OK
dictionary<d9, long> b9; // Bad
+
+};
diff --git a/cpp/test/Slice/errorDetection/IllegalLocal.ice b/cpp/test/Slice/errorDetection/IllegalLocal.ice
index e6d60267696..851c9370004 100644
--- a/cpp/test/Slice/errorDetection/IllegalLocal.ice
+++ b/cpp/test/Slice/errorDetection/IllegalLocal.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
interface i1 {};
@@ -91,3 +91,5 @@ local class c7
{
void op() throws E; // error
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/IllegalUseOfKeyword.ice b/cpp/test/Slice/errorDetection/IllegalUseOfKeyword.ice
index 28c78d7020c..4d9b72cc064 100644
--- a/cpp/test/Slice/errorDetection/IllegalUseOfKeyword.ice
+++ b/cpp/test/Slice/errorDetection/IllegalUseOfKeyword.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
exception module;
exception void
@@ -74,3 +74,5 @@ enum E
interface Bletch extends Object
{
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/InterfaceMismatch.err b/cpp/test/Slice/errorDetection/InterfaceMismatch.err
index 96b6c3d2a00..0d97ece8a62 100644
--- a/cpp/test/Slice/errorDetection/InterfaceMismatch.err
+++ b/cpp/test/Slice/errorDetection/InterfaceMismatch.err
@@ -1,8 +1,6 @@
InterfaceMismatch.ice:16: class `Foo1' was declared as interface
InterfaceMismatch.ice:17: class `Foo1' was declared as interface
-InterfaceMismatch.ice:17: syntax error
InterfaceMismatch.ice:20: class `Foo2' was defined as interface
InterfaceMismatch.ice:23: interface `Foo3' was declared as class
InterfaceMismatch.ice:24: interface `Foo3' was declared as class
-InterfaceMismatch.ice:24: syntax error
InterfaceMismatch.ice:27: interface `Foo4' was defined as class
diff --git a/cpp/test/Slice/errorDetection/InterfaceMismatch.ice b/cpp/test/Slice/errorDetection/InterfaceMismatch.ice
index cedefd8e10c..d6f3d315d6b 100644
--- a/cpp/test/Slice/errorDetection/InterfaceMismatch.ice
+++ b/cpp/test/Slice/errorDetection/InterfaceMismatch.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
interface Foo1;
class Foo1;
@@ -25,3 +25,5 @@ interface Foo3 { void op(); };
class Foo4 { long l; };
interface Foo4;
+
+};
diff --git a/cpp/test/Slice/errorDetection/InterfaceRedefinition.err b/cpp/test/Slice/errorDetection/InterfaceRedefinition.err
index a35abc30814..6137478016e 100644
--- a/cpp/test/Slice/errorDetection/InterfaceRedefinition.err
+++ b/cpp/test/Slice/errorDetection/InterfaceRedefinition.err
@@ -1,4 +1,2 @@
InterfaceRedefinition.ice:16: redefinition of interface `Intf1'
-InterfaceRedefinition.ice:16: syntax error
InterfaceRedefinition.ice:20: redefinition of interface `Intf2'
-InterfaceRedefinition.ice:20: syntax error
diff --git a/cpp/test/Slice/errorDetection/InterfaceRedefinition.ice b/cpp/test/Slice/errorDetection/InterfaceRedefinition.ice
index ae6d1e04017..51a37fb37ba 100644
--- a/cpp/test/Slice/errorDetection/InterfaceRedefinition.ice
+++ b/cpp/test/Slice/errorDetection/InterfaceRedefinition.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
interface Intf1 { void op(); };
interface Intf1 { void op(); };
@@ -19,3 +19,5 @@ interface Intf1;
local interface Intf2 { void op(); };
local interface Intf2 { void op(); };
local interface Intf2;
+
+};
diff --git a/cpp/test/Slice/errorDetection/LocalMismatch.err b/cpp/test/Slice/errorDetection/LocalMismatch.err
index a5b22785fea..9ea56523855 100644
--- a/cpp/test/Slice/errorDetection/LocalMismatch.err
+++ b/cpp/test/Slice/errorDetection/LocalMismatch.err
@@ -1,16 +1,12 @@
LocalMismatch.ice:16: local `Intf1' was declared non-local
LocalMismatch.ice:17: local `Intf1' was declared non-local
-LocalMismatch.ice:17: syntax error
LocalMismatch.ice:20: local `Intf2' was defined non-local
LocalMismatch.ice:23: non-local `Intf3' was declared local
LocalMismatch.ice:24: non-local `Intf3' was declared local
-LocalMismatch.ice:24: syntax error
LocalMismatch.ice:27: non-local `Intf4' was defined local
LocalMismatch.ice:30: local `Class1' was declared non-local
LocalMismatch.ice:31: local `Class1' was declared non-local
-LocalMismatch.ice:31: syntax error
LocalMismatch.ice:34: local `Class2' was defined non-local
LocalMismatch.ice:37: non-local `Class3' was declared local
LocalMismatch.ice:38: non-local `Class3' was declared local
-LocalMismatch.ice:38: syntax error
LocalMismatch.ice:41: non-local `Class4' was defined local
diff --git a/cpp/test/Slice/errorDetection/LocalMismatch.ice b/cpp/test/Slice/errorDetection/LocalMismatch.ice
index e78ac93057f..66b89d97a5d 100644
--- a/cpp/test/Slice/errorDetection/LocalMismatch.ice
+++ b/cpp/test/Slice/errorDetection/LocalMismatch.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
interface Intf1;
local interface Intf1;
@@ -39,3 +39,5 @@ interface Class3 { void op(); };
local interface Class4 { void op(); };
interface Class4;
+
+};
diff --git a/cpp/test/Slice/errorDetection/NameCanNotBeUsed.ice b/cpp/test/Slice/errorDetection/NameCanNotBeUsed.ice
index 53591468854..695bf3638b8 100644
--- a/cpp/test/Slice/errorDetection/NameCanNotBeUsed.ice
+++ b/cpp/test/Slice/errorDetection/NameCanNotBeUsed.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
class Foo
{
@@ -38,3 +38,5 @@ struct SBar
{
string SBar;
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/NotClassOrInterface.ice b/cpp/test/Slice/errorDetection/NotClassOrInterface.ice
index f99a5d10d1a..0f95199bf1d 100644
--- a/cpp/test/Slice/errorDetection/NotClassOrInterface.ice
+++ b/cpp/test/Slice/errorDetection/NotClassOrInterface.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
sequence<int> Seq;
sequence<int> Sequence1;
@@ -20,3 +20,5 @@ interface BarIntf extends Seq { void op(); };
class BarClass1 extends Seq { long l; };
class BarClass2 implements Sequence1, Sequence2, Sequence3 { long l; };
class BarClass3 extends Seq implements Sequence1, Sequence2, Sequence3 { long l; };
+
+};
diff --git a/cpp/test/Slice/errorDetection/NotType.ice b/cpp/test/Slice/errorDetection/NotType.ice
index 2e7f7912737..c849c83c70d 100644
--- a/cpp/test/Slice/errorDetection/NotType.ice
+++ b/cpp/test/Slice/errorDetection/NotType.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
module Module1 { };
module Module2 { };
@@ -39,3 +39,5 @@ interface I
E foo(E e1; E e2);
void op();
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/OperationRedefinition.ice b/cpp/test/Slice/errorDetection/OperationRedefinition.ice
index 10c44d4c00e..3ba61282ded 100644
--- a/cpp/test/Slice/errorDetection/OperationRedefinition.ice
+++ b/cpp/test/Slice/errorDetection/OperationRedefinition.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
class C
{
@@ -18,3 +18,5 @@ class C
void operation();
long l;
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/ParamsOutOfOrder.ice b/cpp/test/Slice/errorDetection/ParamsOutOfOrder.ice
index 0d6df517a33..5dce166eb25 100644
--- a/cpp/test/Slice/errorDetection/ParamsOutOfOrder.ice
+++ b/cpp/test/Slice/errorDetection/ParamsOutOfOrder.ice
@@ -9,11 +9,13 @@
-
-
+module Test
+{
interface Foo
{
void bar(long l1, out long l2, long l3);
void baz(out long l2, long l3);
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/RedefinitionAsClass.ice b/cpp/test/Slice/errorDetection/RedefinitionAsClass.ice
index 08a43f09ad3..b46342569ef 100644
--- a/cpp/test/Slice/errorDetection/RedefinitionAsClass.ice
+++ b/cpp/test/Slice/errorDetection/RedefinitionAsClass.ice
@@ -9,11 +9,13 @@
-
-
+module Test
+{
sequence<int> Sequence1;
class Sequence1;
sequence<int> Sequence2;
class Sequence2 { };
+
+};
diff --git a/cpp/test/Slice/errorDetection/RedefinitionAsDataMember.ice b/cpp/test/Slice/errorDetection/RedefinitionAsDataMember.ice
index 3b0c2b89737..db13d1ae41b 100644
--- a/cpp/test/Slice/errorDetection/RedefinitionAsDataMember.ice
+++ b/cpp/test/Slice/errorDetection/RedefinitionAsDataMember.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
class C
{
@@ -18,3 +18,5 @@ class C
int operation;
long l;
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/RedefinitionAsDictionary.ice b/cpp/test/Slice/errorDetection/RedefinitionAsDictionary.ice
index 7f5178267c5..86fde40f4d2 100644
--- a/cpp/test/Slice/errorDetection/RedefinitionAsDictionary.ice
+++ b/cpp/test/Slice/errorDetection/RedefinitionAsDictionary.ice
@@ -9,8 +9,10 @@
-
-
+module Test
+{
class C { long l; };
dictionary<string, int> C;
+
+};
diff --git a/cpp/test/Slice/errorDetection/RedefinitionAsEnum.ice b/cpp/test/Slice/errorDetection/RedefinitionAsEnum.ice
index 469959e52c8..7fdd1172a02 100644
--- a/cpp/test/Slice/errorDetection/RedefinitionAsEnum.ice
+++ b/cpp/test/Slice/errorDetection/RedefinitionAsEnum.ice
@@ -9,8 +9,10 @@
-
-
+module Test
+{
class C { long l; };
enum C { A, B, C };
+
+};
diff --git a/cpp/test/Slice/errorDetection/RedefinitionAsEnumerator.ice b/cpp/test/Slice/errorDetection/RedefinitionAsEnumerator.ice
index ff518a042e1..24d3e7938e8 100644
--- a/cpp/test/Slice/errorDetection/RedefinitionAsEnumerator.ice
+++ b/cpp/test/Slice/errorDetection/RedefinitionAsEnumerator.ice
@@ -9,9 +9,11 @@
-
-
+module Test
+{
class C { long l; };
sequence<int> Seq;
enum E { C, Seq, blah };
+
+};
diff --git a/cpp/test/Slice/errorDetection/RedefinitionAsInterface.ice b/cpp/test/Slice/errorDetection/RedefinitionAsInterface.ice
index 3a102088a90..87328114ca6 100644
--- a/cpp/test/Slice/errorDetection/RedefinitionAsInterface.ice
+++ b/cpp/test/Slice/errorDetection/RedefinitionAsInterface.ice
@@ -9,11 +9,13 @@
-
-
+module Test
+{
sequence<int> Sequence1;
interface Sequence1;
sequence<int> Sequence2;
interface Sequence2 { };
+
+};
diff --git a/cpp/test/Slice/errorDetection/RedefinitionAsModule.ice b/cpp/test/Slice/errorDetection/RedefinitionAsModule.ice
index cbccdc98141..2a344572a6c 100644
--- a/cpp/test/Slice/errorDetection/RedefinitionAsModule.ice
+++ b/cpp/test/Slice/errorDetection/RedefinitionAsModule.ice
@@ -9,10 +9,12 @@
-
-
+module Test
+{
sequence<int> Seq;
-module Seq;
+module Seq { };
module Mod { };
module Mod { };
+
+};
diff --git a/cpp/test/Slice/errorDetection/RedefinitionAsOperation.ice b/cpp/test/Slice/errorDetection/RedefinitionAsOperation.ice
index 580ae63aac5..d89b89440c7 100644
--- a/cpp/test/Slice/errorDetection/RedefinitionAsOperation.ice
+++ b/cpp/test/Slice/errorDetection/RedefinitionAsOperation.ice
@@ -9,11 +9,13 @@
-
-
+module Test
+{
class C
{
int member;
void member();
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/RedefinitionAsSequence.ice b/cpp/test/Slice/errorDetection/RedefinitionAsSequence.ice
index 67755555dc2..87158594d01 100644
--- a/cpp/test/Slice/errorDetection/RedefinitionAsSequence.ice
+++ b/cpp/test/Slice/errorDetection/RedefinitionAsSequence.ice
@@ -9,8 +9,10 @@
-
-
+module Test
+{
class C { long l; };
sequence<int> C;
+
+};
diff --git a/cpp/test/Slice/errorDetection/SelfContainment.ice b/cpp/test/Slice/errorDetection/SelfContainment.ice
index f12132fffbd..c14e563303b 100644
--- a/cpp/test/Slice/errorDetection/SelfContainment.ice
+++ b/cpp/test/Slice/errorDetection/SelfContainment.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
struct x
{
@@ -18,11 +18,10 @@ struct x
x j; // Error
};
-// TODO: The following should cause an error, but doesn't. Need to add a check for that.
-#if 0
class y
{
int i;
- y j; // Error
+ y j; // OK
+};
+
};
-#endif
diff --git a/cpp/test/Slice/errorDetection/SequenceRedefinition.ice b/cpp/test/Slice/errorDetection/SequenceRedefinition.ice
index 42456734ab5..321ba837e4c 100644
--- a/cpp/test/Slice/errorDetection/SequenceRedefinition.ice
+++ b/cpp/test/Slice/errorDetection/SequenceRedefinition.ice
@@ -9,8 +9,10 @@
-
-
+module Test
+{
sequence<int> Seq;
sequence<int> Seq;
+
+};
diff --git a/cpp/test/Slice/errorDetection/StructMembers.ice b/cpp/test/Slice/errorDetection/StructMembers.ice
index 7cf23f0ac75..b9dd7fe9353 100644
--- a/cpp/test/Slice/errorDetection/StructMembers.ice
+++ b/cpp/test/Slice/errorDetection/StructMembers.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
struct s1 // Illegal empty struct
{
@@ -63,3 +63,5 @@ struct s11
{
long // Missing data member name
};
+
+};
diff --git a/cpp/test/Slice/errorDetection/Undefined.ice b/cpp/test/Slice/errorDetection/Undefined.ice
index af2982bc5af..395b99e9e1a 100644
--- a/cpp/test/Slice/errorDetection/Undefined.ice
+++ b/cpp/test/Slice/errorDetection/Undefined.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
sequence<Foo> FooSequence;
dictionary<Foo, Bar> FooBarDictionary;
@@ -18,3 +18,5 @@ interface BarIntf extends Foo { void op(); };
class BarClass1 extends Foo { long l; };
class BarClass2 implements Foo1, Foo2, Foo3 { long l; };
class BarClass3 extends Foo implements Foo1, Foo2, Foo3 { long l; };
+
+};
diff --git a/cpp/test/Slice/errorDetection/WrongProxyType.ice b/cpp/test/Slice/errorDetection/WrongProxyType.ice
index 042042c5a6d..2139895bcdc 100644
--- a/cpp/test/Slice/errorDetection/WrongProxyType.ice
+++ b/cpp/test/Slice/errorDetection/WrongProxyType.ice
@@ -9,8 +9,8 @@
-
-
+module Test
+{
sequence<int> Seq;
dictionary<Seq, int> Dict;
@@ -26,3 +26,5 @@ interface I
void f6(out Dict*);
void op();
};
+
+};