Bug 530232

Summary: [Decorations] Illegal Argument Exception by applying "Authorized decoration overlapping" preference
Product: [Modeling] Sirius Reporter: Guillaume Coutable <guillaume.coutable>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: florian.barbin, laurent.fasani
Version: 5.1.0Keywords: triaged
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Guillaume Coutable CLA 2018-01-24 05:28:35 EST
Steps to reproduce:
1) Go to Sirius preferences-> Sirius Diagram - Appearance
2) Check "Authorize decoration overlapping"
3) Apply
4) Restore Defaults
5) Apply => An error message pop up

The Illegal argument exception:
java.lang.IllegalArgumentException: Can not set boolean field org.eclipse.sirius.diagram.ui.provider.DiagramUIPlugin$Implementation$DynamicDiagramUIPreferences.authorizeDecorationOverlap to java.lang.String
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
	at sun.reflect.UnsafeBooleanFieldAccessorImpl.set(Unknown Source)
	at java.lang.reflect.Field.set(Unknown Source)
	at org.eclipse.sirius.common.ui.tools.internal.preference.DynamicConfigurationHelper.setString(DynamicConfigurationHelper.java:151)
	at org.eclipse.sirius.common.ui.tools.internal.preference.DynamicConfigurationHelper.propertyChange(DynamicConfigurationHelper.java:114)
	at org.eclipse.ui.preferences.ScopedPreferenceStore$2.run(ScopedPreferenceStore.java:344)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.preferences.ScopedPreferenceStore.firePropertyChangeEvent(ScopedPreferenceStore.java:341)
	at org.eclipse.ui.preferences.ScopedPreferenceStore.setToDefault(ScopedPreferenceStore.java:537)
	at org.eclipse.jface.preference.FieldEditor.store(FieldEditor.java:674)
	at org.eclipse.jface.preference.FieldEditorPreferencePage.performOk(FieldEditorPreferencePage.java:344)
...

This issue has been reproduced with OD 10.1.1 (Sirius 5.1.1)
Comment 1 Florian Barbin CLA 2019-03-12 06:15:09 EDT
This issue is still present on Sirius 6.2