Hm, I looked at that code a couple of months back, and as far as I can
remember, "null" is what is returned in a static context: when in the main()
method, there is no 'this' to get. A second look seems to confirm that.

>From what I can understand of the code in beta2.2.9beta9.1, the relevant
method checks for the "null" and deals with it:

(defmethod jde-dbs-cmd-success-action ((this jde-dbs-get-this))
  (call-next-method)
  (let ((this-obj (oref this :data)))
    (oset
     this
     :result
     (if (string= (nth 0 this-obj) "null")
         (jde-dbs-java-null "null")
       (jde-dbs-java-udci
          "this object"
          :jtype (nth 0 this-obj)
          :id (nth 1 this-obj))))))

My hunch would be that the check for (string= (nth 0 this-obj) "null") for
some reason doesn't work, or else that there is a mismatch between what the
Java side of JDEbug returns for a "get this" command and what the lisp side
expects (are you sure you're 100% on 2.2.9beta9.1 or 2.2.8, and that there's
no byte-compiled stuff or something else somewhere?). Guess the only one who
can resolve this is Paul himself.

/ Petter

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: den 9 april 2002 19:49
> To: [EMAIL PROTECTED]
> Subject: [possible bug] debugging with non-debug libs
>
>
>
> If you debug an app compiled with debugging enabled, --but that app in
> turns uses a jar file that has no debug information, you hit the
> following:
>
> once you turn on local variables display,
> jde sends out the command for retrieving locals, gets a null and
> displays a lisp error in *Messages*.
> However the rest of jde then appears to think the debugger didn't
> respond.
>
> Here are the corresponding lines from *JDEBug* and *Messages*
>
>
> (jde-dbo-command-result
> 16 (list
> (cons (list "parser" "org.apache.xerces.dom3.as.DOMASBuilder")
> (list "org.apache.xerces.parsers.DOMASBuilderImpl" 416 nil))
> (cons (list "domImpl"
> "org.apache.xerces.dom3.as.DOMImplementationAS") (list
> "org.apache.xerces.dom.DOMImplementationImpl" 223 nil))
> (cons (list "argv" "java.lang.String[]") (list
> "java.lang.String[]" 217 nil))))
>
> JDE> 1 17 get_this 1 0
>
>
> (jde-dbo-command-result 17 (list "null"))
>
>
> *Messages*:
> (or object-p class-p) nil)
> Running dom.ASBuilder.
>
> --
> Best Regards,
> --raman
> ------------------------------------------------------------
> T. V. Raman:  PhD (Cornell University)
> IBM Research: Human Language Technologies
> Architect:    Conversational And Multimodal WWW Standards
> Phone:        1 (408) 927 2608
> Fax:        1 (408) 927 3012
> Email:        [EMAIL PROTECTED]
> WWW:      http://www.cs.cornell.edu/home/raman
> AIM:      TVRaman
> PGP:          http://emacspeak.sf.net/raman.asc
> Snail:        IBM Almaden Research Center,
>               650 Harry Road
>               San Jose 95120

Reply via email to