-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to check for the version of Saxon? #317
Comments
Hi Norm. What I used on a project is simply to use https://www.saxonica.com/documentation10/index.html#!javadoc/net.sf.saxon/Version |
I think that if you have more than one version of the Saxon classes on the classpath, it's very unpredictable which is going to be loaded, and in general you get a mixture of the two, which causes something random to fall over (eventually). It also means it's unpredictable which version of |
Yes, the version properties that @fgeorges identifies are the ones I had in mind. And I understand that it's unpredictable which will be found first by the classloader. If I expect 9 and get 9, or expect 10 and get 10, I'll assume things are going to be ok. Maybe they'll fall over later, that's as it will be. But if I expect 9 and get 10, or vice versa, I'd like to give a better error message than you get when the APIs collide. |
I guess my issue title is misleading. I know it's possible to check the version. What I am unsure about is whether I can put that check into the process before an API missmatch throws up a security exception or class not found error. |
Curiously, XML Calabash doesn't seem to know if it's the 9.9 edition or the 10.0 edition. |
If you try to combine Saxon 9 with the XML Calabash release for Saxon 10, or vice versa, bad things happen.
Is it possible to check this before the bad things happen?
The text was updated successfully, but these errors were encountered: