NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1198 (closed defect: fixed)

Opened 2012-05-29T10:03:11-05:00

Last modified 2012-06-01T15:33:11-05:00

Detect misconfigured plugins

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: imagej2-b3-headless
Component: Core Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

We should detect incorrect specifications of plugin @Parameters and warn the user rather than running the plugin.

Example broken configurations:

  • tagging an inherited base class's @Parameters as private rather than protected (the values cannot be filled in correctly and are set to null)
  • tagging @Parameters as final

Change History

comment:1 Changed 2012-06-01T15:33:11-05:00 by curtis

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta3

Fixed in c9e4fb7d54ec2334e8d0e8f40de95c2aecea5400 and 7d8e25f933166d2aeea8a3c418833d6fc83a1c3b.

I decided to allow private @Parameters in ancestor classes, as long as no two parameters have the same name (i.e., no private fields are shadowed in a subclass).