<div dir="ltr">George,<div><br>That method does not appear to exist. It looks like we are missing a feature.</div><div><br></div><div>In the mean time, Ludo, you can call .toString() on the JavaClassSource object and check for the final modifier before the first instance of the type name:</div><div><br></div><div>if(source.toString().matches(&quot;^.*final<span style="font-size:12px;letter-spacing:0.61599999666214px;line-height:1.333;white-space:pre-wrap;color:rgb(0,153,0)">(</span><span style="font-size:12px;letter-spacing:0.61599999666214px;line-height:1.333;white-space:pre-wrap;color:rgb(51,153,51)">?&lt;!</span><span style="font-size:12px;letter-spacing:0.61599999666214px;line-height:1.333;white-space:pre-wrap;background-color:rgb(250,250,250)"><font color="#333333">&quot; + source.getName() + &quot;</font></span><span style="font-size:12px;letter-spacing:0.61599999666214px;line-height:1.333;white-space:pre-wrap;color:rgb(0,153,0)">)</span>&quot;))</div><div><br></div><div>Something like that should work.</div><div><br>~Lincoln</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 11, 2015 at 12:26 PM, George Gastaldi <span dir="ltr">&lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tried JavaClassSource.setFinal(false)?<br>
<br>
<br>
<br>
&gt; Em 11/02/2015, às 15:24, <a href="mailto:forge-users@lists.jboss.org">forge-users@lists.jboss.org</a> escreveu:<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; maybe a dummy question, but I didn&#39;t find the way to check is a class is final, using JavaClassSource object ?<br>
&gt;<br>
&gt; I need to check if, and remove final modifier if found.<br>
&gt;<br>
&gt; Thanx for your help<br>
&gt; Ludo<br>
&gt;<br>
&gt; Posted by forums<br>
&gt; Original post: <a href="https://developer.jboss.org/message/918504#918504" target="_blank">https://developer.jboss.org/message/918504#918504</a><br>
&gt; _______________________________________________<br>
&gt; forge-users mailing list<br>
&gt; <a href="mailto:forge-users@lists.jboss.org">forge-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a><br>
<br>
_______________________________________________<br>
forge-users mailing list<br>
<a href="mailto:forge-users@lists.jboss.org">forge-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;</div>
</div>