[ http://issues.apache.org/jira/browse/OJB-48?page=comments#action_12367436 ]
Michael Kröz commented on OJB-48: --------------------------------- Hi Tom, took some time. Obviously I have too many sideinterests. However. Now. I saw in your code, that you made a great effort to realize this thing. Thanks for this. I actually didn't knew, that one accesses the enclosing class with <enclosingClass>.this . Even java.sun.com is not very documented about this. Good that you found it. But unfortunately your stuff isn't working for me. I am struggling get my tests running with your stuff and therefore need your opinion about this. First, my tests produce basically two faults. One is an integrity violation, which means, that there is a reference that points to a not (yet) stored object. This occurs, when I wan't to store an enclosing class that references to an inner class. As you might unterstand, this, combined with the builtin reference <x>.this, introduces a circular reference and provocates an SQL error. I am not sure, wether your stuff handles circular references correctly. The other fault, I got, is a no useable constructor found exception, during the instantiation of the innermost class. I am not sure why, and I am not able to make it better. Probably you can have a look on my test and point out, why my stuff doesn't work. Furthermore, with the constructor arguments, I was somewhat naive with my test not to introduce real references, an important difference between java and an o/r mapper. Unfornutaley Stephans stuff uses real references for the initialization of his role-to-baseclass-playedBy reference, and this works via constructor arguments. So at least this is additionally needed. I will put my an jar to this issue, so that you can have an eye on my test, and I hope, you have some good answers to my comments, and we can solve this successsfully. Regards, Michael. > Feature Request: Support of non-static inner classes. > ----------------------------------------------------- > > Key: OJB-48 > URL: http://issues.apache.org/jira/browse/OJB-48 > Project: OJB > Type: New Feature > Components: PB-API > Versions: 1.1 CVS > Reporter: Michael Kröz > Assignee: Thomas Dudziak > Priority: Minor > Fix For: 1.1 CVS > Attachments: TestInnerClasses.java > > As important part of a project, talked about with Thomas Dudziak, > it would be nice to have the feature supporting non-static inner > classes of the style > class A { > class B { > } > } > This feature request will use another feature request, the support > of arguments for the constructor of a class. > Regards > Michael Kröz -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
