<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Accessing internal Java class members	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/accessing-internal-java-class-members/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/accessing-internal-java-class-members?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=accessing-internal-java-class-members</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 05 Nov 2015 11:33:52 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-internal-java-class-members#comment-360686</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 05 Nov 2015 11:33:52 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5960#comment-360686</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/accessing-internal-java-class-members#comment-360684&quot;&gt;Grunde&lt;/a&gt;.

You can only access public static variables. The javadoc that you provided does not list this variable as public, but this does not necessarily mean that it is not. The easiest way would be to test it in Matlab directly. I promise that it will not crash your computer...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/accessing-internal-java-class-members#comment-360684">Grunde</a>.</p>
<p>You can only access public static variables. The javadoc that you provided does not list this variable as public, but this does not necessarily mean that it is not. The easiest way would be to test it in Matlab directly. I promise that it will not crash your computer&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Grunde		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-internal-java-class-members#comment-360685</link>

		<dc:creator><![CDATA[Grunde]]></dc:creator>
		<pubDate>Thu, 05 Nov 2015 11:29:52 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5960#comment-360685</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/accessing-internal-java-class-members#comment-360684&quot;&gt;Grunde&lt;/a&gt;.

Ignore this :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/accessing-internal-java-class-members#comment-360684">Grunde</a>.</p>
<p>Ignore this 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Grunde		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-internal-java-class-members#comment-360684</link>

		<dc:creator><![CDATA[Grunde]]></dc:creator>
		<pubDate>Thu, 05 Nov 2015 11:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5960#comment-360684</guid>

					<description><![CDATA[Hi,
I&#039;m trying to access a Static variable in a Java Interface. More specifically &lt;code&gt;org.orekit.utils.Constants.WGS84_EARTH_EQUATORIAL_RADIUS&lt;/code&gt;. Is it possible from Matlab?

URL: https://www.orekit.org/site-orekit-7.0/apidocs/org/orekit/utils/Constants.html]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m trying to access a Static variable in a Java Interface. More specifically <code>org.orekit.utils.Constants.WGS84_EARTH_EQUATORIAL_RADIUS</code>. Is it possible from Matlab?</p>
<p>URL: <a href="https://www.orekit.org/site-orekit-7.0/apidocs/org/orekit/utils/Constants.html" rel="nofollow ugc">https://www.orekit.org/site-orekit-7.0/apidocs/org/orekit/utils/Constants.html</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Martin Lechner		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-internal-java-class-members#comment-355137</link>

		<dc:creator><![CDATA[Martin Lechner]]></dc:creator>
		<pubDate>Thu, 13 Aug 2015 13:29:22 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5960#comment-355137</guid>

					<description><![CDATA[Thank you for the very good information to use Java from Matlab.
I have the problem the Matlab normally casts all scalar primitive data types to double. This is OK for the most types except long. For big long numbers (&#062; 4.5e15) this would lead to round off errors (e.g. eps(2^63-1) = 2048). Only Java arrays of type long are converted to Matlab int64 arrays.
We filled a Bug report and they forwarded this issue to the developer team (typical for Matlab and we have no information what they are really doing).

Unfortunately my college Andreas J. found the following work around solution:
&lt;b&gt;cast method call with int64&lt;/b&gt;
&lt;pre lang=&quot;matlab&quot;&gt;
format long 
longMax = int64(java.lang.Long.MAX_VALUE)
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Thank you for the very good information to use Java from Matlab.<br />
I have the problem the Matlab normally casts all scalar primitive data types to double. This is OK for the most types except long. For big long numbers (&gt; 4.5e15) this would lead to round off errors (e.g. eps(2^63-1) = 2048). Only Java arrays of type long are converted to Matlab int64 arrays.<br />
We filled a Bug report and they forwarded this issue to the developer team (typical for Matlab and we have no information what they are really doing).</p>
<p>Unfortunately my college Andreas J. found the following work around solution:<br />
<b>cast method call with int64</b></p>
<pre lang="matlab">
format long 
longMax = int64(java.lang.Long.MAX_VALUE)
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
