Open GoogleCodeExporter opened 8 years ago
I can confirm that this issue is affecting me.
Here's the my output of `java -version`:
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
java version "1.7.0_17"
OpenJDK Runtime Environment (IcedTea7 2.3.8) (ArchLinux build
7.u17_2.3.8-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
Note that the java version is on the second line.
Original comment by gugubro1
on 29 Mar 2013 at 11:23
I can also confirm that this issue is affecting me.
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
Original comment by sezgisen...@gmail.com
on 31 Mar 2013 at 7:55
Here is my patch. It works well.
Index: closure/bin/build/jscompiler.py
===================================================================
--- closure/bin/build/jscompiler.py
+++ closure/bin/build/jscompiler.py
@@ -30,8 +30,9 @@
"""Returns the string for the current version of Java installed."""
proc = subprocess.Popen(['java', '-version'], stderr=subprocess.PIPE)
unused_stdoutdata, stderrdata = proc.communicate()
- version_line = stderrdata.splitlines()[0]
- return _VERSION_REGEX.search(version_line).group(1)
+ for line in stderrdata.splitlines():
+ m = _VERSION_REGEX.search(line)
+ if m: return m.group(1)
def Compile(compiler_jar_path, source_paths, flags=None):
Original comment by nishio.hirokazu@gmail.com
on 23 Oct 2013 at 4:38
Attachments:
Original issue reported on code.google.com by
nishio.hirokazu@gmail.com
on 1 Oct 2012 at 7:20