Autocompletion and inspection Java objects in JavaScrips proposal

If you use JavaScript in your java code you will be missing autocompletion
and inspections on java objects you define in java context (or any other
java objects for that matter)

It would be really great if we could annotate such implicit variabls with
its java class, all the great javascript features would work for them!
Essentially you already have the same functionality implemented in velocity
templates. Why not in JavaScript :)

For example I have jdo and log in my scripting context so I will be using it

var employee = jdo.getEmployee(12345);
log.debug(employee);


if I could annotate jdo as

//@var jdo = com.peacetech.hr.JdoHelper

you would know what jdo is!



Please sign in to leave a comment.