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 #691 (closed defect: fixed)

Opened 2011-07-26T16:30:02-05:00

Last modified 2012-05-23T12:30:10-05:00

Exception thrown for char parameters

Reported by: curtis Owned by: curtis
Priority: minor Milestone: imagej2-b2-bugfixes
Component: Plugin Framework Version:
Severity: serious Keywords:
Cc: Blocked By:


Uncomment the char field's @Parameter annotation in ParameterTester and run:

[ERROR] Exception
java.lang.IllegalArgumentException: Can not set char field imagej.core.plugins.debug.ParameterTester.pChar to java.lang.String
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(
	at sun.reflect.UnsafeCharacterFieldAccessorImpl.set(
	at java.lang.reflect.Field.set(
	at imagej.util.ClassUtils.setValue(
	at imagej.ext.plugin.PluginModule.setInput(
	at imagej.ext.module.ui.WidgetModel.setValue(
	at imagej.ext.module.ui.AbstractInputHarvester.addTextField(
	at imagej.ext.module.ui.AbstractInputHarvester.buildPanel(
	at imagej.ext.module.ui.AbstractInputHarvester.harvest(
	at imagej.ext.plugin.AbstractInputHarvesterPlugin.process(
	at imagej.ext.module.ModuleRunner.preProcess(
	at imagej.ext.module.ModuleService$

Change History

comment:1 Changed 2011-07-28T10:34:05-05:00 by curtis

  • Status changed from new to closed
  • Resolution set to fixed

(In [3521]) Fix widget bug with character inputs. Closes #691.

comment:2 Changed 2012-05-23T12:30:10-05:00 by bdezonia

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta2