title: Java Class.getSimpleName() and .getName() behaving differently on Cacao versus Sun Java
body: <p>Does any one have any idea why this would be happening?</p>
  
  <p>This is some modified lines from the Java DBus bindings (2.6)</p>
  
  <pre><code>  // don't let people import things which don't have a
    // valid D-Bus interface name
    System.out.println("type.getName: " + type.getName() + "   type.getSimpleName: " + type.getSimpleName() );
    if (type.getName().equals(type.getSimpleName()))  {
        throw new DBusException(_("DBusInterfaces cannot be declared outside a package: " + "type.getName: " + type.getName()
                + "   type.getSimpleName: " + type.getSimpleName() ));
    }      
  </code></pre>
  
  <p>Now check out the difference in output from Cacao (0.99.4) versus Sun 1.5</p>
  
  <pre><code>@ubuntu:~/tmp/cacao$ java -version
  java version "1.5.0_16"
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
  Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
  
  @ubuntu:~/tmp/cacao$ cacao -version
  java version "1.5.0"
  CACAO version 0.99.3+hg
  
  java -Djava.library.path=/usr/lib/classpath:/ho... DBusChat 
  
  type.getName: org.freedesktop.DBus   type.getSimpleName: DBus
  ...Exception in thread "main" org.freedesktop.dbus.exceptions.DBusExecutionException: Could not get owner of name 'framez.tests.dbus.DbusChatInterface': no such name
  </code></pre>
  
  <p>versus...</p>
  
  <pre><code> cacao -Djava.library.path=/usr/lib/classpath:/ho... DBusChat
   type.getName: org.freedesktop.DBus   type.getSimpleName: org.freedesktop.DBus
  </code></pre>
  
  <p>The Exception is unimportant - its being caused by this behavior... Any ideas? Or is this some weird bug with Cacao.</p>
  
  <p>Does anyone know if .getName() is a VM dependent thing? </p>
  
  <p>Info:</p>
  
  <p>GNU Classpath 0.98 on both JVMs
  DBus bindings 2.6</p>