On Wednesday 26 February 2014 at 13:56, Juraci Paixão Kröhling wrote:
-----BEGIN PGP SIGNED MESSAGE-----Hash: SHA512Julien, All,During the merging for this feature, some test failures occurred.While debugging it, I've found out that on the mixin approach, thefollowing code renders to false, when it shouldn't:adapter.isAdapted(Visible.class)Changing it from Visible.class to RestrictAccess.class (which inheritsfrom Visible) makes the calling code to work. While this wouldn't besuch a big problem in GateIn itself, as there are only a couple ofplaces that makes such call, there's still a question on how thiscould affect eXo or other Gatein-based products. As this is not partof the public API, I don't think it would be a big problem, but itwould still be risky.Another question is whether said code should render "true". Myunderstanding is that it should indeed render to true, which thenmakes me wonder if there's something missing on the implementation orif there's a bug down there (on isAdapted method, or at the JCR level).If the current behavior of the Adapter code and JCR are indeedcorrect, as well as the implementation (ie: isAdapted should render"false"), then I'd say that it's better to go back to the previousapproach, having RestrictAccess independent from Visible. This way, wedon't affect current code that calls isAdapted(Visible.class).Best,Juca.On 02/18/2014 10:58 AM, Juraci Paixão Kröhling wrote:All,We are planning on merging this feature by Monday next week, ifthere are no objections. So, please let me know if there's anythingelse that would need a change/improvement.Thanks! Juca.On 02/11/2014 04:40 PM, Juraci Paixão Kröhling wrote:All,I've done the proposed changes, and the squashed new branch isavailable here:What I'm not sure, however, is whether I need to duplicate thefields from Visible (will check the JCR spec in the meantime),but it seems that's indeed a requirement, as I've seen it donein another inherited type (though, it wasn't a mixin).I'm specially interested in comments about the code onNavigationServiceImpl, RestrictAccess and gatein-nodetypes.xml,but a review on the other parts would be just as awesome :-)Juca. _______________________________________________ gatein-devmailing list gatein-dev@lists.jboss.org_______________________________________________ gatein-dev mailing-----BEGIN PGP SIGNATURE-----Version: GnuPG v2.0.22 (GNU/Linux)Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/iQEcBAEBCgAGBQJTDeR8AAoJECKM1e+fkPrXNWcH/1ZUsQVrexcrWvm7KOkiYPrFOU3nnS/d9c1KPC1/t3ZYG1OM0MuR7EprfBn50/oaex/6TptdAYSnCFXdxbytvilCZhutgsBeUkimWEDru3afxVniOFKmw1uHwLpka8wsiWFrgcj5J+dzOJN9MdgrYbomfiVoj/c4bAt8PGdQWJo4SIP97ccYUuVdf8Ls4E6MyAu9UC5UGUZF2Z8sF8A6dcWR1GGSRdZUvJfuEgvltERd9HWz9o2SuWpm1iQY+PDLloz1mpAYIhgreKushjXrjjWzTrqyA0SqPyVyiqEPrZbYi7bdhfUz4z/YFBYZxaQnX/iRHQz+dWI6eolx5PPG7sE==wgXm-----END PGP SIGNATURE-----