• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Robustness in the SCJD

 
Samuel Ittera
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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?
 
Robert Bar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic