From a488fa1e1fb7a6c952c50b759200d70093bba23d Mon Sep 17 00:00:00 2001 From: Brent Eagles Date: Thu, 9 Jun 2005 14:16:03 +0000 Subject: slice2javae changes to remove types that are unsupported by CLDC from generated code --- cpp/src/Slice/JavaUtil.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'cpp/src/Slice/JavaUtil.cpp') diff --git a/cpp/src/Slice/JavaUtil.cpp b/cpp/src/Slice/JavaUtil.cpp index 6c55124ec3b..d3c12473619 100644 --- a/cpp/src/Slice/JavaUtil.cpp +++ b/cpp/src/Slice/JavaUtil.cpp @@ -469,6 +469,11 @@ Slice::JavaGenerator::typeToString(const TypePtr& type, } else { + if(_featureProfile == Slice::IceE) + { + return "java.util.Hashtable"; + } + if(dictType.empty()) { StringList l = dict->getMetaData(); @@ -491,7 +496,7 @@ Slice::JavaGenerator::typeToString(const TypePtr& type, string listType = findMetaData(metaData); if(mode == TypeModeOut) { - if(listType.empty()) + if(listType.empty() || _featureProfile == Slice::IceE) { return getAbsolute(seq, package, "", "Holder"); } @@ -510,6 +515,11 @@ Slice::JavaGenerator::typeToString(const TypePtr& type, } else { + if(_featureProfile == Slice::IceE) + { + return typeToString(seq->type(), mode, package) + "[]"; + } + if(listType.empty()) { StringList l = seq->getMetaData(); -- cgit v1.2.3