First observation is a difference in font size for views between Java 8 and Java 9 for a B4J UI application (Look4How is a sample application in progress).
Have not explored further yet. See screenshots:
Here is one of the messages (I know the code is not normal usage)
WARNING: Illegal reflective access by anywheresoftware.b4j.object.JavaObject (file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J%20%205.82/Libraries/JavaObject.jar) to method sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl.getType()
Dim rtttype As Object = asJO(con ).RunMethodJO("getAnnotatedReturnType",Null).RunMethod("getType",Null)
I get the warning
If I use
B4X:
Dim rtttype As Object = asJO(Me).RunMethod("getReturnTypeInConstructor",Array(con))
...
public static Object getReturnTypeInConstructor(Constructor c){
Class<?> t = c.getAnnotatedReturnType().getType().getClass();
System.out.println("ret type : "+ c.getAnnotatedReturnType().getType().getTypeName());
return c.getAnnotatedReturnType().getType();
}
...
First observation is a difference in font size for views between Java 8 and Java 9 for a B4J UI application (Look4How is a sample application in progress).
Have not explored further yet. See screenshots: View attachment 59957
There is a lot to explore in the JDK9. Might be worth building a summary of changes.
Just an example related to CSS - See the JDK9 Package javafx.css, select the CSS Reference Guide.
Tooltip: Set the tooltip durations, font size and background color. This applies to all views defined in a form.
Create an external Stylesheet "styles.css" in the dirassets folder, which is added to the B4J Files Manager:
I have currently problems, that the css files of a mac and of windows seems to be different in size. Today i had to correct a design, which was ~ 15% bigger on a mac than on windows. Maybe the size is now identical. When i add a stylesheet with my app, should than be all sizes identical?
Hard to say without seeing it. The actual appearance depends on many style attributes. Some of them come from your CSS file and some of them from the default style.
Whilst progressing with the CustomViews Library jRLViews (see attached) received a warning message when compiling the SliderX example (in folder examples/sliderx).
This comes after installing JDK9 and this kind of warning is documented by Oracle with the advice to report to the maintainers of a class to be aware for future releases - see below.
B4X:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by anywheresoftware.b4j.object.JavaObject (file:/C:/Daten/b4/b4j/opensource/jRLViews/Examples/SliderX/Objects/SliderEx.jar) to method com.sun.javafx.collections.VetoableListDecorator.add(java.lang.Object)
WARNING: Please consider reporting this to the maintainers of anywheresoftware.b4j.object.JavaObject
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
This comes after installing JDK9 and this kind of warning is documented by Oracle with the advice to report to the maintainers of a class to be aware for future releases - see below.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/C:/dir/Master.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release