Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unresolved Method?

 
Jenn Person
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jenn Person
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also make sure there's not another WriteUpBean class wandering somewhere in your class path.
 
Jenn Person
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic