JDK-8290294 : Code Analysis to understand usages of SharedBuffer and SimpleSharedBufferInputStream
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: web
  • Priority: P3
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2022-07-14
  • Updated: 2022-07-15
  • Resolved: 2022-07-15
Description
Code Analysis to understand usages of SharedBuffer and SimpleSharedBufferInputStream in JavaFX API 
Comments
Good. This means that we can consider this a test bug and not a product bug.
15-07-2022

There is only one method call which takes SimpleSharedBufferInputStream as input parameter, as mentioned below: private WCFontCustomPlatformData fwkCreateFontCustomPlatformData( SharedBuffer sharedBuffer) { try { return createFontCustomPlatformData( new SimpleSharedBufferInputStream(sharedBuffer)); fwkCreateFontCustomPlatformData is called from native webkit and also, it is a private method. Hence, it is not an exposed api. Hence, as per the current code usage, we can conclude that the usage of SharedBuffer and SimpleSharedBufferInputStream in unit tests needs to be rewritten. Also, we can say that SharedBuffer and SimpleSharedBufferInputStream are not accessible via public apis in JavaFx
15-07-2022

From the usage in Java apis, it is observed that SharedBuffer is only used in SimpleSharedBufferInputStream, which in turn is used in createFontCustomPlatformData. Further analysis in progress.
15-07-2022