Bug #176

nameLookup.release(null) throws exception

Added by hackie about 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:10/23/2013
Priority:LowDue date:
Assignee:-% Done:

100%

Category:-Spent time:0.50 h
Target version:1.2.0

Description

The documentation about Lookup.release says:

"If provided object is null, method will simply return." 
(http://dev.root1.de/project-sites/simon/apidocs/de/root1/simon/Lookup.html#release%28java.lang.Object%29)

But when I call:

Lookup nameLookup = Simon.createNameLookup("localhost", 22222);
nameLookup.release(null);

I always get this exception:

Exception in thread "main" java.lang.IllegalArgumentException: the argument is not an instance of java.lang.reflect.Proxy. Object was: null
at de.root1.simon.Simon.getSimonProxy(Simon.java:801)
at de.root1.simon.AbstractLookup.release(AbstractLookup.java:97)
at de.root1.simon.NameLookup.release(NameLookup.java:23)
at simon_bugtest.ClientMain.main(ClientMain.java:14)

Unfortunately, the javadoc is for 1.2.0 and I tested with 1.1.4. But I wasn't able to find a newer version for downloading.

Associated revisions

Revision 680
Added by achristian about 5 years ago

fixed issue #176
- corrected javadoc
- improved exception messages
- organized imports

Revision 681
Added by achristian about 5 years ago

fixed issue #176
- corrected javadoc
- improved exception messages
- organized imports

History

#1 Updated by achristian about 5 years ago

  • Status changed from New to Resolved
  • Target version set to 1.2.0
  • % Done changed from 0 to 100

Problem solved. Tha javadoc was a bit outdated. Today, it cannot "just return", but return a boolean value.
So javadoc is now updated in 1.2.0-SNAPSHOT and 1.1.5-SNAPSHOT to the current situation.

#3 Updated by achristian almost 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF