#50 Example plugin has erroneous annotation

snapshot
closed
plugin (16)
5
2011-06-07
2011-05-24
No

Good day,

The ExamplePlugin has two methods which use the @Override annotation but the methods are not in the base class. This causes an error in Eclipse (well...certain configs anyway).

I have attached the patch for this.

Sean

Discussion

  • Sean Garagan

    Sean Garagan - 2011-05-24

    Patch file removing @override annotations

     
    Attachments
  • Rob Manning

    Rob Manning - 2011-05-24

    Hi Sean,

    We use Java 6 which allows you to annotate interface implementations with @Override. Can you check your Eclipse settings to ensure that the Java compliance level is set to Java 6 ?
    Rob

     
  • Rob Manning

    Rob Manning - 2011-05-24
    • assigned_to: nobody --> manningr
    • status: open --> pending
     
  • Nobody/Anonymous

    Hey Rob,

    OK, your note was right; the examples plugin had an entry in .classpath of J2SE-1.5 as its per-project compliance level. This is pretty odd since I have my workspace set up for 1.6 and this is a new workspace (and a new Eclipse environment, 3.6sp2). Switching it to a 1.6 compliance level fixed the issue.

    Now I just need to figure out why a few of the projects are coming out as Java 1.5 compliant.

    Thanks again and sorry for the bother,
    Sean

     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks