Bug 483172 - [DataBinding] missing error logging on update errors
Summary: [DataBinding] missing error logging on update errors
Status: CLOSED DUPLICATE of bug 388802
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-27 07:38 EST by Christian Pontesegger CLA
Modified: 2015-12-08 04:47 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Pontesegger CLA 2015-11-27 07:38:53 EST
ValueBindung.run() catches all kinds of exceptions, eg from update converters or validators. Unfortunately it does not report these exceptions. This is extremely annoying to debug when there is no indication where things go wrong.

Eventually trace messages would be an option if these kind of errors are not wanted in log files.

example for such an error:

sourceStrategy.setConverter(new Converter(Object.class, String.class) {

			@Override
			public Object convert(final Object fromObject) {
				throw new NPE();
			}
		});

		context.bindValue(ViewerProperties.singleSelection().observe(fcmbTypeViewer), target, sourceStrategy,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER));
// initial update of data
context.updateModels();
Comment 1 Conrad Groth CLA 2015-12-06 12:37:14 EST
duplicate to 388802
Comment 2 Christian Pontesegger CLA 2015-12-08 04:47:50 EST

*** This bug has been marked as a duplicate of bug 388802 ***