Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 9e8e161

Browse files
[[ config ]] Update version of source code expected by javac
This patch updates the java config to change the source version to 1.7, needed by classes using java 7 features. A side effect of the change is that files with unicode chars fail to compile. Setting the encoding to utf8 solves this.
1 parent 9e2bcc9 commit 9e8e161

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/java.gypi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@
6565
[
6666
'<(javac_wrapper_path)',
6767
'<(javac_path)',
68-
'1.5',
68+
'1.7',
6969
'-d', '<(PRODUCT_DIR)/>(java_classes_dir_name)',
7070
'-implicit:none',
7171
'-classpath', '>(java_classpath_param)',
7272
'-sourcepath', '<(java_source_path):<(INTERMEDIATE_DIR)/src/java',
73+
'-encoding utf8',
7374
'<(RULE_INPUT_PATH)',
7475
],
7576
},

0 commit comments

Comments
 (0)