Bug 530232 - [Decorations] Illegal Argument Exception by applying "Authorized decoration overlapping" preference
Summary: [Decorations] Illegal Argument Exception by applying "Authorized decoration o...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-01-24 05:28 EST by Guillaume Coutable CLA
Modified: 2019-03-12 06:15 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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