[ https://issues.apache.org/jira/browse/TAP5-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship moved TAPESTRY-2773 to TAP5-1375: ------------------------------------------------------ Component/s: (was: tapestry-core) tapestry-core Key: TAP5-1375 (was: TAPESTRY-2773) Project: Tapestry 5 (was: Tapestry) > TAPESTRY-2173 have side effect > ------------------------------ > > Key: TAP5-1375 > URL: https://issues.apache.org/jira/browse/TAP5-1375 > Project: Tapestry 5 > 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.