[kaffe] Hashtable.get() bug
Godmar Back
gback@stanford.edu
Thu, 6 Jun 2002 10:33:35 -0600 (MDT)
No kidding.
Maybe it would help if you constructed a Hashtable before calling get() on it.
- Godmar
>
> Hi,
>
> Hashtable.get() constantly throws NPE. I use current CVS (trunk, not the
> 1.0.7 brunch)... The platform is linux/x86.
>
> Here is an example code thet demonstrates that:
>
>
> import java.util.Hashtable;
> import java.lang.System;
>
> public class hashGet {
>
> public static Hashtable props;
> public static Object SIZE = new String("404444");
>
> public static void get(){
>
> System.out.println("Get 1 : " + SIZE );
> Object b = props.get(SIZE);
> System.out.println("Get 2");
> }
>
> public static void main(String[] args) {
>
> System.out.println("Main 1");
> try {
> get();
> }catch (Exception e){
> System.out.println("Hashtable.get throws : " + e);
> e.printStackTrace();
> }
> System.out.println("Main 2");
>
> }
>
> }
>
> --
> Alexander Popov
> Team Leader RTOS&JVM
> ProSyst Bulgaria
> s_popov@prosyst.bg
> s_popov@prosyst.com
> mobile: +35987663193
> icq: 29207350
>
>
> _______________________________________________
> kaffe mailing list
> kaffe@kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>