From 24a905c76699a95e00b2e896d32ce34d6afe70e1 Mon Sep 17 00:00:00 2001 From: "R. Matt Barnett" Date: Thu, 10 Aug 2017 14:29:45 -0500 Subject: [PATCH] fix: EvidenceExtractorAst is a one time use object --- .../api_synthesis_server/ApiSynthesisStrategy.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/edu/rice/cs/caper/bayou/application/api_synthesis_server/ApiSynthesisStrategy.java b/src/main/java/edu/rice/cs/caper/bayou/application/api_synthesis_server/ApiSynthesisStrategy.java index 99726e1d..31a08969 100644 --- a/src/main/java/edu/rice/cs/caper/bayou/application/api_synthesis_server/ApiSynthesisStrategy.java +++ b/src/main/java/edu/rice/cs/caper/bayou/application/api_synthesis_server/ApiSynthesisStrategy.java @@ -51,7 +51,9 @@ static ApiSynthesisStrategy fromConfig() String combinedClasspath = Configuration.EvidenceClasspath + File.pathSeparator + Configuration.AndroidJarPath.getAbsolutePath(); - EvidenceExtractor evidenceExtractor = new EvidenceExtractorAst(combinedClasspath); + EvidenceExtractor evidenceExtractor = + source -> new EvidenceExtractorAst(combinedClasspath).extract(source); + Synthesizer synthesizer = new SynthesizerDefault(combinedClasspath); return new ApiSynthesisStrategyRemoteTensorFlowAsts(evidenceExtractor, synthesizer, "localhost", 8084,