Project

Profile

Help

Bug #5782

closed

ClassCastException casting SimpleTypeDefinition to AtomicType

Added by Rene Schulze over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema-Aware processing
Sprint/Milestone:
-
Start date:
2022-12-23
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
11
Fix Committed on Branch:
11
Fixed in Maintenance Release:
Platforms:
Java

Description

When calling "fn:data( $input as item()*) as xs:anyAtomicType* external;" with simpleType

<xsd:simpleType>
	<xsd:restriction base="xs:string">
		<xsd:whiteSpace value="collapse"/>
		<xsd:length value="20"/>
	</xsd:restriction>
</xsd:simpleType>

we are getting

java.lang.ClassCastException: class com.saxonica.ee.schema.sdoc.SimpleTypeDefinition cannot be cast to class net.sf.saxon.type.AtomicType (com.saxonica.ee.schema.sdoc.SimpleTypeDefinition and net.sf.saxon.type.AtomicType are in unnamed module of loader 'app')


Files

stacktrace_classcastexception.txt (1.45 KB) stacktrace_classcastexception.txt Rene Schulze, 2022-12-23 10:55
simple.xsd (614 Bytes) simple.xsd Rene Schulze, 2023-01-02 15:16

Please register to edit this issue

Also available in: Atom PDF