Re: Strange exception when running checkstyle
Chris Burdess <[email protected]>
| Newsgroups | gmane.comp.java.classpath.extensions.xml |
|---|---|
| Message-ID | <[email protected]> |
David Brownell wrote: >>> The correct fix is to the application software which didn't >>> provide a base URI when building an InputSource. That'd be >>> some puppycrawl config loader code, I'd guess. >> >> The patch Mark posted earlier works great for me. What do you think >> when we just apply it ? > > I think the two bugs in that puppycrawl code should get > fixed. Then there will be no problems at all. > > - It's completely bogus to turn arbitrary warnings > into fatal errors as a default policy. > > - And it's equally bogus to call an XML parser with > borked inputs, expecting it guess correctly about > the base URI to use when resolving. Elsewhere in the GNU JAXP code, when we're given a relative URI in the absence of any other context, we assume it's a file URL relative to the current directory. I believe that other JAXP implementations also make this assumption. Would this solution be acceptable for Ælfred? -- Chris Burdess