Skip to content

Instantly share code, notes, and snippets.

@nickman
Created January 13, 2012 19:55
Show Gist options
  • Save nickman/1608381 to your computer and use it in GitHub Desktop.
Save nickman/1608381 to your computer and use it in GitHub Desktop.
Simple Working Exampe of BCR
import org.helios.gmx.classloading.*;
foo = {message -> println message};
bytes = ByteCodeRepository.getInstance().getByteCode(foo.getClass());
println "Class:${foo.getClass().getName()} ByteCode:${bytes.length} bytes";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment