Skip to content

Commit 6e9978d

Browse files
committed
Merge pull request OpenHFT#6 from j256/patch-1
Update README.md
2 parents b171c35 + 9c3310f commit 6e9978d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You needa CachedCompiler and access to you JDK's tools.jar.
2222
2323
// dynamically you can call
2424
Class aClass = cc.loadFromJava(className, javaCode);
25-
KnownInterface o = (KnownInterface) aClass.nextInstance();
25+
KnownInterface o = (KnownInterface) aClass.newInstance();
2626
2727
I suggest making you class implement a "KnownInterface" as this will allow you to call/manipulate instances of you generated class.
2828

0 commit comments

Comments
 (0)