This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Unresolved Method?  RSS feed

 
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 ]
 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!