sausage-todd / jclre

Java class reloading tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JCLRE

JCLRE (stands for Java CLass REloading) is a proof-of-concept which makes code reloading possible even on a regular HotSpot JVM.

HotSwap thing which existed in JDK for ages doesn't allow you to add fields, methods to your classes or modify methods' signatures. It limits allowed modifications only by changing methods' bodies.

Usage

You compile it the usual way:

$ mvn clean install

And then you use the compiled jar as a javaagent:

$ java -javaagent:core-0.1-SNAPSHOT.jar -classpath '...' org.example.Something

Demo

Regular JVM HotSwap

Regular JVM HotSwap

Jclre in action

Jclre in action

About

Java class reloading tool


Languages

Language:Java 99.4%Language:Objective-J 0.6%