sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Sanso <>
Subject Exception thrown from jcrPropertyMap.containsKey("")
Date Sat, 23 Jun 2012 16:45:10 GMT
Hi *,

lately updating the from version 2.0.10 to version  2.1 I hit
a little issue.

The same call to the JcrPropertyMap#containsKey that used to work in the former version fails
in the latest with stacktrace

java.lang.IllegalArgumentException: javax.jcr.RepositoryException: failed to resolve path
 relative to node /test1340468918488
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

if containsKey  empty string argument e.g. jcrPropertyMap.containsKey("").

Now, java.lang.IllegalArgumentException is a runtime exception so fair enough, but since I
have starting to grasp the essence of semantic versioning I wonder if this is "legitimate"
for the consumer.

Here some related notes:

- the package version is kept the same;version=2.1  in both
bundle version
- the containsKey method is not part of any API (AFAIK) but is part of the
package and is public
- the exception is thrown from the read method that now is public and declares the runtime
exception in the Java Doc (before the method was package protected)
- previously the Exception was "swallowed" in the read method

Again probably is not an issue at all but I am still "curious" to know WDYT :)



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message