Click here to Skip to main content
15,888,048 members
Home / Discussions / Java
   

Java

 
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 
AnswerRe: Compile-time Annotation Processing Pin
Skippums15-Nov-11 14:32
Skippums15-Nov-11 14:32 
Figured it out: you can't access an annotation field of type Class<?> at compile-time. Attempting to do so results in a MirroredTypeException. Instead, pass the class in as a string containing the fully-qualified name of the type, and use the following code to get the TypeMirror for that type:
MyAnnotation annotation = elementWithAnnotation.getAnnotation(MyAnnotation.class);
// type is a string...
Element typeDeclaration = processingEnv.getElementUtils().getTypeElement(annotation.type());
if (typeDeclaration == null) {
  // The type could not be found
} else {
  // Do something with typeDeclaration.asType()
}
Hope this helps,
Sounds like somebody's got a case of the Mondays

-Jeff

QuestionTransfer File between client and server with TCP Socket Pin
lolostar7-Nov-11 5:39
lolostar7-Nov-11 5:39 
AnswerRe: Transfer File between client and server with TCP Socket Pin
Luc Pattyn7-Nov-11 5:58
sitebuilderLuc Pattyn7-Nov-11 5:58 
GeneralRe: Transfer File between client and server with TCP Socket Pin
David Skelly7-Nov-11 6:17
David Skelly7-Nov-11 6:17 
GeneralRe: Transfer File between client and server with TCP Socket Pin
Nagy Vilmos7-Nov-11 7:43
professionalNagy Vilmos7-Nov-11 7:43 
GeneralRe: Transfer File between client and server with TCP Socket Pin
lolostar7-Nov-11 6:26
lolostar7-Nov-11 6:26 
GeneralRe: Transfer File between client and server with TCP Socket Pin
Luc Pattyn7-Nov-11 6:38
sitebuilderLuc Pattyn7-Nov-11 6:38 
GeneralRe: Transfer File between client and server with TCP Socket Pin
Richard MacCutchan7-Nov-11 7:46
mveRichard MacCutchan7-Nov-11 7:46 
GeneralRe: Transfer File between client and server with TCP Socket Pin
Nagy Vilmos7-Nov-11 7:50
professionalNagy Vilmos7-Nov-11 7:50 
AnswerRe: Transfer File between client and server with TCP Socket Pin
Nagy Vilmos7-Nov-11 7:49
professionalNagy Vilmos7-Nov-11 7:49 
GeneralRe: Transfer File between client and server with TCP Socket Pin
lolostar7-Nov-11 8:28
lolostar7-Nov-11 8:28 
AnswerRe: Transfer File between client and server with TCP Socket Pin
David Skelly7-Nov-11 22:15
David Skelly7-Nov-11 22:15 
AnswerRe: Transfer File between client and server with TCP Socket Pin
anshul.zunke19-Nov-11 3:30
anshul.zunke19-Nov-11 3:30 
QuestionLicensing Java Application?!? Pin
Firo Atrum Ventus6-Nov-11 16:09
Firo Atrum Ventus6-Nov-11 16:09 
AnswerRe: Licensing Java Application?!? Pin
TorstenH.6-Nov-11 19:31
TorstenH.6-Nov-11 19:31 
GeneralRe: Licensing Java Application?!? Pin
Firo Atrum Ventus6-Nov-11 19:43
Firo Atrum Ventus6-Nov-11 19:43 
AnswerRe: Licensing Java Application?!? Pin
Bernhard Hiller6-Nov-11 22:46
Bernhard Hiller6-Nov-11 22:46 
GeneralRe: Licensing Java Application?!? Pin
Firo Atrum Ventus6-Nov-11 23:05
Firo Atrum Ventus6-Nov-11 23:05 

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.