File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes What is Byte code enhancement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "What is Byte code enhancement" Watch "What is Byte code enhancement" New topic

What is Byte code enhancement

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
I read somewhere on blogs that Hibernate uses bytecode enhancement for its operation. But I didn't find any information that I could digest for what exactly is bytecode enhancement.
Can anyone please tell me what it is?

I am slow but sure
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3817

It's a technique used by many frameworks/libraries (Hibernate, Spring AOP etc...) to manipulate the .class files at runtime to various needs such as to add some framework specific defaults etc...

[How to ask questions] [Twitter]
krithika vittal

Joined: Jul 14, 2009
Posts: 11
Can you explain more in detail for Byte code enhancement ???

Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3817

I'd suggest you read some articles about the subject to get an idea like this(and other related parts).
I agree. Here's the link:
subject: What is Byte code enhancement
Similar Threads
doing arithmetic operations when the operator are stored as variables
Bytecode enhancement controversy
.class File code block and local variables
ServerSocket Error/Exception
Difference between runtime reflection, runtime bytecode generation and .....