Fix java.net.URL#getPath regression

Pre-openJdk java.net.URL#getPath was always removing the
stray trailing "?" from the path. This change makes
sure that openJdk based one behaves the same way.

Bug: 27444667
Change-Id: Ie96ff08c17edebbed0de16ed9dd434a474722cd4
3 files changed