• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Robustness in the SCJD

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I was wondering how robust should the application be. Here is an example:

the suncertify.properties file is read only and i am attempting to save the configuration.

1. should i try to make the file not read only? (file.setReadOnly(false))
2. it is not gaurnteed the above mentioned method will work due to user access and privlages.

Anybody have an idea what I should do in this case? or should i just assume the user will have access to modify the read only property the user creates and the user has privlages to create files?
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

IMO it's sufficient to show a warning (not an error), for example: " Your current settings cannot be saved (blabla) Check whether configuration file is in neither hidden or read-only mode (blabla).

regards,
Robert
 
reply
    Bookmark Topic Watch Topic
  • New Topic