title: "cannot be resolved to a variable" in a cast
body: <p>I decompiled a jar using <a href="http://jd.benow.ca/" rel="nofollow">http://jd.benow.ca/</a> and I keep getting "PluginResourceLoader cannot be resolved to a variable" at the cast "(PluginResourceLoader)" below in Eclipse.  I set the compiler version to 1.5 since the jar was compiled with 1.5.  It is trying to cast to its own class (a static nested class).</p>
  
  <pre><code>public class StandardPluginClassLoader extends PluginClassLoader {
  ...
    static PluginResourceLoader get(PluginManager paramPluginManager,
      PluginDescriptor paramPluginDescriptor) {
      ...
      //My Test code.  Works
      PluginResourceLoader t = new PluginResourceLoader(null);
  
      //Generates "PluginResourceLoader cannot be resolved to a variable"
      (PluginResourceLoader)AccessController
          .doPrivileged(new PrivilegedAction() {
        public Object run() {
          return new StandardPluginClassLoader
            .PluginResourceLoader((URL[])this.val$urls
            .toArray(new URL[this.val$urls.size()]));
        }
      });
     }
  ...
  }
  </code></pre>