<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Ivan,</div><div><br></div><div>This is because Furnace proxies the objects to avoid ClassCastExceptions. This shouldn't present a problem though. Are your addon dependencies correctly configured? I haven't seen your project yet, but if you could reproduce this error in a test that would be great.&nbsp;</div><div><br>Em 27/02/2014, às 18:24, "Ivan St. Ivanov" &lt;<a href="mailto:ivan.st.ivanov@gmail.com">ivan.st.ivanov@gmail.com</a>&gt; escreveu:<br><br></div><div><span></span></div><blockquote type="cite"><div><div dir="ltr">Hi folks,<div><br></div><div>I am testing my Forge 2.0 addon for SAP HANA Cloud. One of my commands (the setup command) installs the special facet that I have developer (SapHanaCloudFacet). Another command is annotated with&nbsp;@FacetConstraint(SapHanaCloudFacet.class). Even after I do setup, the other command is not enabled.</div>
<div><br></div><div>I started the debugger. The isInstalled method of my facet returned true. So I went on to see what happens with the isEnabled() method. I dug as deep as the&nbsp;AbstractFaceted::safeGetFacet(Class&lt;F&gt; type) method. What it does is: it searches all the installed facets and it checks whether the expected one is among them by calling type.isInstance(facet).</div>
<div><br></div><div>The problem in my case is that all the facet objects are actually proxies. So I expect the type to be&nbsp;com.sap.cloud.forge.SapHanaCloudFacet, but it is actually something like&nbsp;org.jboss.forge.addon.facets.AbstractFacet_$$_javassist_904cc85e-43dd-404a-846c-ed4709d14dea. Eventually, the isInstance method returns false.</div>
<div><br></div><div>Am I doing something wrong? The code of the addon can be found here:&nbsp;<a href="https://github.com/ivannov/addon-saphcp">https://github.com/ivannov/addon-saphcp</a>.</div><div><br></div><div>Thanks,</div>
<div>Ivan</div><div><br></div><div>P.S. Did you, guys, bring anything new to the Windows shell? I am still using my Linux VM for Forge development.</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>forge-dev mailing list</span><br><span><a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/forge-dev">https://lists.jboss.org/mailman/listinfo/forge-dev</a></span></div></blockquote></body></html>