This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.3k
stars
1.96k
forks
source link
[ANDROID] Android incompatible method javax.xml.stream used causing Animal Sniffer test to fail on azure-core and azure-xml #36287
The method "javax.xml.stream.XMLStreamException" is used several time between this line and this line, As javax.xml.stream and its child classes are not Android compatible and this may cause issues.
The use of ReflectionSerializable in azure-core, as well as XmlReader, DefaultXmlReader and DefaultXmlWriter from azure-xml will result in compile time errors in Android
This is the output from animal-sniffer on azure-core
The method "javax.xml.stream.XMLStreamException" is used several time between this line and this line, As javax.xml.stream and its child classes are not Android compatible and this may cause issues.
The use of ReflectionSerializable in azure-core, as well as XmlReader, DefaultXmlReader and DefaultXmlWriter from azure-xml will result in compile time errors in Android
This is the output from animal-sniffer on azure-core
A possible fix would be to use an external dependency for android users e.g. https://mvnrepository.com/artifact/javax.xml.stream/stax-api/1.0-2 or https://mvnrepository.com/artifact/stax/stax as we have had some success with this in Android