Reflection syntax sugar

Matthew Adams matthew at matthewadams.me
Fri Nov 18 10:16:07 PST 2011


Hi all,

I'm hoping that reflection syntax sugar enhancements can make it into JDK8.

It appears the consolidated issue, referencing several others & which looks
the most promising IMHO, is at
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5043025

It uses the javadoc-like syntax, primary the # operator, with some other
suggestions by me & others.  I entered my own issue that was closed as a
duplicate of 5043025:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6915224

One thing about my request that deserves discussion is whether it's a
compile-time error if the fields, annotations, constructors & methods
referred to are not present.  I was thinking that it should be selectable
by the developer, but then it would require a new @SupressErrors annotation
(like @SupressWarnings).  That might open up a can of worms, though.

Please review the issues above and those reachable from them.  Is this
feasible?  It has good application in the area of query in JDO, JPA &
others.

Thanks,
Matthew
-- 
@matthewadams12
mailto:matthew at matthewadams.me
skype:matthewadams12
yahoo:matthewadams
aol:matthewadams12
google-talk:matthewadams12 at gmail.com
msn:matthew at matthewadams.me
http://matthewadams.me
http://www.linkedin.com/in/matthewadams


More information about the jdk8-dev mailing list