[
https://issues.jboss.org/browse/TEIIDDES-1184?page=com.atlassian.jira.plu...
]
Dan Florian commented on TEIIDDES-1184:
---------------------------------------
Checked in the 7.6 fix that just lets the Properties View cell editor display the first
allowed value initially for property definitions that have allowed values but no default
value.
Model Extension Property Definitions With Allowed Values But Without
A Default Value Throw Exception In Properties View
-----------------------------------------------------------------------------------------------------------------------
Key: TEIIDDES-1184
URL:
https://issues.jboss.org/browse/TEIIDDES-1184
Project: Teiid Designer
Issue Type: Bug
Components: Modeling
Affects Versions: 7.6
Reporter: Dan Florian
Assignee: Dan Florian
Fix For: 7.6, 7.7
If a MED has a property definition that has allowed values (like a boolean property type)
but does not have a default value, Eclipse's Properties View cell editor throws an
exception when trying to display the initial value (which is null/empty). Since the
property definition was setup to have no default value there is not a value that can be
returned to represent that since property's with allowed values must return an integer
to the Properties View. Returning a -1 throws an IndexOutOfBoundesException and returning
0 (zero) will show the first allowed value but that is not what the property value really
is. For 7.6 I recommend just returning the first value so that an exception is not thrown.
For 7.7 we need to come up with a better solution.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira