Community
Participate
Working Groups
The createScanner(..) methods that don't take a compliance level should use the workspace compliance as this is useful to be able to read surrogates. Surrogates are valid only in compliance >= 1.5.
Created attachment 165609 [details] Proposed fix Under testing.
Is the Unicode level the only change that's controlled with the compliance level? If not, this may surprise some existing clients. I guess these methods also used to work without a workspace, so please make sure such scenarios are not broken. The Javadoc should also tell about the new default (and the the paragraph about 'strictCommentMode' can be removed, since it's not implemented).
(In reply to comment #2) > Is the Unicode level the only change that's controlled with the compliance > level? If not, this may surprise some existing clients. yes. This is the only thing that the compliance checks. > I guess these methods also used to work without a workspace, so please make > sure such scenarios are not broken. This doesn't change with the proposed patch. > The Javadoc should also tell about the new default (and the the paragraph about > 'strictCommentMode' can be removed, since it's not implemented). I'll update the javadoc.
Created attachment 165615 [details] Updated patch with javadoc changes
Released for 3.6M7.
Verified for 3.6M7 though code inspection
Verified.