@@ -63,7 +63,7 @@ public class JavaHome {
63
63
64
64
private static final String JAVA_HOME ;
65
65
66
- private static final String HERMETIC_IMAGE ;
66
+ private static final String HERMETIC_IMAGE_NAME ;
67
67
68
68
private static final String HERMETIC_JAR_JDK_RESOURCES_HOME ;
69
69
@@ -84,10 +84,10 @@ public class JavaHome {
84
84
isHermetic = true ;
85
85
86
86
// JAVA_HOME is the hermetic executable JAR.
87
- HERMETIC_IMAGE = props .getProperty (
87
+ HERMETIC_IMAGE_NAME = props .getProperty (
88
88
"jdk.internal.misc.hermetic.executable" , JAVA_HOME );
89
- if (HERMETIC_IMAGE .equals ("" )) {
90
- throw new IllegalStateException ("Executable is not set" );
89
+ if (HERMETIC_IMAGE_NAME .equals ("" )) {
90
+ throw new IllegalStateException ("Hermetic image is not set" );
91
91
}
92
92
93
93
String javaHome =
@@ -104,12 +104,12 @@ public class JavaHome {
104
104
// Initialize JavaHome explicitly.
105
105
HermeticImageHelper .init (JAVA_HOME );
106
106
107
- HERMETIC_IMAGE_FILE = new File (HERMETIC_IMAGE );
107
+ HERMETIC_IMAGE_FILE = new File (HERMETIC_IMAGE_NAME );
108
108
} else {
109
109
isHermetic = false ;
110
110
jarFileSystem = null ;
111
111
HERMETIC_JAR_JDK_RESOURCES_HOME = "" ;
112
- HERMETIC_IMAGE = "" ;
112
+ HERMETIC_IMAGE_NAME = "" ;
113
113
HERMETIC_IMAGE_FILE = null ;
114
114
}
115
115
}
@@ -122,7 +122,7 @@ public static String hermeticExecutable() {
122
122
if (!isHermetic ()) {
123
123
throw new IllegalStateException ("Not hermetic Java" );
124
124
}
125
- return HERMETIC_IMAGE ;
125
+ return HERMETIC_IMAGE_NAME ;
126
126
}
127
127
128
128
public static File hermeticExecutableFile () {
0 commit comments