Two suggestions to ImageJ

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Two suggestions to ImageJ

panovr
Hi,
  I have two suggestions to ImageJ:
  1. the show() method in the PlugInFrame skeleton code is deprecated in
JDK, may ImageJ use setVisible(true) instead?
  2. as sun will open source Java, in JDK 6.0 the package javax.tools has
supplied some interface to control javac compiler. Now ImageJ uses
tools.jar to access javac directly. Maybe ImageJ can add some classes or
methods to use the new javax.tools.JavaCompiler class and others to
compile plugins. More Java Compiler API infomation can be found at
http://download.java.net/jdk6/doc/api/.
  By the way, I have installed JDK 6.0 rc b100, and found that the
performance has some improved by using ImageJ's benchmark utility :)

Yili Zhao
Reply | Threaded
Open this post in threaded view
|

Re: Two suggestions to ImageJ

dscho
Hi,

On Wed, 4 Oct 2006, Yili Zhao wrote:

>   I have two suggestions to ImageJ:
>   1. the show() method in the PlugInFrame skeleton code is deprecated in
> JDK, may ImageJ use setVisible(true) instead?

You do know that ImageJ still compiles on very old JDK versions? And you
do know that what you propose breaks that?

>   2. as sun will open source Java,

I believe that when I have it. (That is, if you have the same
understanding of Open Source as I do, not something like the JRL or
similar "open".)

> in JDK 6.0 the package javax.tools has supplied some interface to
> control javac compiler. Now ImageJ uses tools.jar to access javac
> directly. Maybe ImageJ can add some classes or methods to use the new
> javax.tools.JavaCompiler class and others to compile plugins. More Java
> Compiler API infomation can be found at
> http://download.java.net/jdk6/doc/api/.

I am working on a machine which is not supported by Sun. So, my JDK is
IBMs 1.5 compatible one, and will be for a long time.

I would be _extremely_ unhappy if you just introduced a dependency on
java6 behind my back, making it impossible for me to continue working on
ImageJ.

>   By the way, I have installed JDK 6.0 rc b100, and found that the
> performance has some improved by using ImageJ's benchmark utility :)

Yes, I found that even Sun's Java 5 (where available) boosts performance
substantially.

But please let this be an option, not a dependency.

Ciao,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: Two suggestions to ImageJ

panovr
In reply to this post by panovr
Hi,
  I know ImageJ's also run on old JDK verions, what I mean ImageJ adds JDK
6 Compiler interface is on option like:
      if (isJava14() || isJava2()) {
           Use Tools.jar Compiler interface ;
      } else if (isJava6()) {
           use JDK 6.0 Compiler interface;
      }
  Thus, compatiblity can be reserved.

Sincerely
Yili Zhao