• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Unresolved Method?

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic