I'm having problems using Java annotations in the F4 IDE.
Specifically I'm looking at building a Tapestry 5 web application.
I've added the "tapestry5-annontations-5.3.1.jar" to both the Java / "Fantom Native Libraries" Build Path and to the Fantom Build Path but still the following:
using [java] org.apache.tapestry5.ioc.annotations::Inject as Inject
class Index {
@Inject
Wotever? ever
}
gives an error of
Not a facet type '[java]org.apache.tapestry5.ioc.annotations::Inject'
I've looked at AnnotationsTest in the Fantom download and I can't see any difference between that and the above.
Also Ticket #668 says Java annotations were added in v1.0.55 and F4 says I'm using v1.0.60 so this should work, right?
Any pointers as to what I'm doing wrong gratefully received!
Steve.
SlimerDudeSun 5 Feb 2012
This seems to be an F4 issue as it all builds nicely from the command line.
Also F4 doesn't like you using the Type.facet() method as it thinks facet is a reserved word.
If everything works fine from command line, you can configure to use command-line builder in project settings (right-click project -> Properties -> Fantom -> Compiler -> Enable project specific settings -> Use external compiler).
SlimerDude Thu 2 Feb 2012
Hi,
I'm having problems using Java annotations in the F4 IDE.
Specifically I'm looking at building a Tapestry 5 web application.
I've added the "tapestry5-annontations-5.3.1.jar" to both the Java / "Fantom Native Libraries" Build Path and to the Fantom Build Path but still the following:
gives an error of
I've looked at
AnnotationsTest
in the Fantom download and I can't see any difference between that and the above.Also Ticket #668 says Java annotations were added in v1.0.55 and F4 says I'm using v1.0.60 so this should work, right?
Any pointers as to what I'm doing wrong gratefully received!
Steve.
SlimerDude Sun 5 Feb 2012
This seems to be an F4 issue as it all builds nicely from the command line.
Also F4 doesn't like you using the
Type.facet()
method as it thinksfacet
is a reserved word.ivan Sun 5 Feb 2012
Hi SlimerDude,
I have tracked this issue in our Jira here.
If everything works fine from command line, you can configure to use command-line builder in project settings (right-click project -> Properties -> Fantom -> Compiler -> Enable project specific settings -> Use external compiler).
SlimerDude Sun 5 Feb 2012
Nice one Ivan, that seems to work!
Thanks for the Jira too.