Bug or programming error?
I have the following in a class that extends java.util.Properties which extends java.util.Hashtable:
Idea marks "putAll(t)" red with "Cannot resolve symbol 'putAll'".
This code compiles fine with Ant and if I remove the 'super.' the error message goes away. What's the problem?
Please sign in to leave a comment.
No red marker and compiles ok here - idea 4.5.2, jdk 1.4.2_05.
Under 1.5 shows a 1.5 warning in the status bar, but compiles ok.
Don't suppose you could try jdk 1.3.1? I'm using 1.3.1_03.
Here's something else that's interesting. If I create a test class that extends Properties and try to use the command Code->Override Methods... the putAll method (along with several other Hashtable methods) doesn't show up as an option. But, if I open the Hashtable source it's there and it's public. Same with the API docs.
Ignore that part about removing "super." I see now that just makes it a recursive call. Duh!
Not me, sorry. Haven't touched a 1.3 jdk since the first 1.4 beta come out.
Another interesting observation. If I open the source for Properties, the import statement for Hashtable is marked as "Unused import statement". What the heck is going on here?
Wish I could say the same. Unfortunately, our piece of crap app server(iPlanet) is still running 1.3.1_03 and, according to our admin anyway, they don't support anything higher.
Can you please detach jdk sources and see if putAll is listed for decompiled
class file?
Eugene.
"Brad Lane" <no_mail@jetbrains.com> wrote in message
news:861806.1098727147708.JavaMail.itn@is.intellij.net...
extends Properties and try to use the command Code->Override Methods... the
putAll method (along with several other Hashtable methods) doesn't show up
as an option. But, if I open the Hashtable source it's there and it's
public. Same with the API docs.
Evgueny Vigdorchik wrote:
>>Here's something else that's interesting. If I create a test class that
Hmmm. Something I tried yesterday must have fixed it because it's fine
now. I tried what you mentioned yesterday and it didn't seem to help but
maybe I needed to shutdown IDEA and restart. Thanks anyway.