| Summary: | [DB] Saving a default value of a custom type throws NotSerializableException | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Erwin Betschart <erwin> | ||||||||
| Component: | cdo.db | Assignee: | Stefan Winkler <stefan> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | stefan, stepper | ||||||||
| Version: | 3.0 | Flags: | stepper:
review+
|
||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | All | ||||||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=306998 | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 326743 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Erwin Betschart
Created attachment 164590 [details]
The thrown exception
Created attachment 164591 [details]
Proposed fix.
Store the literal of the default not the literal itself.
Confirmation if needed... > 1) The number of lines that you changed is smaller than 250. confirmed > 2) You are the only author of these changed lines. confirmed > 3) You apply the EPL to these changed lines. confirmed Thanks for your input, Erwin. I'll create a testcase for this as well. Created attachment 167602 [details]
Patch-v2
I added a testcase which reproduces the problem.
Erwin's fix looks good. Test succeeds with that change.
Committed to HEAD. Available in 3.0 GA: http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/ |