Dolda2000 GitWeb
/
jsvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4126b9f
)
Fixed potential race condition in Html.validate().
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 14 Dec 2009 02:55:40 +0000
(
03:55
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 14 Dec 2009 02:55:40 +0000
(
03:55
+0100)
src/dolda/jsvc/next/Html.java
patch
|
blob
|
blame
|
history
diff --git
a/src/dolda/jsvc/next/Html.java
b/src/dolda/jsvc/next/Html.java
index
4c5b417
..
978cad2
100644
(file)
--- a/
src/dolda/jsvc/next/Html.java
+++ b/
src/dolda/jsvc/next/Html.java
@@
-45,7
+45,10
@@
public class Html extends DocBuffer {
}
public void validate() {
- Validator val = schema.newValidator();
+ Validator val;
+ synchronized(schema) {
+ val = schema.newValidator();
+ }
try {
val.validate(new javax.xml.transform.dom.DOMSource(doc));
} catch(org.xml.sax.SAXException e) {