This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/34444] Class.getEnclosingClass() returns null on enclosed class



------- Comment #1 from tromey at gcc dot gnu dot org  2007-12-12 16:28 -------
Here's a complete test case.
The .class file does have the InnerClasses attribute,
we just don't seem to read it properly.

public class p
{
  public interface DBI { }

  public interface Local extends DBI {
    public class Disconnected
    {
      public Disconnected()
      {
      }
    }
  }

  public static void main(String[] args) throws Throwable {
    Class c = Local.Disconnected.class;
    System.out.println(c.getEnclosingClass());
  }
}


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-12-12 16:28:59
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34444


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]