File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Unresolved Method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Unresolved Method?" Watch "Unresolved Method?" New topic
Author

Unresolved Method?

Jenn Person
Ranch Hand

Joined: Jan 16, 2005
Posts: 89
Hi,

I have the following class acting as a simple bean to store the details of written articles as shown below.



I have a model that uses this bean as follows:



My problem is that I cannot compile this model, I get the following error:


I don't know what is wrong with the setUpdated method. The other methods work, so I can only think that setUpdated is a reserved method name and cannot be used?

Any help with this would be greatly appreciated!
[ May 07, 2007: Message edited by: Jenn Person ]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Maybe an old version of WriteUpBean.class is in your classpath.
By the way, it's not recommended to put source files insides the "classes" directory.


[My Blog]
All roads lead to JavaRanch
Jenn Person
Ranch Hand

Joined: Jan 16, 2005
Posts: 89
Hi Satou,

I thought about what you said and deleted my WriteUpBean.class file. I then recompiled it and tried to then compile my WriteUpModel but I still get the same error.

I've even renamed the method in my WriteUpBean to something completely different, like getJenn() but it just brings the same error with the getJenn() method unresolved.

I'm at a complete loss here. Any ideas?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Also make sure there's not another WriteUpBean class wandering somewhere in your class path.
Jenn Person
Ranch Hand

Joined: Jan 16, 2005
Posts: 89
Hi Satou,

You're right, it was referring to another WriteUpBean.class file I had in another webapp!

Thank you so much for you help!
Jenn
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unresolved Method?