Click here to Skip to main content
15,890,609 members
Home / Discussions / Java
   

Java

 
QuestionAnnotation Processor in Eclipse [Solved] Pin
Skippums9-Nov-11 6:50
Skippums9-Nov-11 6:50 
AnswerRe: Annotation Processor in Eclipse Pin
Nagy Vilmos10-Nov-11 5:09
professionalNagy Vilmos10-Nov-11 5:09 
GeneralRe: Annotation Processor in Eclipse Pin
Skippums10-Nov-11 10:51
Skippums10-Nov-11 10:51 
GeneralRe: Annotation Processor in Eclipse Pin
Nagy Vilmos10-Nov-11 10:54
professionalNagy Vilmos10-Nov-11 10:54 
AnswerRe: Annotation Processor in Eclipse Pin
Skippums10-Nov-11 12:52
Skippums10-Nov-11 12:52 
GeneralCode Analysis Pin
gamer11278-Nov-11 6:59
gamer11278-Nov-11 6:59 
GeneralRe: Code Analysis Pin
Nagy Vilmos8-Nov-11 7:06
professionalNagy Vilmos8-Nov-11 7:06 
Questionstring compare java problem Pin
Jim Crafton8-Nov-11 3:51
Jim Crafton8-Nov-11 3:51 
I wrote a simple logger. The logger is a singleton, with a couple of variables, specifically a filename, the file where the log will write to. When my logMsg() function is called I first create a temp string for hte file name that's based on the current date, something like "myApp-08-11-2011.log". If the temp filename string doesn't match the current file name (of the singleton instance), I close the existing FileWriter instance member variable of the singelton, and create a new FileWriter instance, and set the current filename of the log instance.

So you would expect, as the program runs, a new log file as the date changes to a new day correct? Something like:
myApp-06-11-2011.log
myApp-07-11-2011.log
myApp-08-11-2011.log

The log code is being used in apps that spit out quite a few messages over a 24 hour period. Instead what I get is
myApp-01-11-2011.log
myApp-04-11-2011.log
myApp-08-11-2011.log

Have I missed something absurdly obvious? I'm waiting to see the obvious and castigate myself for being an idiot, but I'm not seeing it so far...

¡El diablo está en mis pantalones! ¡Mire, mire!
SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
Personal 3D projects
Just Say No to Web 2 Point Blow


AnswerRe: string compare java problem Pin
Nagy Vilmos8-Nov-11 4:23
professionalNagy Vilmos8-Nov-11 4:23 
GeneralRe: string compare java problem Pin
Jim Crafton8-Nov-11 5:32
Jim Crafton8-Nov-11 5:32 
GeneralRe: string compare java problem Pin
Nagy Vilmos8-Nov-11 5:47
professionalNagy Vilmos8-Nov-11 5:47 
GeneralRe: string compare java problem Pin
Jim Crafton8-Nov-11 5:56
Jim Crafton8-Nov-11 5:56 
GeneralRe: string compare java problem Pin
Richard MacCutchan8-Nov-11 9:22
mveRichard MacCutchan8-Nov-11 9:22 
GeneralRe: string compare java problem Pin
Nagy Vilmos8-Nov-11 10:03
professionalNagy Vilmos8-Nov-11 10:03 
GeneralRe: string compare java problem Pin
Richard MacCutchan8-Nov-11 10:06
mveRichard MacCutchan8-Nov-11 10:06 
GeneralRe: string compare java problem Pin
anshul.zunke26-Nov-11 17:26
anshul.zunke26-Nov-11 17:26 
AnswerRe: string compare java problem Pin
jschell8-Nov-11 10:10
jschell8-Nov-11 10:10 
GeneralRe: string compare java problem Pin
TorstenH.8-Nov-11 19:07
TorstenH.8-Nov-11 19:07 
GeneralRe: string compare java problem Pin
anshul.zunke26-Nov-11 17:28
anshul.zunke26-Nov-11 17:28 
QuestionNurse Rostering using Clonal Selection Algorithm Pin
rohaya887-Nov-11 19:58
rohaya887-Nov-11 19:58 
JokeRe: Nurse Rostering using Clonal Selection Algorithm Pin
Gerben Jongerius7-Nov-11 20:30
Gerben Jongerius7-Nov-11 20:30 
AnswerHints Pin
TorstenH.7-Nov-11 21:43
TorstenH.7-Nov-11 21:43 
GeneralRe: Hints Pin
rohaya8810-Nov-11 3:21
rohaya8810-Nov-11 3:21 
AnswerRe: Nurse Rostering using Clonal Selection Algorithm Pin
Richard MacCutchan7-Nov-11 22:44
mveRichard MacCutchan7-Nov-11 22:44 
QuestionCompile-time Annotation Processing [Solved] Pin
Skippums7-Nov-11 16:35
Skippums7-Nov-11 16:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.