This is an exported version of the JIRA issue tracker. Please use the Google Code site to open new tickets or report updates to these existing tickets. Feel free to contact the mailing list with any questions.

[SJN-79] lookup return null instead throiwiung exceptions
Created: Tue, 5 Feb 2008 08:22:38 -0800 (PST)  Updated: Tue, 8 Apr 2008 03:55:32 -0700 (PDT)

Status:Closed
Project:Simple-JNDI
Component/s:
Affects Version/s:
Fix Version/s:0.11.3

Type:BugPriority: Major
Reporter:Ruslan ShevchenkoAssignee:Unassigned
Resolution:Won't Fix 
Environment:


 Description   
InMemoeryCotnext::lookup return null, instead throwing exceptions.
This is incorrect: JNDI specs say that exception must be throwed.
Comment by bayard [ Sun, 6 Apr 2008 00:28:02 -0700 (PDT) ]
Looking at http://java.sun.com/j2se/1.3/docs/guide/jndi/spec/spi/jndispiTOC.fm.html
and http://java.sun.com/j2se/1.4.2/docs/guide/jndi/spec/jndi/, I don't
see anything that states that.
Comment by rssh [ Sun, 6 Apr 2008 05:59:36 -0700 (PDT) ]
Really -- specs does not say this exactly, they say
[I't was a news for me]

Form other side: NameNotFoundException exists,
 all other known implementations throws this exception and example of JNDI provider in sun SPI scects
(see http://java.sun.com/j2se/1.5.0/docs/guide/jndi/spec/spi/spi-egs.frame.html#1000406) throws this exception.

Ok, so I think bug can be closed with or without fix, I will write a not to sun to clarify specification.
Comment by bayard [ Mon, 7 Apr 2008 12:53:14 -0700 (PDT) ]
Closing as wontfix as this seems like a bit of a backwards compat issue.
Comment by bayard [ Mon, 7 Apr 2008 12:53:35 -0700 (PDT) ]
Reopening to remind myself to either include it in release notes or add to javadoc.
Comment by bayard [ Tue, 8 Apr 2008 03:55:32 -0700 (PDT) ]
svn ci -m "Adding note on returning null not an exception as per SJN-79" src/java/org/osjava/sj/jndi/AbstractContext.java

Sending src/java/org/osjava/sj/jndi/AbstractContext.java
Transmitting file data .
Committed revision 2679.