Compile and run... options

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

Compile and run... options

Ben.BigHair
Hi All,

I am getting the following warning when I use the "Compile and  
run..." command.

Note: /Applications/ImageJ/plugins/ZooPhytoImage/ZPIvData.java uses  
unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

I assume that it is an unsafe type cast (I am using Vector class for  
storing info), but I would love to get the details. Is there a handy  
way to modify arguments (like -Xlint) to ImageJ's "Compile and  
Run..." command?  Or do I need to compile from the command line?

Thanks!

Ben




Ben Tupper
Bigelow Laboratory for Ocean Science
180 McKown Point Road
POB 475
West Boothbay Harbor, ME 04575
Reply | Threaded
Open this post in threaded view
|

Re: Compile and run... options

dscho
Hi,

On Wed, 14 Nov 2007, Ben Tupper wrote:

> I am getting the following warning when I use the "Compile and run..."
> command.
>
> Note: /Applications/ImageJ/plugins/ZooPhytoImage/ZPIvData.java uses unchecked
> or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
>
> I assume that it is an unsafe type cast (I am using Vector class for
> storing info), but I would love to get the details. Is there a handy way
> to modify arguments (like -Xlint) to ImageJ's "Compile and Run..."
> command?  Or do I need to compile from the command line?

At the moment, there is only a hack to generate debugging information: if
you hold down the Alt key when clicking on "Compile and Run", it pops up a
dialog asking you if you want debugging info.

I would imagine that this is the place to put in something like
-Xlint:unchecked (although you have to note that this option was not
present in older javac versions).

If you would like to test something like this, I'd be glad to send you an
ij.jar with this feature.

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

Re: Compile and run... options

Wayne Rasband
In reply to this post by Ben.BigHair
The Compile and Run command in ImageJ 1.39j uses the -Xlint:unchecked
option when running Java 1.5 or later. V1.39j also adds support for
scientific notation to the macro language, thanks to a patch
contributed by Johannes Schindelin.

On Nov 14, 2007, at 11:09 AM, Ben Tupper wrote:

> Hi All,
>
> I am getting the following warning when I use the "Compile and run..."
> command.
>
> Note: /Applications/ImageJ/plugins/ZooPhytoImage/ZPIvData.java uses
> unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
>
> I assume that it is an unsafe type cast (I am using Vector class for
> storing info), but I would love to get the details. Is there a handy
> way to modify arguments (like -Xlint) to ImageJ's "Compile and Run..."
> command?  Or do I need to compile from the command line?
>
> Thanks!
>
> Ben
>
>
>
>
> Ben Tupper
> Bigelow Laboratory for Ocean Science
> 180 McKown Point Road
> POB 475
> West Boothbay Harbor, ME 04575
>