diff options
author | Michi Henning <michi@zeroc.com> | 2003-05-21 07:40:18 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-05-21 07:40:18 +0000 |
commit | 639318c3c26076d4fc985b27be705338ce14d001 (patch) | |
tree | 3f7d6b3bfc0945b4fa2ea59f066c67c5f0a2eddd /java/test/Ice/slicing/exceptions/Test.ice | |
parent | Sun C++ 5.5 port (diff) | |
download | ice-639318c3c26076d4fc985b27be705338ce14d001.tar.bz2 ice-639318c3c26076d4fc985b27be705338ce14d001.tar.xz ice-639318c3c26076d4fc985b27be705338ce14d001.zip |
- Fixed bugs relating to use of ends iomanipulator.
- Fixed code generation bug for dictionaries with a key type not derived
from Object.
- Added tests for dictionary slicing.
- Restructured slicing tests to use more intuitive file names and better
directory structure.
Diffstat (limited to 'java/test/Ice/slicing/exceptions/Test.ice')
-rw-r--r-- | java/test/Ice/slicing/exceptions/Test.ice | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/java/test/Ice/slicing/exceptions/Test.ice b/java/test/Ice/slicing/exceptions/Test.ice new file mode 100644 index 00000000000..27b2aa99bd8 --- /dev/null +++ b/java/test/Ice/slicing/exceptions/Test.ice @@ -0,0 +1,59 @@ +// ********************************************************************** +// +// Copyright (c) 2003 +// ZeroC, Inc. +// Billerica, MA, USA +// +// All Rights Reserved. +// +// Ice is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 2 as published by +// the Free Software Foundation. +// +// ********************************************************************** + +#ifndef TEST_ICE +#define TEST_ICE + +exception Base +{ + string b; +}; + +exception KnownDerived extends Base +{ + string kd; +}; + +exception KnownIntermediate extends Base +{ + string ki; +}; + +exception KnownMostDerived extends KnownIntermediate +{ + string kmd; +}; + +interface Test +{ + void baseAsBase() throws Base; + void unknownDerivedAsBase() throws Base; + void knownDerivedAsBase() throws Base; + void knownDerivedAsKnownDerived() throws KnownDerived; + + void unknownIntermediateAsBase() throws Base; + void knownIntermediateAsBase() throws Base; + void knownMostDerivedAsBase() throws Base; + void knownIntermediateAsknownIntermediate() throws KnownIntermediate; + void knownMostDerivedAsKnownIntermediate() throws KnownIntermediate; + void knownMostDerivedAsKnownMostDerived() throws KnownMostDerived; + + void unknownMostDerived1AsBase() throws Base; + void unknownMostDerived1AsKnownIntermediate() throws KnownIntermediate; + void unknownMostDerived2AsBase() throws Base; + + void shutdown(); +}; + +#endif |