Webkit: Conversion from string literal loses const qualifier
Ali Ebrahimi
ali.ebrahimi1781 at gmail.com
Wed Apr 13 14:26:40 UTC 2016
Done. Review ID: JI-9035229
On Wed, Apr 13, 2016 at 5:33 PM, Vadim Pakhnushev <
vadim.pakhnushev at oracle.com> wrote:
> Oh, right!
> In that case I would suggest you to file a bug at the
> http://bugs.java.com/
>
> Thanks,
> Vadim
>
>
> On 13.04.2016 15:55, Ali Ebrahimi wrote:
>
> Hi,
> This is similar bug and in same file but in 2th parameter of initMethod.
> It seems MC compiler changed some rules in latest updates.
>
> On Wed, Apr 13, 2016 at 3:22 PM, Vadim Pakhnushev <
> vadim.pakhnushev at oracle.com> wrote:
>
>> Ali,
>>
>> Seems like this bug https://bugs.openjdk.java.net/browse/JDK-8090061
>> Although it was pushed to the 9-dev in January.
>>
>> Vadim
>>
>>
>> On 13.04.2016 10:50, Ali Ebrahimi wrote:
>>
>>> Hi Kevin,
>>> I'm building with "Microsoft Visual Studio Ultimate 2013 Update 5" on
>>> win8.1 64bit and FX repo http://hg.openjdk.java.net/openjfx/9-dev/rt.
>>>
>>> On Wed, Apr 13, 2016 at 2:54 AM, Kevin Rushforth <
>>> <kevin.rushforth at oracle.com>kevin.rushforth at oracle.com
>>>
>>>> wrote:
>>>> Hi Ali,
>>>>
>>>> The production build of FX is done using VS2013 and we haven't seen this
>>>> error. Where are you getting FX from? Are you using VS2013 Express or
>>>> Pro?
>>>> If Express, be aware that we do not support 64-bit builds (although
>>>> this is
>>>> not likely your problem).
>>>>
>>>> -- Kevin
>>>>
>>>>
>>>>
>>>> Ali Ebrahimi wrote:
>>>>
>>>> Hi,
>>>>> When building with VS2013 I get following error:
>>>>>
>>>>>
>>>>>
>>>>> ..\..\..\..\src\main\native\Source\WebCore\platform\java\api\BackForwardListJava.cpp(46)
>>>>> : error C2664: 'jmethodID initMethod(JNIEnv *,jclass,char *,const char
>>>>> *)' : cannot convert argument 3 from 'const char [7]' to 'char *'
>>>>> Conversion from string literal loses const qualifier (see
>>>>> /Zc:strictStrings)
>>>>>
>>>>>
>>>>> ..\..\..\..\src\main\native\Source\WebCore\platform\java\api\BackForwardListJava
>>>>> .cpp(87) : error C2664: 'jmethodID initMethod(JNIEnv *,jclass,char
>>>>> *,const
>>>>> char*)' : cannot convert argument 3 from 'const char [18]' to 'char *'
>>>>> Conversion from string literal loses const qualifier (see
>>>>> /Zc:strictStrings)
>>>>>
>>>>>
>>>>> ..\..\..\..\src\main\native\Source\WebCore\platform\java\api\BackForwardListJava.cpp(98)
>>>>> : error C2664: 'jmethodID initMethod(JNIEnv *,jclass,char *,const char
>>>>> *)' : cannot convert argument 3 from 'const char [20]' to 'char *'
>>>>> Conversion from string literal loses const qualifier (see
>>>>> /Zc:strictStrings)
>>>>>
>>>>>
>>>>> ..\..\..\..\src\main\native\Source\WebCore\platform\java\api\BackForwardListJava
>>>>> .cpp(311) : error C2664: 'jmethodID initMethod(JNIEnv *,jclass,char
>>>>> *,const
>>>>> char *)' : cannot convert argument 3 from 'const char [14]' to 'char *'
>>>>> Conversion from string literal loses const qualifier (see
>>>>> /Zc:strictStrings)
>>>>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
>>>>> Studio
>>>>> 12.0
>>>>> \VC\BIN\amd64\cl.EXE"' : return code '0x2'
>>>>> Stop.
>>>>> NMAKE : fatal error U1077: '(' : return code '0x2'
>>>>> Stop.
>>>>> NMAKE : fatal error U1077: 'cd' : return code '0x2'
>>>>> Stop.
>>>>> :web:compileNativeWin FAILED
>>>>>
>>>>>
>>>>>
>>>
>>
>
>
> --
>
> Best Regards,
> Ali Ebrahimi
>
>
>
--
Best Regards,
Ali Ebrahimi
More information about the openjfx-dev
mailing list