Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / August 2003

Tip: Looking for answers? Try searching our database.

sun.reflect.ClassFileAssembler

Thread view: 
Marc Schönefeld - 18 Jul 2003 11:08 GMT
Hi,

just wondering if anyone did some nice code which
uses the sun.reflect.ClassFileAssembler
and sun.reflect.AccessGenerator

BTW: Sun left a spelling error in that ClassFileAssembler
class: emitBoxingContantPoolEntries

Cheers
Marc  
www.illegalaccess.org
Jon Skeet - 18 Jul 2003 11:34 GMT
Marc Sch?nefeld <marc@beauchamp.de> wrote:
> just wondering if anyone did some nice code which
> uses the sun.reflect.ClassFileAssembler
> and sun.reflect.AccessGenerator

Hopefully not, given that Sun themselves say you shouldn't use classes
in the sun.* packages.

> BTW: Sun left a spelling error in that ClassFileAssembler
> class: emitBoxingContantPoolEntries

Just another reason to avoid using classes you're not supposed to in
the first place.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Matthias Ernst - 02 Aug 2003 09:32 GMT
> Hi,
>
> just wondering if anyone did some nice code which
> uses the sun.reflect.ClassFileAssembler
> and sun.reflect.AccessGenerator

There's alternative free packages around. Most popular seems BCEL, I
have also played with ASM (http://asm.objectweb.org/) which seems more
lightweight. Implementing something similar to  C#'s whatstheirnames
(delegates?), i.e. turning an (object, methodname) into an
implementation of Runnable was very straightforward.

Next project will be dynamic proxies that can additionally specify a
superclass.

Matthias


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.