@@ -156,7 +156,7 @@ public void afterRegistration(AfterRegistrationAccess access) {
156
156
}
157
157
158
158
@ TargetClass (value = java .nio .file .spi .FileSystemProvider .class , onlyWith = JDKInitializedAtBuildTime .class )
159
- final class Target_java_nio_file_spi_FileSystemProvider {
159
+ final class Target_java_nio_file_spi_FileSystemProvider_BuildTime {
160
160
@ Substitute
161
161
public static List <FileSystemProvider > installedProviders () {
162
162
return ImageSingletons .lookup (FileSystemProviderBuildTimeInitSupport .class ).installedProvidersImmutable ;
@@ -187,10 +187,10 @@ public static List<FileSystemProvider> installedProviders() {
187
187
*/
188
188
@ TargetClass (className = "sun.nio.fs.UnixFileSystem" , onlyWith = JDKInitializedAtBuildTime .class )
189
189
@ Platforms ({Platform .LINUX .class , Platform .DARWIN .class })
190
- final class Target_sun_nio_fs_UnixFileSystem {
190
+ final class Target_sun_nio_fs_UnixFileSystem_BuildTime {
191
191
192
192
@ Alias //
193
- Target_sun_nio_fs_UnixFileSystemProvider provider ;
193
+ Target_sun_nio_fs_UnixFileSystemProvider_BuildTime provider ;
194
194
195
195
/*
196
196
* All fields of UnixFileSystem that contain state. At this point, the subclasses
@@ -207,7 +207,7 @@ final class Target_sun_nio_fs_UnixFileSystem {
207
207
private boolean needToResolveAgainstDefaultDirectory ;
208
208
@ Alias //
209
209
@ InjectAccessors (UnixFileSystemAccessors .class ) //
210
- private Target_sun_nio_fs_UnixPath rootDirectory ;
210
+ private Target_sun_nio_fs_UnixPath_BuildTime rootDirectory ;
211
211
212
212
/**
213
213
* Flag to check if reinitialization at run time is needed. For objects in the image heap, this
@@ -231,21 +231,21 @@ final class Target_sun_nio_fs_UnixFileSystem {
231
231
boolean injectedNeedToResolveAgainstDefaultDirectory ;
232
232
@ Inject //
233
233
@ RecomputeFieldValue (kind = Kind .Reset )//
234
- Target_sun_nio_fs_UnixPath injectedRootDirectory ;
234
+ Target_sun_nio_fs_UnixPath_BuildTime injectedRootDirectory ;
235
235
236
236
@ Alias
237
237
@ TargetElement (name = TargetElement .CONSTRUCTOR_NAME )
238
- native void originalConstructor (Target_sun_nio_fs_UnixFileSystemProvider p , String dir );
238
+ native void originalConstructor (Target_sun_nio_fs_UnixFileSystemProvider_BuildTime p , String dir );
239
239
}
240
240
241
241
@ TargetClass (className = "sun.nio.fs.UnixFileSystemProvider" , onlyWith = JDKInitializedAtBuildTime .class )
242
242
@ Platforms ({Platform .LINUX .class , Platform .DARWIN .class })
243
- final class Target_sun_nio_fs_UnixFileSystemProvider {
243
+ final class Target_sun_nio_fs_UnixFileSystemProvider_BuildTime {
244
244
}
245
245
246
246
@ TargetClass (className = "sun.nio.fs.UnixPath" , onlyWith = JDKInitializedAtBuildTime .class )
247
247
@ Platforms ({Platform .LINUX .class , Platform .DARWIN .class })
248
- final class Target_sun_nio_fs_UnixPath {
248
+ final class Target_sun_nio_fs_UnixPath_BuildTime {
249
249
}
250
250
251
251
class NeedsReinitializationProvider implements FieldValueTransformer {
@@ -271,21 +271,21 @@ class UnixFileSystemAccessors {
271
271
* first access of any of the fields.
272
272
*/
273
273
274
- static byte [] getDefaultDirectory (Target_sun_nio_fs_UnixFileSystem that ) {
274
+ static byte [] getDefaultDirectory (Target_sun_nio_fs_UnixFileSystem_BuildTime that ) {
275
275
if (that .needsReinitialization != NeedsReinitializationProvider .STATUS_REINITIALIZED ) {
276
276
reinitialize (that );
277
277
}
278
278
return that .injectedDefaultDirectory ;
279
279
}
280
280
281
- static boolean getNeedToResolveAgainstDefaultDirectory (Target_sun_nio_fs_UnixFileSystem that ) {
281
+ static boolean getNeedToResolveAgainstDefaultDirectory (Target_sun_nio_fs_UnixFileSystem_BuildTime that ) {
282
282
if (that .needsReinitialization != NeedsReinitializationProvider .STATUS_REINITIALIZED ) {
283
283
reinitialize (that );
284
284
}
285
285
return that .injectedNeedToResolveAgainstDefaultDirectory ;
286
286
}
287
287
288
- static Target_sun_nio_fs_UnixPath getRootDirectory (Target_sun_nio_fs_UnixFileSystem that ) {
288
+ static Target_sun_nio_fs_UnixPath_BuildTime getRootDirectory (Target_sun_nio_fs_UnixFileSystem_BuildTime that ) {
289
289
if (that .needsReinitialization != NeedsReinitializationProvider .STATUS_REINITIALIZED ) {
290
290
reinitialize (that );
291
291
}
@@ -298,23 +298,23 @@ static Target_sun_nio_fs_UnixPath getRootDirectory(Target_sun_nio_fs_UnixFileSys
298
298
* of the constructor to write to the injected fields directly.
299
299
*/
300
300
301
- static void setDefaultDirectory (Target_sun_nio_fs_UnixFileSystem that , byte [] value ) {
301
+ static void setDefaultDirectory (Target_sun_nio_fs_UnixFileSystem_BuildTime that , byte [] value ) {
302
302
that .injectedDefaultDirectory = value ;
303
303
}
304
304
305
- static void setNeedToResolveAgainstDefaultDirectory (Target_sun_nio_fs_UnixFileSystem that , boolean value ) {
305
+ static void setNeedToResolveAgainstDefaultDirectory (Target_sun_nio_fs_UnixFileSystem_BuildTime that , boolean value ) {
306
306
that .injectedNeedToResolveAgainstDefaultDirectory = value ;
307
307
}
308
308
309
- static void setRootDirectory (Target_sun_nio_fs_UnixFileSystem that , Target_sun_nio_fs_UnixPath value ) {
309
+ static void setRootDirectory (Target_sun_nio_fs_UnixFileSystem_BuildTime that , Target_sun_nio_fs_UnixPath_BuildTime value ) {
310
310
that .injectedRootDirectory = value ;
311
311
}
312
312
313
313
@ BasedOnJDKFile ("https://github.com/openjdk/jdk/blob/jdk-25+20/src/java.base/linux/classes/sun/nio/fs/LinuxFileSystem.java#L44-L46" )
314
314
@ BasedOnJDKFile ("https://github.com/openjdk/jdk/blob/jdk-25+20/src/java.base/linux/classes/sun/nio/fs/LinuxFileSystemProvider.java#L45-L47" )
315
315
@ BasedOnJDKFile ("https://github.com/openjdk/jdk/blob/jdk-25+20/src/java.base/unix/classes/sun/nio/fs/UnixFileSystemProvider.java#L75-L77" )
316
316
@ BasedOnJDKFile ("https://github.com/openjdk/jdk/blob/jdk-25+20/src/java.base/unix/classes/sun/nio/fs/UnixFileSystem.java#L78-L108" )
317
- private static synchronized void reinitialize (Target_sun_nio_fs_UnixFileSystem that ) {
317
+ private static synchronized void reinitialize (Target_sun_nio_fs_UnixFileSystem_BuildTime that ) {
318
318
if (that .needsReinitialization != NeedsReinitializationProvider .STATUS_NEEDS_REINITIALIZATION ) {
319
319
/* Field initialized is volatile, so double-checked locking is OK. */
320
320
return ;
@@ -350,10 +350,10 @@ private static synchronized void reinitialize(Target_sun_nio_fs_UnixFileSystem t
350
350
351
351
@ TargetClass (className = "sun.nio.fs.WindowsFileSystem" )
352
352
@ Platforms ({Platform .WINDOWS .class })
353
- final class Target_sun_nio_fs_WindowsFileSystem {
353
+ final class Target_sun_nio_fs_WindowsFileSystem_BuildTime {
354
354
355
355
@ Alias //
356
- Target_sun_nio_fs_WindowsFileSystemProvider provider ;
356
+ Target_sun_nio_fs_WindowsFileSystemProvider_BuildTime provider ;
357
357
358
358
@ Alias //
359
359
@ InjectAccessors (WindowsFileSystemAccessors .class ) //
@@ -375,39 +375,39 @@ final class Target_sun_nio_fs_WindowsFileSystem {
375
375
376
376
@ Alias
377
377
@ TargetElement (name = TargetElement .CONSTRUCTOR_NAME )
378
- native void originalConstructor (Target_sun_nio_fs_WindowsFileSystemProvider p , String dir );
378
+ native void originalConstructor (Target_sun_nio_fs_WindowsFileSystemProvider_BuildTime p , String dir );
379
379
}
380
380
381
381
@ TargetClass (className = "sun.nio.fs.WindowsFileSystemProvider" )
382
382
@ Platforms ({Platform .WINDOWS .class })
383
- final class Target_sun_nio_fs_WindowsFileSystemProvider {
383
+ final class Target_sun_nio_fs_WindowsFileSystemProvider_BuildTime {
384
384
}
385
385
386
386
@ Platforms ({Platform .WINDOWS .class })
387
387
class WindowsFileSystemAccessors {
388
- static String getDefaultDirectory (Target_sun_nio_fs_WindowsFileSystem that ) {
388
+ static String getDefaultDirectory (Target_sun_nio_fs_WindowsFileSystem_BuildTime that ) {
389
389
if (that .needsReinitialization != NeedsReinitializationProvider .STATUS_REINITIALIZED ) {
390
390
reinitialize (that );
391
391
}
392
392
return that .injectedDefaultDirectory ;
393
393
}
394
394
395
- static String getDefaultRoot (Target_sun_nio_fs_WindowsFileSystem that ) {
395
+ static String getDefaultRoot (Target_sun_nio_fs_WindowsFileSystem_BuildTime that ) {
396
396
if (that .needsReinitialization != NeedsReinitializationProvider .STATUS_REINITIALIZED ) {
397
397
reinitialize (that );
398
398
}
399
399
return that .injectedDefaultRoot ;
400
400
}
401
401
402
- static void setDefaultDirectory (Target_sun_nio_fs_WindowsFileSystem that , String value ) {
402
+ static void setDefaultDirectory (Target_sun_nio_fs_WindowsFileSystem_BuildTime that , String value ) {
403
403
that .injectedDefaultDirectory = value ;
404
404
}
405
405
406
- static void setDefaultRoot (Target_sun_nio_fs_WindowsFileSystem that , String value ) {
406
+ static void setDefaultRoot (Target_sun_nio_fs_WindowsFileSystem_BuildTime that , String value ) {
407
407
that .injectedDefaultRoot = value ;
408
408
}
409
409
410
- private static synchronized void reinitialize (Target_sun_nio_fs_WindowsFileSystem that ) {
410
+ private static synchronized void reinitialize (Target_sun_nio_fs_WindowsFileSystem_BuildTime that ) {
411
411
if (that .needsReinitialization != NeedsReinitializationProvider .STATUS_NEEDS_REINITIALIZATION ) {
412
412
return ;
413
413
}
@@ -419,23 +419,23 @@ private static synchronized void reinitialize(Target_sun_nio_fs_WindowsFileSyste
419
419
420
420
@ TargetClass (className = "java.io.UnixFileSystem" , onlyWith = JDKInitializedAtBuildTime .class )
421
421
@ Platforms ({Platform .LINUX .class , Platform .DARWIN .class })
422
- final class Target_java_io_UnixFileSystem {
422
+ final class Target_java_io_UnixFileSystem_BuildTime {
423
423
424
424
@ Alias //
425
425
@ InjectAccessors (UserDirAccessors .class ) //
426
426
private String userDir ;
427
427
}
428
428
429
429
@ TargetClass (className = "java.io.FileSystem" , onlyWith = JDKInitializedAtBuildTime .class )
430
- final class Target_java_io_FileSystem {
430
+ final class Target_java_io_FileSystem_BuildTime {
431
431
432
432
@ Alias
433
433
native String normalize (String path );
434
434
}
435
435
436
436
class UserDirAccessors {
437
437
@ SuppressWarnings ("unused" )
438
- static String getUserDir (Target_java_io_FileSystem that ) {
438
+ static String getUserDir (Target_java_io_FileSystem_BuildTime that ) {
439
439
if (Platform .includedIn (Platform .WINDOWS .class )) {
440
440
/*
441
441
* Note that on Windows, we normalize the property value (JDK-8198997) and do not use
@@ -447,14 +447,14 @@ static String getUserDir(Target_java_io_FileSystem that) {
447
447
}
448
448
449
449
@ SuppressWarnings ("unused" )
450
- static void setUserDir (Target_java_io_FileSystem that , String value ) {
450
+ static void setUserDir (Target_java_io_FileSystem_BuildTime that , String value ) {
451
451
throw VMError .shouldNotReachHere ("Field userDir is initialized at build time" );
452
452
}
453
453
}
454
454
455
455
@ TargetClass (className = "java.io.WinNTFileSystem" )
456
456
@ Platforms (Platform .WINDOWS .class )
457
- final class Target_java_io_WinNTFileSystem {
457
+ final class Target_java_io_WinNTFileSystem_BuildTime {
458
458
459
459
@ Alias //
460
460
@ InjectAccessors (UserDirAccessors .class ) //
0 commit comments