You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Adrian Nicoara (JIRA)" <ji...@apache.org> on 2016/05/12 21:28:12 UTC

[jira] [Commented] (REEF-1333) Type cast warnings in our C++ code

    [ https://issues.apache.org/jira/browse/REEF-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15282080#comment-15282080 ] 

Adrian Nicoara commented on REEF-1333:
--------------------------------------

I have submitted a change that attempts to match the function signatures of {{class InteropReturnInfo}} in {{InteropReturnInfo.java}} to the method calls in JNI. In addition to that, I removed some code that looked like NOOPs to me.

> Type cast warnings in our C++ code
> ----------------------------------
>
>                 Key: REEF-1333
>                 URL: https://issues.apache.org/jira/browse/REEF-1333
>             Project: REEF
>          Issue Type: Bug
>          Components: REEF Bridge, REEF.NET
>            Reporter: Markus Weimer
>            Assignee: Adrian Nicoara
>
> The build currently produces the following warnings, which we should address:
> {noformat}
> "C:\src\reef\lang\cs\Org.Apache.REEF.sln" (default target) (1) ->
> "C:\src\reef\lang\cs\Org.Apache.REEF.Client\Org.Apache.REEF.Client.csproj" (default target) (15) ->
> "C:\src\reef\lang\cs\Org.Apache.REEF.Bridge\Org.Apache.REEF.Bridge.vcxproj" (default target) (17) ->
> (ClCompile target) ->
>   InteropReturnInfo.cpp(76): warning C4311: 'type cast': pointer truncation from 'jobject' to 'int' [C:\src\reef\lang\c
> s\Org.Apache.REEF.Bridge\Org.Apache.REEF.Bridge.vcxproj]
>   InteropReturnInfo.cpp(76): warning C4302: 'type cast': truncation from 'jobject' to 'int' [C:\src\reef\lang\cs\Org.Ap
> ache.REEF.Bridge\Org.Apache.REEF.Bridge.vcxproj]
>   InteropReturnInfo.cpp(84): warning C4311: 'type cast': pointer truncation from 'jobject' to 'int' [C:\src\reef\lang\c
> s\Org.Apache.REEF.Bridge\Org.Apache.REEF.Bridge.vcxproj]
>   InteropReturnInfo.cpp(84): warning C4302: 'type cast': truncation from 'jobject' to 'int' [C:\src\reef\lang\cs\Org.Ap
> ache.REEF.Bridge\Org.Apache.REEF.Bridge.vcxproj]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)