Skip to content

Commit

Permalink
Add -parameters option to the java compiler for hot reload
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Mar 13, 2019
1 parent c8dc772 commit 6cf20b0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
Expand All @@ -17,8 +18,9 @@
public class JavaCompilationProvider implements CompilationProvider {

// -g is used to make the java compiler generate all debugging info
// -parameters is used to generate metadata for reflection on method parameters
// this is useful when people using debuggers against their hot-reloaded app
private static final List<String> COMPILER_OPTIONS = Collections.singletonList("-g");
private static final List<String> COMPILER_OPTIONS = Arrays.asList("-g", "-parameters");

@Override
public String handledExtension() {
Expand Down

0 comments on commit 6cf20b0

Please sign in to comment.