You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike McGann (Jira)" <ji...@apache.org> on 2023/02/17 18:20:00 UTC

[jira] [Created] (DAFFODIL-2795) contentLength/valueLength of a literal throws a ClassCastException

Mike McGann created DAFFODIL-2795:
-------------------------------------

             Summary: contentLength/valueLength of a literal throws a ClassCastException
                 Key: DAFFODIL-2795
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2795
             Project: Daffodil
          Issue Type: Bug
            Reporter: Mike McGann


The first argument to contentLength and valueLength should be a node, but if passed a literal string, the following exception is thrown:

java.lang.ClassCastException: class org.apache.daffodil.core.dpath.LiteralExpression cannot be cast to class org.apache.daffodil.core.dpath.PathExpression (org.apache.daffodil.core.dpath.LiteralExpression and org.apache.daffodil.core.dpath.PathExpression are in unnamed module of loader 'app')





--
This message was sent by Atlassian Jira
(v8.20.10#820010)