From c54cf4f33f8c44fe96e41e3733d64efb07f614c4 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 3 Jun 2010 10:07:23 +0000 Subject: QPID-2640: Don't try to cast integer-like values during parsing; leave as strings and let the usage context determine the correct type to cast to. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950932 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/messaging/AddressParser.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/messaging/AddressParser.cpp b/cpp/src/qpid/messaging/AddressParser.cpp index 4f22410843..aea9118c3b 100644 --- a/cpp/src/qpid/messaging/AddressParser.cpp +++ b/cpp/src/qpid/messaging/AddressParser.cpp @@ -200,9 +200,6 @@ bool AddressParser::readSimpleValue(Variant& value) std::string s; if (readWord(s)) { value = s; - try { value = value.asInt32(); return true; } catch (const InvalidConversion&) {} - try { value = value.asInt64(); return true; } catch (const InvalidConversion&) {} - try { value = value.asDouble(); return true; } catch (const InvalidConversion&) {} return true; } else { return false; -- cgit v1.2.1