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 2019/12/13 02:19:11 UTC

[GitHub] [incubator-daffodil] bsloane1650 opened a new pull request #301: DAFFODIL-2169 Add typesafty to our handling of infoset data values.

bsloane1650 opened a new pull request #301: DAFFODIL-2169 Add typesafty to our handling of infoset data values.
URL: https://github.com/apache/incubator-daffodil/pull/301
 
 
   For performance reasons, we have been making extensive use of
   AnyRef to store data values in our infoset, and throughout the runtime.
   This allows us to avoid boxing, but prevents the type system from validating
   that unexepected types to not infect our values.
   
   This commit introduces a value type, DataValue, which provides a 0 overhead (eg. no boxing)
   wrapper around AnyRef, while only allowing a limited number of types to populate it.
   
   In doing so, an unrelated bug of mixing Java and Scala BigInts was uncovered and corrected.
   Such a bug should not be much less likely to occur in the future.
   
   DAFFODIL-2169
   DAFFODIL-2188 (unconfirmed)

----------------------------------------------------------------
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