You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2019/12/06 19:55:32 UTC
[royale-asjs] branch develop updated: Fix: make sure AMFBinaryData
can work without XML if it is not used in a JS Application
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 4e20679 Fix: make sure AMFBinaryData can work without XML if it is not used in a JS Application
4e20679 is described below
commit 4e206799347cdd27508ef7d1071db800f5d1be03
Author: greg-dove <gr...@gmail.com>
AuthorDate: Sat Dec 7 08:54:54 2019 +1300
Fix: make sure AMFBinaryData can work without XML if it is not used in a JS Application
---
.../royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as
index a405a0d..47a07ff 100644
--- a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as
+++ b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as
@@ -238,12 +238,17 @@ class SerializationContext extends BinaryData implements IDataInput, IDataOutpu
return _err;
}
+ /**
+ * @royaleignorecoercion Class
+ */
public function SerializationContext(ownerReference:AMFBinaryData){
owner = ownerReference;
reset();
if (!_xmlChecked) {
_xmlChecked = true;
- _xmlClass = getDefinitionByName('XML') as Class;
+ try{
+ _xmlClass = getDefinitionByName('XML') as Class;
+ } catch(e:Error){}
}
super();
}