Is an interface or a Class? If it is a Class or abstract Class, does it have a default constructor?

On Fri, Feb 28, 2014 at 9:06 AM, Ivan St. Ivanov <> wrote:

Hi George,

OK, I will try to reproduce it. Could you tell me what kind of test should I write? Something that calls isEnabled or constraintsMet in a situation that it is assumed that they are true?


On Feb 28, 2014 12:56 AM, "George Gastaldi" <> wrote:
Hi Ivan,

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. 

Em 27/02/2014, às 18:24, "Ivan St. Ivanov" <> escreveu:

Hi folks,

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 @FacetConstraint(SapHanaCloudFacet.class). Even after I do setup, the other command is not enabled.

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 AbstractFaceted::safeGetFacet(Class<F> 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).

The problem in my case is that all the facet objects are actually proxies. So I expect the type to be, but it is actually something like org.jboss.forge.addon.facets.AbstractFacet_$$_javassist_904cc85e-43dd-404a-846c-ed4709d14dea. Eventually, the isInstance method returns false.

Am I doing something wrong? The code of the addon can be found here:


P.S. Did you, guys, bring anything new to the Windows shell? I am still using my Linux VM for Forge development.
forge-dev mailing list

forge-dev mailing list

forge-dev mailing list

Lincoln Baxter, III
"Simpler is better."