New issue
Advanced search Search tips

Issue 762630 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 3
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

CronetHttpURLConnection.java:243 Multi-catch with these reflection exceptions requires API level 19 (current min is 16)

Project Member Reported by wnwen@chromium.org, Sep 6 2017

Issue description

/tmp/tmphr6xk9/SRC_ROOT1/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java:243 Multi-catch with these reflection exceptions requires API level 19 (current min is 16) because they get compiled to the common but
new super type `ReflectiveOperationException`. As a workaround either create individual catch statements, or catch `Exception`.: NewApi [warning]
        } catch (NoSuchFieldException | IllegalAccessException e) {
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced in https://chromium.googlesource.com/chromium/src/+/4b523c1060e2bc62bceb42e3d1674635cd48f2e0

Will add suppression and reference this bug to delete suppression https://chromium-review.googlesource.com/c/chromium/src/+/652964
 

Comment 1 Deleted

Comment 2 by wnwen@chromium.org, Jun 14 2018

Components: Internals>Network>Library
Labels: -Pri-1 Pri-3
Owner: ----
Status: Available (was: Assigned)
Status: Archived (was: Available)
Desugaring for Cronet is done elsewhere.

Sign in to add a comment