aspose file tools
The moose likes XML and Related Technologies and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "" Watch "" New topic

opper bolt

Joined: Oct 14, 2010
Posts: 1
Trying out this piece of StAX code from cafeconleche:
XMLInputFactory factory = XMLInputFactory.newInstance();
if (!factory.isPropertySupported("")) {
System.err.println("This StAX implementation does not support validation.");
factory.setProperty("", Boolean.TRUE);
=> Exception in thread "main" java.lang.IllegalArgumentException: true value of isValidating not supported

That's a bug, no? Or is there an oracle lawyer that would say that an immutably false property is considered supported?
This is java 1.6.0_18.