Throw ClassFormatError for unsupported default methods.

Fix DCHECK() failure for copied native default methods.
For dex file version 37+ we reject the dex file.
For older versions, throw the ClassFormatError like the RI.

Test: 180-native-default-method.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: aosp_taimen-userdebug boots.
Bug: 157170505
Change-Id: I5d2aefdcbf0b807c1cb482d0fda2e77316783cb4
7 files changed