QName#valueOf should throw IllegalArgumentException in following test case.
----
import javax.xml.namespace.*;
class Test {
static public void main(String args[]){
try{
QName.valueOf("{http://java.sun.com}");
}catch(IllegalArgumentException e){
e.printStackTrace();
}
}
}
----
But the exception is not thrown in JDK 1.5 , 6 niether 7.
----
import javax.xml.namespace.*;
class Test {
static public void main(String args[]){
try{
QName.valueOf("{http://java.sun.com}");
}catch(IllegalArgumentException e){
e.printStackTrace();
}
}
}
----
But the exception is not thrown in JDK 1.5 , 6 niether 7.