The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Create a Simple IoC Container Using Annotations
Subject:  typo correction
Date:  2008-05-15 06:02:52
From:  p_binod


Under Constructor based dependency injection, in the code for buildWithConstructor(), the following lines should
be changed.Note that names.length should be changed to types.lenght.

existing lines:

for( int i = 0; i < names.length; i++) {
params[ i] = context.get( types[ i]);
}


updated lines will be:

for( int i = 0; i < types.length; i++) {
params[ i] = context.get( types[ i]);
}



 Feed java.net RSS Feeds