Hello,
Working with indexed strings I noticed a Java compilation warning (java "1.8.0_152") in NetRexx (3.07), Program test.nrx === class test === function main(String[]) Note: /test.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Compilation of 'test.nrx' successful I do not remember getting this in the previous release (3.06). I reproduced this with the standard example from the NetRexx Language Reference (page 88). ------------------------------------------------------------------------------------------------ Class test public Method main(args=String[]) public static mycoll = '' mycoll['Tom'] = 1 mycoll['Dick'] = 2 mycoll['Harry'] = 3 Loop name over mycoll Say mycoll[name] end ------------------------------------------------------------------------------------------------ Comments and/or suggestions are welcome. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Gustavo,
this is a message from the Java compiler, not NetRexx. René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Yes, but the NetRexx compiler's job is to ensure there are no
messages from the Java compiler ...
Mike
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Mike & Rene, Many Thanks for this explanation ... Kindly, Thomas. ======================================================================== Am 08.11.2018 um 08:51 schrieb Mike
Cowlishaw:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
In reply to this post by Mike Cowlishaw
Hi Mike,
true, but in some cases, generics come to mind, java has changed its attitude on what is desirable; we could suppress these messages (as was done sometimes); I need to have a closer look at what particular deprecation is flagged here. best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
:-) Yes .. I often have similar problems with GCC
.. something that was fine before now raises a warning. Since I only
accept clean compiles (no warnings or errors) in my code, sometimes some quite
big reworking is needed. <sigh>
Mike
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |