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: |
|
Component: | Plugin Framework | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
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(UnsafeFieldAccessorImpl.java:146) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150) at sun.reflect.UnsafeCharacterFieldAccessorImpl.set(UnsafeCharacterFieldAccessorImpl.java:68) at java.lang.reflect.Field.set(Field.java:657) at imagej.util.ClassUtils.setValue(ClassUtils.java:194) at imagej.ext.plugin.PluginModule.setInput(PluginModule.java:136) at imagej.ext.module.ui.WidgetModel.setValue(WidgetModel.java:84) at imagej.ext.module.ui.AbstractInputHarvester.addTextField(AbstractInputHarvester.java:223) at imagej.ext.module.ui.AbstractInputHarvester.buildPanel(AbstractInputHarvester.java:115) at imagej.ext.module.ui.AbstractInputHarvester.harvest(AbstractInputHarvester.java:67) at imagej.ext.plugin.AbstractInputHarvesterPlugin.process(AbstractInputHarvesterPlugin.java:63) at imagej.ext.module.ModuleRunner.preProcess(ModuleRunner.java:103) at imagej.ext.module.ModuleRunner.run(ModuleRunner.java:83) at imagej.ext.module.ModuleService$1.run(ModuleService.java:185) at java.lang.Thread.run(Thread.java:680)
(In [3521]) Fix widget bug with character inputs. Closes #691.