benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

Add support for calling static inner classes #194

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
first of all, thanks for your wonderful project.

is it possible to add a new static method `staticInnerClass' in
org.fest.reflect.core.Reflection that could be used to get static inner
class of another class?

for instance, in file `TheEnclosingClass.java'
public class TheEnclosingClass {
    private static class TheInnerClass {
        ...
    }
}

may be we can use it like this:
Object innerClassObject =
staticInnerClass("TheInnerClass").in(TheEnclosingClass.class).newInstance()

Original issue reported on code.google.com by Python.L...@gmail.com on 7 Aug 2008 at 10:45

GoogleCodeExporter commented 9 years ago
sorry, google kept telling me that posting failed, so i posted multiple times. 
sorry.
can you please delete the other two redundant posts? thanks.

Original comment by Python.L...@gmail.com on 7 Aug 2008 at 10:48

GoogleCodeExporter commented 9 years ago
Thanks for your feedback! :)

I deleted the duplicated posts...Google Code has been acting weird for the last 
two
weeks :(

Original comment by Alex.Rui...@gmail.com on 7 Aug 2008 at 8:23

GoogleCodeExporter commented 9 years ago
Set the module as a label, instead of being part of the title.

Original comment by Alex.Rui...@gmail.com on 1 Dec 2008 at 3:15

GoogleCodeExporter commented 9 years ago
We'll address this issue in version 1.1

Original comment by Alex.Rui...@gmail.com on 10 Dec 2008 at 1:57

GoogleCodeExporter commented 9 years ago
I changed the title of the issue to reflect its purpose. I started work on this
issue. I'll have it finished pretty soon.

Many thanks for suggesting this feature!

Cheers,
-Alex

Original comment by Alex.Rui...@gmail.com on 26 Jan 2009 at 7:30

GoogleCodeExporter commented 9 years ago
Fixed. You can find the changes made in
http://code.google.com/p/fest/source/detail?r=2258 (r2258.) Feel free to review 
them.

I'd like to add you to the list of contributors. If you agree, please send me 
your
name and (optionally) a link to your blog/website to my e-mail address 
alex.ruiz.05
at gmail.com

Thanks,
-Alex

Original comment by Alex.Rui...@gmail.com on 29 Jan 2009 at 3:07