Java final project rants part 1

Dec 15, 2003 17:01

*cry* The wrong equals() function is being called. The equals(Object), which shouldn't be called, is called instead of the more specific equals(String), which shold be called. I know I overloaded it because the source says so _right_ _here_ *points to the overridden equals function*. The VM should figure out at run time that it can call the more specific function because it should know which class each object is. The debug info says that the classes are correct, and everything matches, but the VM simply isn't realizing what it knows. I think I'll try taking the code off the mac and running on the PC downstairs to see if that machine works any better. I am not pleased...

academic

Previous post Next post
Up