Click here to Skip to main content
16,005,389 members
Home / Discussions / Java
   

Java

 
AnswerRe: developing java components Pin
Cedric Moonen24-Sep-10 4:12
Cedric Moonen24-Sep-10 4:12 
AnswerRe: developing java components Pin
Nagy Vilmos24-Sep-10 4:46
professionalNagy Vilmos24-Sep-10 4:46 
GeneralRe: developing java components Pin
David Skelly24-Sep-10 5:53
David Skelly24-Sep-10 5:53 
GeneralRe: developing java components Pin
Nagy Vilmos24-Sep-10 5:56
professionalNagy Vilmos24-Sep-10 5:56 
QuestionJ2SE Pin
future383923-Sep-10 4:29
future383923-Sep-10 4:29 
AnswerRe: J2SE Pin
Nagy Vilmos23-Sep-10 5:24
professionalNagy Vilmos23-Sep-10 5:24 
AnswerRe: J2SE Pin
bilal.hobnail23-Sep-10 20:39
bilal.hobnail23-Sep-10 20:39 
QuestionReflective constructor matching problem Pin
Branislav Vidovic22-Sep-10 22:26
Branislav Vidovic22-Sep-10 22:26 
Hello guys,

I have been working on dynamic construction of object by using reflection (Java 6 SE platform). I have noticed for example that there is a method:
Class.getConstructor(Calss<?>[])
You pass the argument Class objects to this method and it gives you the corresponding constructor back. This works fine in most cases. But it has one problem. It dos not support autoboxing.
For example if the constructor of my class takes an int parameter and and i ask the Class object for this class for the constructor like this: Class.getConstrucort(new Class[]{Integer.class}) i will get the NoSuchMethodException indicating that there is no matching constructor. If i match the constructor argument in the class definition exactly to the parameter type given to the getCosntructor() method then i will have no problem.

Did anyone had any similar problems?
If any one has a solution or a workaround for this, i would need an advice.

Cheers
AnswerRe: Reflective constructor matching problem Pin
David Skelly23-Sep-10 3:58
David Skelly23-Sep-10 3:58 
GeneralRe: Reflective constructor matching problem Pin
Branislav Vidovic23-Sep-10 4:13
Branislav Vidovic23-Sep-10 4:13 
Questionjava code for antispam Pin
niteshtirkey22-Sep-10 12:56
niteshtirkey22-Sep-10 12:56 
AnswerRe: java code for antispam Pin
Gerben Jongerius22-Sep-10 21:50
Gerben Jongerius22-Sep-10 21:50 
QuestionHow to use the same session in Axis2 client program returned by the webservice ??? Pin
Ram Bonala21-Sep-10 21:11
Ram Bonala21-Sep-10 21:11 
QuestionMessage Removed Pin
20-Sep-10 15:16
sinron20-Sep-10 15:16 
AnswerRe: How to draw a table with draw2d in GEF? Pin
Cedric Moonen20-Sep-10 20:32
Cedric Moonen20-Sep-10 20:32 
GeneralRe: How to draw a table with draw2d in GEF? Pin
sinron21-Sep-10 1:03
sinron21-Sep-10 1:03 
GeneralRe: How to draw a table with draw2d in GEF? Pin
Cedric Moonen21-Sep-10 1:07
Cedric Moonen21-Sep-10 1:07 
GeneralRe: How to draw a table with draw2d in GEF? Pin
sinron21-Sep-10 7:05
sinron21-Sep-10 7:05 
GeneralRe: How to draw a table with draw2d in GEF? Pin
Cedric Moonen21-Sep-10 7:24
Cedric Moonen21-Sep-10 7:24 
GeneralRe: How to draw a table with draw2d in GEF? Pin
sinron21-Sep-10 18:46
sinron21-Sep-10 18:46 
QuestionMetrics in libraries Pin
jim1720-Sep-10 8:26
jim1720-Sep-10 8:26 
QuestionPlease help me to code for creating XMPP client .. server is openfire.. Pin
kpnithin20-Sep-10 2:42
kpnithin20-Sep-10 2:42 
AnswerRe: Please help me to code for creating XMPP client .. server is openfire.. Pin
Richard MacCutchan20-Sep-10 3:48
mveRichard MacCutchan20-Sep-10 3:48 
AnswerRe: Please help me to code for creating XMPP client .. server is openfire.. Pin
David Skelly20-Sep-10 5:50
David Skelly20-Sep-10 5:50 
AnswerRe: Please help me to code for creating XMPP client .. server is openfire.. Pin
Nagy Vilmos21-Sep-10 10:03
professionalNagy Vilmos21-Sep-10 10:03 

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.