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

Issue 707043 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: 1
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

roll_closure_compiler doesn't work with Java and JDK 1.8

Project Member Reported by drcrash@google.com, Mar 30 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36

Steps to reproduce the problem:
1. Install Java 1.8
2. Run chromium/src/third_party/closure_compiler/roll_closure_compiler
3. Get an error complaining that the script requires Java 1.7 

If the JDK doesn't match the same will happen, just with the JDK

What is the expected behavior?
1.7 and above should be okay.

What went wrong?
The script checks for 1.7 vs 1.7 or above

Did this work before? N/A 

Chrome version: 57.0.2987.110  Channel: n/a
OS Version: 
Flash Version:
 
Components: Build
EstimatedDays: 1
Owner: drcrash@chromium.org
Status: Started (was: Unconfirmed)
Cc: dkalin@chromium.org

Comment 3 by dpa...@chromium.org, Mar 31 2017

FYI I tried this yesterday at https://codereview.chromium.org/2786793002 (patch2). Eventually I reverted to 1.7 again, since I was not sure if a jar binary built with java 1.7, will be runnable by java 1.8 (and I don't think the bots have 1.8).

Comment 4 by dpa...@chromium.org, Mar 31 2017

Eh, I meant the opposite
*binary built with java 1.8, will be runnable by java 1.7. Anyway.
Were the errors that you saw in the builds due to Java versions? All the Maven XML files specify -source 1.7 -target 1.7 so whatever is produced should work with 1.7.
Project Member

Comment 6 by bugdroid1@chromium.org, Apr 4 2017

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

commit de6533cf19916679011872eeb9d359ce857c5308
Author: drcrash <drcrash@chromium.org>
Date: Tue Apr 04 18:25:40 2017

New checks for Java version against Maven files.

Fix version check of Java and JDK to be 1.7 or above.

BUG= 707043 
TEST=manual
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

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

[modify] https://crrev.com/de6533cf19916679011872eeb9d359ce857c5308/third_party/closure_compiler/roll_closure_compiler

Status: Verified (was: Started)

Sign in to add a comment