Method not "seen" by anything--weird

Subject: Method not "seen" by anything--weird

I've been coding in Java for a long time, and I've never seen this before. I have a method. Last week, the method compiled and was called when I put its jar into the lib directory of an application. I took the method out, reworked a tricky algorithm, and then put a new version of the method back in. For reasons I cannot comprehend, the compiler has no problems with it (and I've proved that by putting goofy code in the middle of the method, which does cause a syntax error). Yet, the calling class, even though I've been using this same lib structure for over two years, is not seeing the method. Even my IDE (IDEA), even though it can see syntax problems if I put goofy code in, does not list the method in its list of all the methods in the class.

I tried creating another method, which also compiles. Yet, when I try to compile the caller after copying over the jar, the caller still won't compile. This is the weirdest thing because I've been doing the same basic thing, same packages, same files, for over two years. What might make a method "invisible"? Here is the stripped-down method I'm trying to get recognized:

public BigDecimal getTotalPastDueBalance()

{

returnnew BigDecimal(0);

}

.

I know that's a twerpy method for right now, but I've cut it down just to try to figure this weirdness out. I've looked at the jars and their time stamps in the caller's lib directory. The date and time are correct. Any guesses for what to try? Thanks.

[1716 byte] By [klitwaka] at [2007-11-27 9:33:45]
# 1
Restart the server.
puckstopper31a at 2007-7-12 22:56:00 > top of Java-index,Java Essentials,Java Programming...
# 2
It would sound like the caller is still seeing an old version of the .class file. I can't tell you what you should do about it. PS's suggestion is worth trying.
OleVVa at 2007-7-12 22:56:00 > top of Java-index,Java Essentials,Java Programming...