File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
core/esmf-native-support/src/main/java/org/eclipse/esmf Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -363,8 +363,7 @@ private void setupFontConfiguration() {
363
363
Native .forClass ( "sun.font.CompositeFontDescriptor" )
364
364
.registerEverythingForReflection ();
365
365
Native .forClass ( "sun.font.FontDesignMetrics" )
366
- .registerEverythingForReflection ();
367
- Native .forClass ( "sun.font.FontDesignMetrics" )
366
+ .registerEverythingForReflection ()
368
367
.registerEverythingForJni ();
369
368
Native .forClass ( java .awt .FontMetrics .class )
370
369
.registerFieldsForJni ( "font" )
@@ -400,6 +399,8 @@ private void setupFontConfiguration() {
400
399
.registerMethodForJni ( "readFile" , java .nio .ByteBuffer .class );
401
400
402
401
if ( isWindows () ) {
402
+ Native .forClass ( "sun.awt.FontConfiguration" )
403
+ .registerEverythingForReflection ();
403
404
Native .addResource ( "fontconfig.bfc" );
404
405
}
405
406
}
Original file line number Diff line number Diff line change 40
40
public final class Target_sun_awt_FontConfiguration {
41
41
@ Substitute
42
42
private void readFontConfigFile ( final File f ) {
43
- try ( final InputStream inputStream = Object . class .getResourceAsStream ( "/fontconfig.bfc" ) ) {
43
+ try ( final InputStream inputStream = getClass () .getResourceAsStream ( "/fontconfig.bfc" ) ) {
44
44
loadBinary ( inputStream );
45
- } catch ( final IOException e ) {
46
- throw new RuntimeException ( e );
45
+ } catch ( final IOException exception ) {
46
+ throw new RuntimeException ( exception );
47
47
}
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments