Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311231 - Warnings printed to console when running AccessibleValueExample
Summary: Warnings printed to console when running AccessibleValueExample
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 RC1   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-30 14:58 EDT by Silenio Quarti CLA
Modified: 2010-05-03 13:15 EDT (History)
1 user (show)

See Also:
eclipse.felipe: review+


Attachments
fix (973 bytes, patch)
2010-04-30 15:00 EDT, Silenio Quarti CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Silenio Quarti CLA 2010-04-30 14:58:19 EDT

    
Comment 1 Silenio Quarti CLA 2010-04-30 14:58:52 EDT
(SWT:2724): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed
Comment 2 Silenio Quarti CLA 2010-04-30 15:00:27 EDT
Created attachment 166663 [details]
fix

This should is be fixed in RC1
Comment 3 Felipe Heidrich CLA 2010-05-03 10:18:01 EDT
I see that will work, but personally I'd have used
if (OS.G_IS_VALUE(value) != 0) OS.g_value_unset(value);
instead of 
if (OS.G_VALUE_TYPE(value) != 0) OS.g_value_unset(value);

G_IS_VALUE() is failing assertion in the stacktrace after all
Comment 4 Silenio Quarti CLA 2010-05-03 13:15:13 EDT
The G_VALUE_TYPE is already used to get the type in setGValue(). G_IS_VALUE checks if the object is a GValue which is unnecessary.

Fixed > 20100503