-
Enhancement
-
Resolution: Not an Issue
-
P4
-
7
-
generic
-
generic
In JDK 7 ObjectName has acquired a set of static valueOf(...) methods which
throw IAE instead of the traditional checked MalformedObjectNameException.
This is very practical when you need to initialize a static variable of type
ObjectName - or when creating an ObjectName in a constructor, etc..
withDomain is also new in JDK 7, and could legitimately be used in static
initializers and constructors too - so it would make sense to make it
throw IAE instead of MalformedObjectNameException too.
throw IAE instead of the traditional checked MalformedObjectNameException.
This is very practical when you need to initialize a static variable of type
ObjectName - or when creating an ObjectName in a constructor, etc..
withDomain is also new in JDK 7, and could legitimately be used in static
initializers and constructors too - so it would make sense to make it
throw IAE instead of MalformedObjectNameException too.
- relates to
-
JDK-6768935 Clarify the behaviour of ObjectName pattern matching with regards to namespaces
-
- Closed
-