JSDoc argument check glitch in entity scopes...

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

JSDoc argument check glitch in entity scopes...

Postby swingman » Thu Jan 29, 2015 11:24 am

Hi all,

on Servoy 7.4.x, if you do the following in an entity scope:

Code: Select all
newRecord(true);


you get a warning

"the function newRecord(Number) is not applicable for the arguments Boolean". According to the documentation for JSFoundSet this should work. So I try

Code: Select all
newRecord(1);


and Servoy Developer is happy. Then you quit developer, start it again, maybe switch to another module. Servoy checks the code again and now reports


"the function newRecord(Boolean) is not applicable for the arguments Number"!!!!!
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1159
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: JSDoc argument check glitch in entity scopes...

Postby jcompagner » Wed Jun 24, 2015 8:23 am

if this still happens with the latest 7.4.4 you could create a case
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7974
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: JSDoc argument check glitch in entity scopes...

Postby swingman » Wed Jun 24, 2015 3:15 pm

ON 7.4.4, java 8 Update 60 (pre release)

Code: Select all
function test() {
    duplicateRecord(1,true,true);
    newRecord(1);
}


in an entity scope, will give two warnings.
- The method duplicateRecord() is not applicable for the arguments
(Number,Boolean,Boolean)
- The method newRecord() is not applicable for the arguments
(Number)
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1159
Joined: Wed Oct 01, 2003 10:20 am
Location: London


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 1 guest