Bug? B4xPath : class file for com.sun.javafx.geom.Path2D not found

stevel05

Expert
Licensed User
Longtime User
I'm trying to wrap B4xPath to enable auto scaling, it's mostly fine but there is a problem using the InitializeOval method . It gives the error:

B4J Version: 9.80
Parsing code. (0.00s)
Java Version: 11
Building folders structure. (0.04s)
Compiling code. (0.01s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
B4J line: 24
Return mPath.InitializeOval(ScaleRect(R))
src\b4j\example\scaledpath.java:118: error: cannot access Path2D
if (true) return (anywheresoftware.b4a.objects.B4XCanvas.B4XRect)(__ref._mpath /*anywheresoftware.b4a.objects.B4XCanvas.B4XPath*/ .InitializeOval(__ref._scalerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ (null,_r)).getObject());
^
class file for com.sun.javafx.geom.Path2D not found
1 error

If I comment that sub the app compiles. Example project attached.
 

Attachments

  • ScaledPath.zip
    2.6 KB · Views: 76
Top