McLeodMoores / xl4j

Framework for writing Excel Add-ins in Java
Other
7 stars 3 forks source link

What's the behaviour of using both @XLFunctions and @XLFunction? #143

Closed jimmoores closed 7 years ago

jimmoores commented 7 years ago

It's not documented and I have no idea what it does. What would be ideal is that default values are taken from @XLFunctions and @XLFunction overrides anything it wants different but I suspect that isn't the current behaviour.

jimmoores commented 7 years ago

Actually, that might not even be the behaviour we want, we may want to @XLFunctions to just skip anything with an @XLFunction annotation.

emcleod commented 7 years ago

Agreed. Currently a method will be registered twice. I'll change it to check if there's an @XLFunction annotation and if so, don't register again.