I am having problem using methods on class Hashtable in jdb using 1.4,
I get error "Arguments match no method" . I will appreciate if someone
can provide a work-around, besides using the 1.5 debugger.
Consider the following simple (empty) class: public class Empty {public
static void main(String[] args) {}}
Testing with jdb 1.4 results in error as described above:
$ jdb Empty
Initializing jdb ...
> stop in Empty.main
Deferring breakpoint Empty.main.
It will be set after the class is loaded.
> run
run Empty
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
VM Started: Set deferred breakpoint Empty.main
Breakpoint hit: "thread=main", Empty.main(), line=1 bci=0
1 public class Empty {public static void main(String[] args) {}}
main[1] print new java.util.Hashtable().get("key")
Arguments match no method
new java.util.Hashtable().get("key") = null
main[1] exit
But jdb from 1.5 works properly:
hpandya@Hemalp /c/java Wed Aug 10 11:54:03 2005
$ jdb5 Empty; bash
Initializing jdb ...
> stop in Empty.main
Deferring breakpoint Empty.main.
It will be set after the class is loaded.
> run
run Empty
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
VM Started: Set deferred breakpoint Empty.main
Breakpoint hit: "thread=main", Empty.main(), line=1 bci=0
1 public class Empty {public static void main(String[] args) {}}
main[1] print new java.util.Hashtable().get("key")
new java.util.Hashtable().get("key") = null
main[1] exit
hpandya@Hemalp /c/java Wed Aug 10 11:54:19 2005
$
If I do use debugger from 1.5, will the behavior be same as using the
1.4 debugger if I use it with source compiled with javac 1.4?
Thanks in advance,

Signature
hemal
Hemal Pandya - 11 Aug 2005 06:18 GMT
> I am having problem using methods on class Hashtable in jdb using 1.4,
> I get error "Arguments match no method" . I will appreciate if someone
> can provide a work-around, besides using the 1.5 debugger.
[...]
> main[1] print new java.util.Hashtable().get("key")
> Arguments match no method
Please help. I am badly stuck.
[...]