google / google/compile-testing

InMemoryJavaFileManager has different behavior than standard java file manager.

Open
#47 2 comments 0 reactions 0 assignees View on GitHub
P3
Dominant language
Java
Stars
722
Forks
129
Avg merge
11m
Merged PRs (30d)
4

Description

The InMemoryJavaFileManager allows locations other than those specified in StandardLocation, whereas the standard manager will throw a null pointer exception if a non standard location is used.
[Please look at a simple unit test i made which illustrates this](https://github.com/jasonnn/compile-testing/blob/locations/src/test/java/com/google/testing/compile/NonStandardLocationsTest.java)

While it now seems kind of obvious to me that the "standard" manager would only support "standard" locations, it would be nice if compile-testing checked that it's backing file manager was actually able to create a FileObject for the specified location.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.