trung / InMemoryJavaCompiler

Utility class to compile java source code in memory
Apache License 2.0
267 stars 85 forks source link

Introduce a result interface to allow extraction of diagnostics #19

Open ruediste opened 6 years ago

ruediste commented 6 years ago

I need access to the individual diagnostics messages. Unfortunately, the only implemented behaviour was to throw an exception when on compile errors/warnings. What do you think?

codecov-io commented 6 years ago

Codecov Report

Merging #19 into master will decrease coverage by 0.04%. The diff coverage is 93.93%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #19      +/-   ##
=======================================
- Coverage   86.04%   86%   -0.05%     
=======================================
  Files           6     6              
  Lines          86   100      +14     
  Branches        8    10       +2     
=======================================
+ Hits           74    86      +12     
- Misses         10    12       +2     
  Partials        2     2
Impacted Files Coverage Δ
...n/java/org/mdkt/compiler/InMemoryJavaCompiler.java 85.71% <93.93%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d84c404...789f9c8. Read the comment docs.