You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2020/03/31 11:47:00 UTC

[GitHub] [incubator-daffodil] stevedlawrence opened a new pull request #344: Use reference equality for dsom shared keys

stevedlawrence opened a new pull request #344: Use reference equality for dsom shared keys
URL: https://github.com/apache/incubator-daffodil/pull/344
 
 
   By using the default object equality, it is possible that two chunks of
   XML could look exactly the same and will be shared, even though their
   contexts are different and should not be shared. By using reference
   equality, XML nodes that happen to have the exact same content but in
   different contexts will be seen as different and will not be shared.
   
   DAFFODIL-2308

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-daffodil] stevedlawrence merged pull request #344: Use reference equality for dsom shared keys

Posted by GitBox <gi...@apache.org>.
stevedlawrence merged pull request #344: Use reference equality for dsom shared keys
URL: https://github.com/apache/incubator-daffodil/pull/344
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-daffodil] mbeckerle commented on a change in pull request #344: Use reference equality for dsom shared keys

Posted by GitBox <gi...@apache.org>.
mbeckerle commented on a change in pull request #344: Use reference equality for dsom shared keys
URL: https://github.com/apache/incubator-daffodil/pull/344#discussion_r400984174
 
 

 ##########
 File path: daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SimilarModelGroupRoot.dfdl.xsd
 ##########
 @@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--
+  This schema contents references to two completely different elements
+  (simpleElement1 and simpleElement2), which are exactly the same (including
+  line numbers) except for the root elements and a differentiator. This schema
 
 Review comment:
   differentiator? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-daffodil] stevedlawrence commented on a change in pull request #344: Use reference equality for dsom shared keys

Posted by GitBox <gi...@apache.org>.
stevedlawrence commented on a change in pull request #344: Use reference equality for dsom shared keys
URL: https://github.com/apache/incubator-daffodil/pull/344#discussion_r401002548
 
 

 ##########
 File path: daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SimilarModelGroupRoot.dfdl.xsd
 ##########
 @@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--
+  This schema contents references to two completely different elements
 
 Review comment:
   Fixed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-daffodil] mbeckerle commented on a change in pull request #344: Use reference equality for dsom shared keys

Posted by GitBox <gi...@apache.org>.
mbeckerle commented on a change in pull request #344: Use reference equality for dsom shared keys
URL: https://github.com/apache/incubator-daffodil/pull/344#discussion_r400983446
 
 

 ##########
 File path: daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SimilarModelGroupRoot.dfdl.xsd
 ##########
 @@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--
+  This schema contents references to two completely different elements
 
 Review comment:
   Typo contents -> contains

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-daffodil] stevedlawrence commented on a change in pull request #344: Use reference equality for dsom shared keys

Posted by GitBox <gi...@apache.org>.
stevedlawrence commented on a change in pull request #344: Use reference equality for dsom shared keys
URL: https://github.com/apache/incubator-daffodil/pull/344#discussion_r401005115
 
 

 ##########
 File path: daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SimilarModelGroupRoot.dfdl.xsd
 ##########
 @@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--
+  This schema contents references to two completely different elements
+  (simpleElement1 and simpleElement2), which are exactly the same (including
+  line numbers) except for the root elements and a differentiator. This schema
 
 Review comment:
   Yeah, this isn't clear. The specific bug with link16 requires 1) the choice dispatch to be on the same line number with the same contents 2) in separate schemas (and thus a different parent element) 3) and a unique sibling element. Without these three things, the bug would not be triggered. I'll change "differentiator" to "a different sibling element".

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services