Skip to content

Commit

Permalink
Merge pull request #9 from Mingun/in-memory-compiler
Browse files Browse the repository at this point in the history
Replace source code of InMemoryJavaCompiler with dependency
  • Loading branch information
GreyCat authored Jan 26, 2020
2 parents 528242a + 6dcec1d commit 59d4ae4
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 232 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
<artifactId>maven-jdk-tools-wrapper</artifactId>
<version>0.1</version>
</dependency>
<dependency>
<groupId>org.mdkt.compiler</groupId>
<artifactId>InMemoryJavaCompiler</artifactId>
<version>1.3.0</version>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private void parseFileWithKSY(String ksyFileName, String binaryFileName) throws
paramNames.add(p.group(1));
}

final Class<?> ksyClass = InMemoryJavaCompiler.compile(DEST_PACKAGE + "." + m.group(1), javaSrc);
final Class<?> ksyClass = InMemoryJavaCompiler.newInstance().compile(DEST_PACKAGE + "." + m.group(1), javaSrc);
struct = construct(ksyClass, paramNames, binaryFileName);

// Find and run "_read" that does actual parsing
Expand Down
33 changes: 0 additions & 33 deletions src/main/java/org/mdkt/compiler/CompiledCode.java

This file was deleted.

30 changes: 0 additions & 30 deletions src/main/java/org/mdkt/compiler/DynamicClassLoader.java

This file was deleted.

This file was deleted.

81 changes: 0 additions & 81 deletions src/main/java/org/mdkt/compiler/InMemoryJavaCompiler.java

This file was deleted.

29 changes: 0 additions & 29 deletions src/main/java/org/mdkt/compiler/SourceCode.java

This file was deleted.

0 comments on commit 59d4ae4

Please sign in to comment.