Hey Richard,<br><br>There is a method in JavaSource called resolveType(); This method will return the fully qualified type of the given Class name; however, there is a big issue here at the moment. We cannot resolve wildcards, or classes from the same package that are in the &#39;package&#39; visibility scope. <br>
<br><a href="https://issues.jboss.org/browse/FORGE-424">https://issues.jboss.org/browse/FORGE-424</a><br><br>In these two cases, resolveType() will actually return the class name unchanged, which is your signal to take desperate measures, because I don&#39;t think that we will be fixing this in time for .Final. In the case of Column.class, I would start by assuming that the class is what you expect, and in the case of other unknown types, at this point - unfortunately - it&#39;s going to be up to you to figure out what that type is, and if reasonable assumptions can be made.<br>
<br>Sorry about this, I know it&#39;s a big gap, but it&#39;s going to take a lot of work to fix this as you might be able to see in the issue. But definitely call resolveType() as a first step, then you&#39;ll have to &quot;worry&quot; about handling potential issues where the type information is not available.<br>
<br>We also can&#39;t tell if a Class literal is a class, interface, enum, etc... <br><br>~Lincoln<br><br><div class="gmail_quote">On Thu, Jan 12, 2012 at 11:46 PM, Richard Kennard <span dir="ltr">&lt;<a href="mailto:richard@kennardconsulting.com">richard@kennardconsulting.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Lincoln,<br>
<br>
As you may recall, the new &#39;static Metawidget&#39; scaffolding tries to reuse Inspectors between the runtime/static worlds. To do this, it needs to reify the<br>
annotations from org.jboss.forge.parser.java.Annotations into &#39;proper&#39; java.lang.annotation.Annotations.<br>
<br>
This is mostly working, but I am struggling with reifying two things:<br>
<br>
1. If the annotation&#39;s value is a Class<br>
2. If the annotation&#39;s value is another annotation<br>
<br>
The problem is the same in both cases - I am lacking the qualified name of the class/annotation. If they user enters:<br>
<br>
     @MyAnnotation( Column.class )<br>
<br>
Then I need to know that it&#39;s actually a javax.persistence.Column.class. This is a bit beyond me! I have left a couple of TODOs in ForgePropertyStyle and<br>
in ForgePropertyStyleTest. Could you take a look?<br>
<br>
Regards,<br>
<br>
Richard.<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>