<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>27118</bug_id>
          
          <creation_ts>2009-07-09 07:38:49 -0700</creation_ts>
          <short_desc>[QT] Wrong of declaration of writeOnlyProperty: READ function is always required.</short_desc>
          <delta_ts>2010-08-02 09:20:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Antonio Gomes">tonikitoo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hausmann</cc>
    
    <cc>jedrzej.nowacki</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>130661</commentid>
    <comment_count>0</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2009-07-09 07:38:49 -0700</bug_when>
    <thetext>tst_qwebframe.cpp we have:


(...)
class MyQObject : public QObject
{
    Q_OBJECT
(...)
 Q_PROPERTY(int writeOnlyProperty WRITE setWriteOnlyProperty)
(...)

which is wrong and triggers a compile warning while building ...

(...)
/home/agomes/reps/webkit/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp:88: Warning: Property declaration writeOnlyProperty has no READ accessor function. The property will be invalid.
(...)



--&gt; See statement in http://chaos.troll.no/~tavestbo/webkit/domapi/qobject.html#Q_PROPERTY

&quot;...The property name and type and the READ function are required...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166690</commentid>
    <comment_count>1</comment_count>
    <who name="Jędrzej Nowacki">jedrzej.nowacki</who>
    <bug_when>2009-11-26 03:10:04 -0800</bug_when>
    <thetext>In general Qt discourage to declare write-only properties. 

In all cases, apart from one, the warning is correct. In this particular case we need a hack to test the JavaScript functionality. In the JavaScript concept of write-only property exists, we can&apos;t change it. We can support the feature, but in the same time we discourage to use it.

According to logs, there was a bigger discussion about the problem.

I&apos;m closing the bug, but if you disagree, feel free to reopen it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167114</commentid>
    <comment_count>2</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-11-29 15:36:31 -0800</bug_when>
    <thetext>I looked into this a while bug and draw the same conclusion as Jędrzej.

Just for future reference - I think the warning is coming from moc and not from the C/C++ compiler.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258918</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-08-02 09:16:47 -0700</bug_when>
    <thetext>*** Bug 43356 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258921</commentid>
    <comment_count>4</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-08-02 09:20:26 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I looked into this a while bug and draw the same conclusion as Jędrzej.
&gt; 
&gt; Just for future reference - I think the warning is coming from moc and not from the C/C++ compiler.

Yes, this warning is coming from moc, and doesn&apos;t block build if we add -Werror option to gcc: https://bugs.webkit.org/show_bug.cgi?id=43191

But unfortunately it makes the compiling step orange on the buildbot. :(
Is there a correct way to hide this warning to make the bot green?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>