I have some code, where I'm calling java from javascript (for example, I'm using JavaFX). Generally, it works very good, but I have a minor, reocurring, annoying issue in the developer.
I can annotate the types using the full class hierarchy like this:
- Code: Select all
/**
* @param {javafx.scene.Node} node
*/
function someFunction(node) {
/** @type {javafx.scene.control.TextField} */
var otherNode = node;
}
As I write the code, I have no warnings. The types resolve ok. After a developer restart and project clean, the developer builds the code and generates warning build markers for every javafx type and almost every plugin ("unknown type xxx"). As if the classes are not loaded. When I open the script file, make some minor change (for example space+backspace) and save, the script gets built again (I have auto-build on), and the warnings disappear for that script. The warnings also disappear completely, when I clean the build a second time.
Does anybody else have the issue?