How is everyone handling the filtering of synthetic/bridge methods?

Using the reflection API, I'm seeing differences between JDK 1.5 and
6, with methods like StringBuilder.length marked as bridge/synthetic
in JDK 6 (!?)

Is there a reliable way to deduce the 'real' method set via
reflection?

Here are the signatures and (hex) modifiers for StringBuilder, via
getMethods():

http://clojure.googlegroups.com/web/jdk5.txt
http://clojure.googlegroups.com/web/jdk6.txt

In JDK 1.5, filtering on isBridge works ok. But this will filter out
StringBuilder.length and others on JDK 6.

Thanks for any ideas,

Rich

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to