As an academic work this would fairly clearly fall under a fair use defense, but I wonder how the recent Oracle / Java copyright API decision would affect any potential further development / distribution / commercialization of something like this. It seems at very least it would have a huge chilling effect on anybody who might otherwise have thought to attempt it.