Results 1 to 2 of 2

Thread: java reflection

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default java reflection

    could anyone explain me the sense of the
    "Comparing C# and Java Generics", Anders Hejlsberg reply at paragraph 3 ("Issue number two, and.......) ?
    http://www.artima.com/intv/generics2.html
    I don't understand the sense of what he says about reflection in java (is it possibile or not?)

    thanks,
    Regards

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: java reflection

    Reflection is possible.
    It's just that the reflection can tell you (for generic lists) only that the list is a list of Object. Even if the list 'really' (but only in your source!) is a list of String, int or anything else.
    In other words: reflection on generics does not give you information on the generic type used. For non-generic stuff reflection works as it should.

    HTH

Similar Threads

  1. Integrate Qt C++ with Java jars
    By nicksnels in forum Qt Programming
    Replies: 4
    Last Post: 6th March 2008, 08:10
  2. how to run java program on qtopia?
    By honest581 in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 22nd November 2007, 15:07
  3. Sending string from QT client to Java server
    By seanmu13 in forum Qt Programming
    Replies: 10
    Last Post: 3rd July 2007, 12:52
  4. Sending string from QT client to Java server
    By seanmu13 in forum Newbie
    Replies: 3
    Last Post: 3rd July 2007, 12:20
  5. Embedding Java in Qt
    By learnerplts in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2006, 15:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.