Compile Error in Eclipse when creating Hello World Plugin

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile Error in Eclipse when creating Hello World Plugin

Ulli Hafner-2
Hi,

I just tried to create a plugin using the steps described in the
tutorial. When opening the project in Eclipse 3.3 (after removing the
src/main/resources folder from the source files) I still get the
follwing compile error:

>>> The type Iterable_ is not generic; it cannot be parameterized with
arguments <T>

The type is part of the referenced libraries
-
M2_REPO/net/sf/retrotranslator/retrotranslator-runtime/1.0.8/retrotransl
ator-runtime-1.0.8.jar  
- M2_REPO/org/kohsuke/stapler/stapler/1.23/stapler-1.23-sources.jar

Does anyone know how to fix this? Maybe this is an Eclipse bug, the
Eclipse Java Compiler seems to have some problems with generics...

The error occurs with the following Descriptor class:
----
package hudson.findbugs;

import hudson.model.Descriptor;
import hudson.tasks.Publisher;

public class FindBugsDescriptor extends Descriptor<Publisher> {
}
----

Best regards, Ulli
--
Avaloq - essential for banking.

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

Reply | Threaded
Open this post in threaded view
|

Re: Compile Error in Eclipse when creating Hello World Plugin

Tom Huybrechts
same problem here...

On 7/13/07, Hafner Ullrich <[hidden email]> wrote:

> Hi,
>
> I just tried to create a plugin using the steps described in the
> tutorial. When opening the project in Eclipse 3.3 (after removing the
> src/main/resources folder from the source files) I still get the
> follwing compile error:
>
> >>> The type Iterable_ is not generic; it cannot be parameterized with
> arguments <T>
>
> The type is part of the referenced libraries
> -
> M2_REPO/net/sf/retrotranslator/retrotranslator-runtime/1.0.8/retrotransl
> ator-runtime-1.0.8.jar
> - M2_REPO/org/kohsuke/stapler/stapler/1.23/stapler-1.23-sources.jar
>
> Does anyone know how to fix this? Maybe this is an Eclipse bug, the
> Eclipse Java Compiler seems to have some problems with generics...
>
> The error occurs with the following Descriptor class:
> ----
> package hudson.findbugs;
>
> import hudson.model.Descriptor;
> import hudson.tasks.Publisher;
>
> public class FindBugsDescriptor extends Descriptor<Publisher> {
> }
> ----
>
> Best regards, Ulli
> --
> Avaloq - essential for banking.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

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

Reply | Threaded
Open this post in threaded view
|

Re: Compile Error in Eclipse when creating Hello World Plugin

Kohsuke Kawaguchi
Administrator
In reply to this post by Ulli Hafner-2
Hafner Ullrich wrote:
> Hi,
>
> I just tried to create a plugin using the steps described in the
> tutorial. When opening the project in Eclipse 3.3 (after removing the
> src/main/resources folder from the source files) I still get the
> follwing compile error:

Note that with Eclipse 3.3, you no longer need to remove
src/main/resources (although that is not related to this problem.)

The problem seems to me that somehow you are picking up a fairly old
version of stapler (1.23 where the latest is 1.37)

Which version of Hudson do you depend on? Can you bump that up to 1.116
and see if the problem still persists? (If so, please zip up your new
plugin workspace and send it to me.)

>>>> The type Iterable_ is not generic; it cannot be parameterized with
> arguments <T>
>
> The type is part of the referenced libraries
> -
> M2_REPO/net/sf/retrotranslator/retrotranslator-runtime/1.0.8/retrotransl
> ator-runtime-1.0.8.jar  
> - M2_REPO/org/kohsuke/stapler/stapler/1.23/stapler-1.23-sources.jar
>
> Does anyone know how to fix this? Maybe this is an Eclipse bug, the
> Eclipse Java Compiler seems to have some problems with generics...
>
> The error occurs with the following Descriptor class:
> ----
> package hudson.findbugs;
>
> import hudson.model.Descriptor;
> import hudson.tasks.Publisher;
>
> public class FindBugsDescriptor extends Descriptor<Publisher> {
> }
> ----
>
> Best regards, Ulli

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

RE: Compile Error in Eclipse when creating Hello World Plugin

Ulli Hafner-2
Hi!

Setting the hudson release to 1.116 worked!

BTW: I created the plugin sceleton with the call 'mvn
org.jvnet.hudson.tools:maven-hpi-plugin:1.9:create'.
Maybe you could update this plugin with a newer hudson version (or add a
small note in the tutorial).

Thanks for the help,

Ulli

-----Original Message-----
From: Kohsuke Kawaguchi [mailto:[hidden email]]
Sent: Friday, July 13, 2007 2:17 PM
To: [hidden email]
Subject: Re: Compile Error in Eclipse when creating Hello World Plugin

Hafner Ullrich wrote:
> Hi,
>
> I just tried to create a plugin using the steps described in the
> tutorial. When opening the project in Eclipse 3.3 (after removing the
> src/main/resources folder from the source files) I still get the
> follwing compile error:

Note that with Eclipse 3.3, you no longer need to remove
src/main/resources (although that is not related to this problem.)

The problem seems to me that somehow you are picking up a fairly old
version of stapler (1.23 where the latest is 1.37)

Which version of Hudson do you depend on? Can you bump that up to 1.116
and see if the problem still persists? (If so, please zip up your new
plugin workspace and send it to me.)

>>>> The type Iterable_ is not generic; it cannot be parameterized with
> arguments <T>
>
> The type is part of the referenced libraries
> -
> M2_REPO/net/sf/retrotranslator/retrotranslator-runtime/1.0.8/retrotran
> sl
> ator-runtime-1.0.8.jar
> - M2_REPO/org/kohsuke/stapler/stapler/1.23/stapler-1.23-sources.jar
>
> Does anyone know how to fix this? Maybe this is an Eclipse bug, the
> Eclipse Java Compiler seems to have some problems with generics...
>
> The error occurs with the following Descriptor class:
> ----
> package hudson.findbugs;
>
> import hudson.model.Descriptor;
> import hudson.tasks.Publisher;
>
> public class FindBugsDescriptor extends Descriptor<Publisher> { }
> ----
>
> Best regards, Ulli


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Reply | Threaded
Open this post in threaded view
|

Re: Compile Error in Eclipse when creating Hello World Plugin

Kohsuke Kawaguchi
Administrator
Hafner Ullrich wrote:
> Hi!
>
> Setting the hudson release to 1.116 worked!
>
> BTW: I created the plugin sceleton with the call 'mvn
> org.jvnet.hudson.tools:maven-hpi-plugin:1.9:create'.
> Maybe you could update this plugin with a newer hudson version (or add a
> small note in the tutorial).

Thanks. I'll release 1.10 with the newer Hudson version.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Re: Compile Error in Eclipse when creating Hello World Plugin

Kohsuke Kawaguchi
Administrator
Kohsuke Kawaguchi wrote:
> Thanks. I'll release 1.10 with the newer Hudson version.

Done.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment