c2nes / javalang

Pure Python Java parser and tools
MIT License
736 stars 161 forks source link

Allow interfaces to have an optional body, fix #30. #31

Closed roipoussiere closed 8 years ago

roipoussiere commented 8 years ago

This PR avoid a syntax error when parsing a java8 code with an interface containing a body, like:

public interface Test{ default int foo() {return 0;} }

or

public interface Test{ default void foo() {} }

This 2 codes works now. ref #30

roipoussiere commented 8 years ago

Done.

c2nes commented 8 years ago

Thanks @roipoussiere!