To som uz zistila, ale co mi robi problem je upravit moj zapis: MessageFormat.format(sMessage, sArgs);
aby nevyhadzoval warning. Ale ked sa nad tym tak zamyslam, asi to nepojde... Radovana Straube --- Martin Krajci <[EMAIL PROTECTED]> wrote: > Dobry den, > > Ked si pozrete API > > MessageFormat.format > > v 1.4 a .1.5 > > http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html > http://java.sun.com/j2se/1.5.0/docs/api/java/text/MessageFormat.html > > tak zistite ze metoda zmenila deklaraciu. V 1.5 je > to metoda s > premenlivym poctom parametrov, kde v 1.4 to bola > metoda s 2-ma parametrami. > > Martin Krajci > > Radovana Straube wrote: > > Dobry den, > > > > pokusam sa skompilovat zdrojaky pisane pre JDK 1.4 > pod > > JDK 1.5. Pri kompilacii nasledovneho kodu > > > > String sMessage=... > > String[] sArgs=... > > MessageFormat.format(sMessage, sArgs); > > > > dostanem vzdy tento warning: > > > > warning: non-varargs call of varargs method with > > inexact argument type for last parameter; > > > > Bohuzial som na tuto temo nevygooglila nic > > pouzitelneho. Mohol by mi prosim niekto vysvetlit > v > > com je problem? > > > > Dakujem > > Radovana Straube > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs > Email Security System. > > For more information please visit > http://www.messagelabs.com/email > > > ______________________________________________________________________ > > > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email > Security System. > For more information please visit > http://www.messagelabs.com/email > ______________________________________________________________________ > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
