Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / August 2005

Tip: Looking for answers? Try searching our database.

problem using Hashtable.get in jdb 1.4.1_02, not in 1.5.0_04

Thread view: 
Hemal  Pandya - 10 Aug 2005 07:29 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.

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.

[...]


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.