[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Deprecated warnings

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: RE: Deprecated warnings
  • Date: Tue, 22 Oct 2013 18:14:11 +0000

> very strange; i suspect its not a java 6 vs java 7 problem, but an old
> jar file som

John,

That's very perceptive of you. I wish you'd been at the coffee shop on Saturday 
when I first encountered the problem.

I figured this out late last night and it was indeed a problem with an old jar 
lurking around in my laptop's Java development directory. The Panoply ant 
build.xml file had a wildcard in it, so compilation on the laptop was being 
made against a copy of NJ-all 4.3.15 rather than any of the three later 4.3 
version (16, 18 or 19) in the same directory. Years ago I found it useful to 
hold onto old NJ jars "just in case", and I never got out of the habit.

This apparently also explains why I was getting deprecated messages on the 
Variable.getDataType method, as those warnings disappeared once I fixed the ant 
file.

rbs

--
Robert B. Schmunk
Webmaster / Senior Systems Programmer
NASA Goddard Institute for Space Studies
2880 Broadway, New York, NY 10025