New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 619752 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

GN does not update Java bindings when mojom files change

Project Member Reported by rouslan@chromium.org, Jun 13 2016

Issue description

When a mojom file is updated, GN does not regenerate the Java bindings for it. For example, "currency_code" was recently changed to "currency" in:

https://codesearch.chromium.org/chromium/src/third_party/WebKit/public/platform/modules/payments/payment_request.mojom

A rebuild causes an error like this:

out/gn/../../chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:439: error: cannot find symbol
                   || option.amount == null || TextUtils.isEmpty(option.amount.currency)
                                                                              ^
 symbol:   variable currency
 location: variable amount of type CurrencyAmount

The workaround is to clean out the output directory completely:

$ gn clean out/gn
 

Comment 1 by yzshen@chromium.org, Jun 14 2016

Cc: sa...@chromium.org yzshen@chromium.org tibell@chromium.org

Comment 2 by sa...@chromium.org, Jun 16 2016

Cc: -sa...@chromium.org
Owner: sa...@chromium.org
Status: Assigned (was: Unconfirmed)
Labels: Proj-GN-Migration
Labels: -Build-Tools-GN -Proj-GN-Migration
I don't think we're going to block the GYP->GN migration on this.
Project Member

Comment 5 by bugdroid1@chromium.org, Jun 22 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/14af73781b9d5372e205b01356004015c2b005ec

commit 14af73781b9d5372e205b01356004015c2b005ec
Author: sammc <sammc@chromium.org>
Date: Wed Jun 22 02:43:34 2016

Fix a regex in javac.py.

javac.py uses a regex to strip the parts after the base filename, e.g.
Foo.class or Foo$Bar.class should produce Foo. However, it fails to
strip .class from file names without a $. This corrects the regex.

BUG= 619752 

Review-Url: https://codereview.chromium.org/2079673002
Cr-Commit-Position: refs/heads/master@{#401177}

[modify] https://crrev.com/14af73781b9d5372e205b01356004015c2b005ec/build/android/gyp/javac.py

Thank you so much!

Comment 7 by sa...@chromium.org, Jun 28 2016

Status: Fixed (was: Assigned)

Sign in to add a comment