TAPESTRY-2173 have side effect
------------------------------

                 Key: TAPESTRY-2773
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2773
             Project: Tapestry
          Issue Type: Bug
          Components: tapestry-core
            Reporter: Mihail Slobodyanuk
            Priority: Critical


Example:

@Entity
public class Ingredient
{
        public Ingredient(){}
        public Ingredient(String amount, String name)
        {
        .....
        }
        ..........
}

When sombody invoke BeanModel.newInstance for Ingredient entity it call 
ObjectLicator.autobuild and they try sustitute services as parametrs for 
non-default constructor Ingredient(String amount, String name). This operation 
leads to failure, and non sence for entities.

To resolve it i can mark default constructor @Inject annotation, but this way 
add dependency for entities library bu tapestry-annotation library.

Other way - improve Registry.autobuild method for trying all constructors, 
while instantiation do successfull.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to