jde-import-find-and-import imports too much
[email protected] (Przemysław Wojnowski)
| Newsgroups | gmane.emacs.jdee.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! To reproduce eval this: (jde-import-find-and-import "set") This happens always when class in not already imported (eq to 'pass from verify function, which will be only called in interactive mode), so very often. Example scenario is when jde-complete calls jde-parse-eval-type-of, which subsequently calls jde-parse-get-qualified-name with import argument set to true, which calls jde-import-find-and-import. Quick fix is to revert to previous version of the function. IMHO many of JDE functions are too long and are trying to do too many different things (e.g. parse args, validate, resolve sth, etc.). For this reason they are hard to understand, test and debug. Another thing is that we need tests. At http://www.emacswiki.org/emacs/UnitTesting are described some testing libraries for emacs lisp. For java code we can use just JUnit or TestNG. Regards, Przemek ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf