Parse problems in @SuppressWarning tags of a source

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Parse problems in @SuppressWarning tags of a source

Ulli Hafner-2
Is there a way to get arround the following stacktraces when building a
plug-in?
Currently yhe javadoc builder seems to be not compatible with JDK 5
annotations like

@java.lang.SuppressWarnings()

It works only for

@SuppressWarnings()

Here is the stacktrace:

[INFO] [hpi:hpi]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to
C:\Data\Eclipse\Workspace\findbugs\target\fin
dbugs
[INFO] Assembling webapp findbugs in
C:\Data\Eclipse\Workspace\findbugs\target\f
indbugs
[INFO] Generating hpi
C:\Data\Eclipse\Workspace\findbugs\target\findbugs.hpi
[INFO] Generating
C:\Data\Eclipse\Workspace\findbugs\target\findbugs\META-INF\MA
NIFEST.MF
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] syntax error @[27,6] in
file:/C:/Data/Eclipse/Workspace/findbugs/src/main
/java/hudson/plugins/findbugs/FindBugsResult.java
[INFO]
------------------------------------------------------------------------
[INFO] Trace
com.thoughtworks.qdox.parser.ParseException: syntax error @[27,6] in
file:/C:/Da
ta/Eclipse/Workspace/findbugs/src/main/java/hudson/plugins/findbugs/Find
BugsResu
lt.java
        at
com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:638)
        at
com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:747)
        at
com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:619)
        at
com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:30
0)
        at
com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:31
6)
        at
com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:31
2)
        at
com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:
369)
        at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
Scanner.java:43)
        at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
Scanner.java:34)
        at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
Scanner.java:34)
        at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
Scanner.java:34)
        at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
Scanner.java:34)
        at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(Directory
Scanner.java:52)
        at
com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.jav
a:366)
        at
org.jvnet.hudson.maven.plugins.hpi.AbstractHpiMojo.findPluginClass(Ab
stractHpiMojo.java:844)
        at
org.jvnet.hudson.maven.plugins.hpi.AbstractHpiMojo.setAttributes(Abst
ractHpiMojo.java:818)
        at
org.jvnet.hudson.maven.plugins.hpi.HpiMojo.generateManifest(HpiMojo.j
ava:175)
        at
org.jvnet.hudson.maven.plugins.hpi.HpiMojo.performPackaging(HpiMojo.j
ava:134)
        at
org.jvnet.hudson.maven.plugins.hpi.HpiMojo.execute(HpiMojo.java:98)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Parse problems in @SuppressWarning tags of a source

Kohsuke Kawaguchi
Administrator

Yeah, I think now that we require Tiger, we should be able to get rid of
qdox altogether --- I'm really only using it for the @plugin javadoc
annotation, so I just need to change it to a real annotation.

Hafner Ullrich wrote:

> Is there a way to get arround the following stacktraces when building a
> plug-in?
> Currently yhe javadoc builder seems to be not compatible with JDK 5
> annotations like
>
> @java.lang.SuppressWarnings()
>
> It works only for
>
> @SuppressWarnings()
>
> Here is the stacktrace:
>
> [INFO] [hpi:hpi]
> [INFO] Exploding webapp...
> [INFO] Copy webapp webResources to
> C:\Data\Eclipse\Workspace\findbugs\target\fin
> dbugs
> [INFO] Assembling webapp findbugs in
> C:\Data\Eclipse\Workspace\findbugs\target\f
> indbugs
> [INFO] Generating hpi
> C:\Data\Eclipse\Workspace\findbugs\target\findbugs.hpi
> [INFO] Generating
> C:\Data\Eclipse\Workspace\findbugs\target\findbugs\META-INF\MA
> NIFEST.MF
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] syntax error @[27,6] in
> file:/C:/Data/Eclipse/Workspace/findbugs/src/main
> /java/hudson/plugins/findbugs/FindBugsResult.java
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> com.thoughtworks.qdox.parser.ParseException: syntax error @[27,6] in
> file:/C:/Da
> ta/Eclipse/Workspace/findbugs/src/main/java/hudson/plugins/findbugs/Find
> BugsResu
> lt.java
>         at
> com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:638)
>         at
> com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:747)
>         at
> com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:619)
>         at
> com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:30
> 0)
>         at
> com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:31
> 6)
>         at
> com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:31
> 2)
>         at
> com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:
> 369)
>         at
> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
> Scanner.java:43)
>         at
> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
> Scanner.java:34)
>         at
> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
> Scanner.java:34)
>         at
> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
> Scanner.java:34)
>         at
> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
> Scanner.java:34)
>         at
> com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(Directory
> Scanner.java:52)
>         at
> com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.jav
> a:366)
>         at
> org.jvnet.hudson.maven.plugins.hpi.AbstractHpiMojo.findPluginClass(Ab
> stractHpiMojo.java:844)
>         at
> org.jvnet.hudson.maven.plugins.hpi.AbstractHpiMojo.setAttributes(Abst
> ractHpiMojo.java:818)
>         at
> org.jvnet.hudson.maven.plugins.hpi.HpiMojo.generateManifest(HpiMojo.j
> ava:175)
>         at
> org.jvnet.hudson.maven.plugins.hpi.HpiMojo.performPackaging(HpiMojo.j
> ava:134)
>         at
> org.jvnet.hudson.maven.plugins.hpi.HpiMojo.execute(HpiMojo.java:98)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:443)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:539)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:480)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:459)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:278)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:143)
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Parse problems in @SuppressWarning tags of a source

Kohsuke Kawaguchi
Administrator
Kohsuke Kawaguchi wrote:
> Yeah, I think now that we require Tiger, we should be able to get rid of
> qdox altogether --- I'm really only using it for the @plugin javadoc
> annotation, so I just need to change it to a real annotation.

This is fixed in the maven-hpi-plugin 1.11 (and current trunk)

@plugin is no longer required --- we'll automatically pick the class
that extends from Plugin.

>
> Hafner Ullrich wrote:
>> Is there a way to get arround the following stacktraces when building a
>> plug-in?
>> Currently yhe javadoc builder seems to be not compatible with JDK 5
>> annotations like
>>
>> @java.lang.SuppressWarnings()
>>
>> It works only for
>>
>> @SuppressWarnings()
>>
>> Here is the stacktrace:
>>
>> [INFO] [hpi:hpi]
>> [INFO] Exploding webapp...
>> [INFO] Copy webapp webResources to
>> C:\Data\Eclipse\Workspace\findbugs\target\fin
>> dbugs
>> [INFO] Assembling webapp findbugs in
>> C:\Data\Eclipse\Workspace\findbugs\target\f
>> indbugs
>> [INFO] Generating hpi
>> C:\Data\Eclipse\Workspace\findbugs\target\findbugs.hpi
>> [INFO] Generating
>> C:\Data\Eclipse\Workspace\findbugs\target\findbugs\META-INF\MA
>> NIFEST.MF
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] syntax error @[27,6] in
>> file:/C:/Data/Eclipse/Workspace/findbugs/src/main
>> /java/hudson/plugins/findbugs/FindBugsResult.java
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> com.thoughtworks.qdox.parser.ParseException: syntax error @[27,6] in
>> file:/C:/Da
>> ta/Eclipse/Workspace/findbugs/src/main/java/hudson/plugins/findbugs/Find
>> BugsResu
>> lt.java
>>         at
>> com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:638)
>>         at
>> com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:747)
>>         at
>> com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:619)
>>         at
>> com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:30
>> 0)
>>         at
>> com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:31
>> 6)
>>         at
>> com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:31
>> 2)
>>         at
>> com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:
>> 369)
>>         at
>> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
>> Scanner.java:43)
>>         at
>> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
>> Scanner.java:34)
>>         at
>> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
>> Scanner.java:34)
>>         at
>> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
>> Scanner.java:34)
>>         at
>> com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory
>> Scanner.java:34)
>>         at
>> com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(Directory
>> Scanner.java:52)
>>         at
>> com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.jav
>> a:366)
>>         at
>> org.jvnet.hudson.maven.plugins.hpi.AbstractHpiMojo.findPluginClass(Ab
>> stractHpiMojo.java:844)
>>         at
>> org.jvnet.hudson.maven.plugins.hpi.AbstractHpiMojo.setAttributes(Abst
>> ractHpiMojo.java:818)
>>         at
>> org.jvnet.hudson.maven.plugins.hpi.HpiMojo.generateManifest(HpiMojo.j
>> ava:175)
>>         at
>> org.jvnet.hudson.maven.plugins.hpi.HpiMojo.performPackaging(HpiMojo.j
>> ava:134)
>>         at
>> org.jvnet.hudson.maven.plugins.hpi.HpiMojo.execute(HpiMojo.java:98)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> nManager.java:443)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:539)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:480)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:459)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures(DefaultLifecycleExecutor.java:311)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts(DefaultLifecycleExecutor.java:278)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> fecycleExecutor.java:143)
>>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment