Re: support for Sun Java 6

[email protected] Fri, 23 Mar 2007 16:32:34 +0100 (CET)
Newsgroups gmane.emacs.jdee
Message-ID <15515489.1174663954133.JavaMail.ngmail@webmail10>
 > > For example when I'm compiling, I always get:
> > "The JDE does not recognize JDK 1.6 javac. Assume
> > JDK 1.5 javac?(yes or no)"
> > 
> > I know that there are easy workarounds for this
> > (cheating with the version number), but I would
> > really prefer a normal support.
> > 
> > Malte
> > 
> 
> Something like this might work (though I know you're
> really asking if jde itself will support this out of
> the box):
> 
> 
> (require 'jde-compile)
> (defclass jde-compile-javac-16 (jde-compile-javac-15)
>   ()
>   "Class of J2SDK 1.6 javac compilers.")
> 
> (defmethod initialize-instance ((this
> jde-compile-javac-16) &rest fields)
>  ;; Call parent initializer.
> 
>   (call-next-method)
> 
>   ;; Set compiler version.
>   (oset this version "1.6"))
> 
> (add-to-list 'jde-compile-javac-compilers
> (jde-compile-javac-16 "javac 1.6.x") t)

Yes, this looks very nice, ty. I think something like that should become part of JDE
as soon as possible! I mean, it may not make any difference in the usage compared
to cheating with the version number, but it makes things a lot easier for newbies
(like me).

Additional features of Sun Java 6 may be irrelevant for JDE, but still I would really
appreciate official support.

Btw. the support for the compiler output seems to be limited to version 1.4 - even
worse. :-(

Best wishes

Malte