Prototype compiler does not understand wildcards ???

The example on page does not compile:
public class Wildcards {
     private static void printCollection(Collection<?> c) {
          for (Object o : c) {
               System.out.println(o);
} The error message looks like the compiler simply does not understand wildcards:
Wildcards.java:6: illegal start of type
     private static void printCollection(Collection<?> c) {
                                                       ^
Wildcards.java:13: > expected
^
2 errorsHas anybody been successful in compiling any use of wildcards?

I can compile your example with 2.2-ea compiler. No errors.

Similar Messages

  • My flash reads the xml, but does not understand the tag php....

    my flash reads the xml, but does not understand the tag php. I want to read my xml dynamically, please help me.
    code:
    stop();
    function randomOrder(targetArray)
        var _loc2 = targetArray.length;
        var _loc3 = [];
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            _loc3[_loc1] = _loc1;
        } // end of for
        var _loc4 = [];
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            _loc4[_loc1] = _loc3.splice(Math.floor(Math.random() * _loc3.length), 1);
        } // end of for
        var _loc5 = [];
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            _loc5[_loc1] = targetArray[_loc4[_loc1]];
        } // end of for
        return (_loc5);
    } // End of the function
    var randomNUM = "?n=" + random(9999);
    _root.lan = 1;
    var homehead;
    var homelink;
    var homelinkwindow;
    var homebg;
    var homeflash;
    var lamp = Array();
    var promo = Array();
    var promobottom = Array();
    var headimg = Array();
    f_xmlwork2 = new XML();
    f_xmlwork2.ignoreWhite=true;
    f_xmlwork2.load("banner.php");
    f_xmlwork2.onLoad = function(sucess){
        if (sucess){
             trace ("XML loaded!");
             f_xmlItemx2 = parseInt(this.firstChild.childNodes[0].firstChild);
             f_totalx2 = f_xmlItemx2.length;
            trace(f_totalx2);
             var _loc12 =0;
             // declarar a imagem de fundo
             homebg = this.firstChild.childNodes[0].firstChild.nodeValue;
             f_headimg = this.childNodes[1];
                 for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++_loc2)    {
    juju = f_headimg.childNodes[_loc2];
    jj = headimg.push({headimg: f_headimg.childNodes[_loc2].attributes.headimg, bgimg: f_headimg.childNodes[_loc2].attributes.bgimg, msgimg: f_headimg.childNodes[_loc2].attributes.msgimg, leftthrow: f_headimg.childNodes[_loc2].attributes.leftthrow, rightthrow: f_headimg.childNodes[_loc2].attributes.rightthrow});
                 //end for
    allpromo = this.childNodes[2];
    jjpromo = allpromo.childNodes;
    for (var _loc2 = 0; _loc2 < allpromo.childNodes.length; ++_loc2)
    trace (jjpromo[_loc2].attributes.title);
    jj = promo.push({img: jjpromo[_loc2].attributes.img, title: jjpromo[_loc2].attributes.title, url: jjpromo[_loc2].attributes.url, window: jjpromo[_loc2].attributes.window, info: jjpromo[_loc2].childNodes[0].nodeValue});
        // end of for
        allpromobottom = this.childNodes[3];
        jjpromobottom = allpromobottom.childNodes;
        for (var _loc2 = 0; _loc2 < allpromobottom.childNodes.length; ++_loc2)
            trace (jjpromo[_loc2].attributes.title);
            jj = promobottom.push({url: jjpromobottom[_loc2].attributes.url, window: jjpromobottom[_loc2].attributes.window, info: jjpromobottom[_loc2].childNodes[0].nodeValue});
        } // end of for
         if (f_xmlwork2.loaded == true)
            headimg = randomOrder(headimg);
            for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++_loc2)
                trace (headimg[_loc2].headimg);
            } // end of for
            play ();
        } // end if
    trace(f_xmlwork2);
    stop();
    PHP code:
    <?
    $link=  mysql_connect("localhost","rnpac_eco","123");
    mysql_select_db("rnpac");
    $dir="banner/";
    $dir1="produtos/img_pro/";
    $dir2="universo/actividades/";
    $sql = 'SELECT tbl_produto.id_produto, tbl_produto.produto, tbl_produto.legenda, tbl_produto.detalhe, tbl_produto.preco, tbl_produto.produto_cat_id, tbl_detalhe_produto.proprietario, tbl_detalhe_produto.local, tbl_detalhe_produto.qualidade, tbl_detalhe_produto.alcool, tbl_detalhe_produto.acidez, tbl_detalhe_produto.ph, tbl_detalhe_produto.informacao, tbl_detalhe_produto.gestor, tbl_detalhe_produto.condicionamento, tbl_detalhe_produto.detalhe_t, tbl_detalhe_produto.interesse, tbl_detalhe_produto.transporte, tbl_detalhe_produto.produto_id, tbl_imagem_produto.id_imagem, tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6
    FROM tbl_cat_produto, tbl_produto, tbl_detalhe_produto, tbl_imagem_produto WHERE tbl_produto.id_produto = tbl_detalhe_produto.produto_id AND tbl_produto.id_produto = tbl_imagem_produto.produto_id ORDER BY RAND()';
    $resultado = mysql_query($sql)
    or die ("Não foi possível realizar a consulta.");
    $row1=mysql_fetch_array($resultado);
    $sql = "SELECT  tbl_sub_universo.id_subuniverso, tbl_sub_universo.subuniverso, tbl_sub_universo.universo_id, tbl_actividade.id_actividade, tbl_actividade.entidade, tbl_actividade.legenda, tbl_actividade.subuniverso_id, tbl_actividade.det, tbl_actividade.preco, tbl_actividade.data, tbl_detalhe_actividade.actividade_id, tbl_detalhe_actividade.periodo, tbl_detalhe_actividade.descricao, tbl_detalhe_actividade.programa, tbl_detalhe_actividade.informacoes, tbl_detalhe_actividade.actividades, tbl_detalhe_actividade.localizacao, tbl_detalhe_actividade.locais, tbl_detalhe_actividade.servicos, tbl_imagem_produto.id_imagem, tbl_imagem_produto.imagem1,tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6, tbl_imagem_produto.actividade_id FROM  tbl_sub_universo, tbl_actividade, tbl_detalhe_actividade, tbl_imagem_produto WHERE tbl_actividade.id_actividade =tbl_imagem_produto.actividade_id AND tbl_actividade.id_actividade =tbl_detalhe_actividade.actividade_id ORDER BY RAND()";
    $resultado = mysql_query($sql)
    or die ("Não foi possível realizar a consulta.");
    $row2=mysql_fetch_array($resultado);
    $query='SELECT * FROM tbl_banner ORDER BY RAND()';
    $resultado = mysql_query($query);
    echo' <?xml version=\"1.0\"?>
    <home_left_headline>
    <bgimg>'.$dir2.''.$row1['imagem1'].'</bgimg>
    </home_left_headline>
    <home_flash>';
    while($row = mysql_fetch_array($resultado)) {
    echo'<swf headimg="" bgimg="" msgimg="" leftthrow="" rightthrow=""></swf>';
    echo'</home_flash>';
    echo'<promotop>
    <promo img="" title="" url="" ><![CDATA[]]></promo>
    <promo img="" title="" url="" ><![CDATA[]]></promo>
    </promotop>';
    mysql_close($link);

    i have two files banner.php, for testing my flash banner.
    This one works:
    -------------------------------| banner.php |---------------------------------------------
    <?xml version="1.0"?>
    <content>
    <settings>
    <menu X='160'/>
    </settings>
    <nav>
    <main Name='HOME' Link='home.swf'/>
    <main Name='EMPRESA' Link='home.swf' >
    <sub Name='HISTORIA' Link='content.swf' toLoad='content/contentrosa.xml'/>
    <sub Name='OBJECTIVO' Link='content.swf' toLoad='content/contentrosa2.xml'/>
    </main></nav>
    </content>
    -------------------------------|end  banner.php |---------------------------------------------
    this other does not work:
    -------------------------------| banner.php |---------------------------------------------
    <?php
    echo"<?xml version="1.0"?>
    <content>
    <settings>
    <menu X='160'/>
    </settings>
    <nav>
    <main Name='HOME' Link='home.swf'/>
    <main Name='EMPRESA' Link='home.swf' >
    <sub Name='HISTORIA' Link='content.swf' toLoad='content/contentrosa.xml'/>
    <sub Name='OBJECTIVO' Link='content.swf' toLoad='content/contentrosa2.xml'/>
    </main></nav>
    </content>";
    ?>
    -------------------------------|end  banner.php |---------------------------------------------
    Why? What is wrong? why does my flash does not understand the tag php
    Message was edited by: armandix

  • DrawString method does not understand special characters

    Hi!
    I would like to send a String to a printer. I have tried the drawString method but my problem is, that it does not understand special charaters. The newline character is not a problem as I can just use the split method and then print the resulting array of strings.
    The big problem is the tab character (\t). Is there any way to make drawString understand this character? Or is there a more simple way to print the text?
    Kind Regards,
    Mikkel

    Thanks for your replies. I have to admit that the problem was a completely different one, a really stupid one!
    The output from the print method looked horrible to say the least (it is basically an array of numbers separated by equals amounts of space). The problem was that the font was not set to be monospaced (!) so you can imagine how the output looked ;)...
    Anyway, thanks for your fast replies. I will look into that class you told about.

  • I have a downloaded font file for a school problem on a flash drive and I do not know how to install it into my photoshop application. Need to be walked through this as I am an older user who does not understand any of this stuff.

    I have a downloaded font file for a school problem on a flash drive and I do not know how to install it into my photoshop application. Need to be walked through this as I am an older user who does not understand any of this stuff.

    Fonts are handled by your operating system and installed through the respective System Control panel (Windows) or Fontbook (Mac). On Windows simply type "Fonts" in the search bar in the start menu and when you open the panel/ folder use File --> Add Font. On Mac the procedures are similar, you just need to find the Fontbook app in Applications:Utilities.
    Mylenium

  • Problem with Call Library Function. Want to pass a string and return a string, but my compiler does not recognize "CStr" and Labview does not recognize my "char *function()" callout

    Hi, I'm trying to use a .DLL I wrote in Visual C++ .NET. The Call Library Function generates a function prototype of "CStr Parser(CStr arg_raw)"
    but my compiler won't accept this. So I change it to how C normally deals with strings "char *Parser(char *arg_raw). Now the Call Librafy Function does not find "Parser" in my .DLL though it is definitely there!
    Help!
    -Fong

    Hello
    You will need to include extcode.h in your C file. You can find this under ..\LabVIEW\cintools folder.
    The include has all the defines you will need.
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • JD3 Compiler does not report invalid package import

    Hi
    JD3
    JDK 1.2.2
    When compiling this class:
    import java.util_error.*;
    public class ImportBug extends Object {
    public ImportBug() {
    Vector v=new Vector();
    I get this compiler error:
    Class Vector not found in class ImportBug
    While a more appropriate message will be to report that the
    import package does not exists (or empty) and point to the wrong
    import line.
    But even more important then that is in case the import line is
    correct but the package is not in the classpath (a very common
    problem) the error you get is that "Vector" is not found while
    you need to get that the "java.util.*" not found.
    Regards,
    Muly.
    null

    You haven't assigned those values to your custom event.
    private function onProgress(e:ProgressEvent):void
         trace(e.bytesLoaded, e.bytesTotal); <- this is giving the right output !!!
         var customProgressEvent:CustomProgressEvent = new CustomProgressEvent("PROGRESSO", CustomProgressEvent.PROGRESS);
         customProgressEvent.argumento = myParameter;
    customProgressEvent.bytesLoaded = e.bytesLoaded;
    customProgressEvent.bytesTotal= e.bytesTotal;
         dispatchEvent(customProgressEvent);

  • LabView project file does not understand mapped directories

    I have my LabView project file and VIs located on a network driver \\svr-maltese\botdfs which I have mapped to my S: drive.  I have a short cut that I use that gets me to
    \\svr-maltese\botdfs\.....\48-000058-001-x01 or I can walk the S: tree down to 48-000058-0001-x01 directory, but I get to the same place and the same files.  Depending on how a get there I will be conficts that have to be manually resolved.  LabView does not seem to understand that they are the same file.  LabWindows has the same problem, but handles it better.
    Solved!
    Go to Solution.
    Attachments:
    Conflicts.JPG ‏44 KB

    Fixing this would be hard and quite costly in terms of performance. For each UNC file LabVIEW would have to query if it is on a network path and if there are alternate paths that also point to the same resource. Then it would have to normalize the paths. Networked file APIs in Windows are notoriously slow and hampered by all kinds of authorization problems where the only way to detect them is to start the operation and hope that it finishes properly, running into lengthy timeouts if it doesn't.
    I doubt you would want LabVIEW to take one minute for every UNC file in a project every time you load that project because it does this alias checking and runs into network timeouts every time.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Luupgrade -t  does not understand patches with a .jar extension?

    Hello,
    The man pages for luupgrade reads like the below should work, but the command errors out. Does luupgade work with .jar patches? Command and ERROR is below. Along with list of patches I am trying to install.
    epicbuild:/u1> luupgrade -t -n vx-rootdg02 -s /u1/SunPatches 'cat /u1/plist'
    Validating the contents of the media </u1/SunPatches>.
    ERROR: The media </u1/SunPatches> does not contain any software patches that can be installed.
    epicbuild:/u1> ls -l /u1/SunPatches
    total 79120
    -rw-r--r-- 1 root other 174383 Jun 11 12:33 112834-06.jar
    -rw-r--r-- 1 root other 5923240 Jun 11 12:33 113073-14.jar
    -rw-r--r-- 1 root other 836345 Jun 11 12:33 113277-52.jar
    -rw-r--r-- 1 root other 152780 Jun 11 12:33 114127-03.jar
    -rw-r--r-- 1 root other 150255 Jun 11 12:33 114129-02.jar
    -rw-r--r-- 1 root other 31616 Jun 11 12:33 116532-03.jar
    -rw-r--r-- 1 root other 15678612 Jun 11 12:34 117171-17.jar
    -rw-r--r-- 1 root other 17450644 Jun 11 12:35 118558-39.jar
    -rw-r--r-- 1 root other 522 Jun 11 12:35 patchpro_dnld_2007.06.11@12:35:55:CDT.txt
    epicbuild:/u1> cat /u1/plist
    113277-52
    112834-06
    114129-02
    114127-03
    113073-14
    116532-03
    117171-17
    118558-39
    epicbuild:/u1>
    Any suggestions on how I get the above patches applied to my alternate boot env?
    If a patch requires the system in single user mode does that apply if applying the patch via luupgrade?

    Hi,
    I've hit the same problem, but I don't understand your solution. Are you saying the answer is no, luupgrade doesn't support .jar files and you have to "jar xf" each patch file?
    Graham

  • "The class being compiled does not match the class that was imported"

    ----------Actions on timeline in
    sixSpices/updateSite/updateSite.fla----------
    import com.sixspices.updater.view.*;
    var calDrawer:CalendarView = new CalendarView(); //Listener /
    view
    ----------sixSpices/com/sixspices/updater/view/CalendarView.as
    file----------
    class CalendarView {
    public function CalendarView(){
    public function onRecieveData(listOfEvents:Array) {
    displayEvents(listOfEvents);
    public function displayEvents(listOfEvents:Array):Void {
    trace(listOfEvents);
    When I test the movie (updateSite.swf) in flash, it gives me
    the error:
    The class being compiled, 'CalendarView', does not match the
    class that was imported,
    'com.sixspices.updater.view.CalendarView'.

    Here is my file structure:
    sixSpices
    -->updateSite
    -->-->updateSite.fla
    -->-->updateSite.swf
    -->com
    -->-->sixSpices
    -->-->-->updater
    -->-->-->-->view
    -->-->-->-->-->Calendar.as
    If I move updateSite.fla to the folder sixSpices so that
    "com" is in the same folder as it, I get the same error.
    The following works with no problems (no similar error):
    ----------Actions on timeline in
    sixSpices/updateSite/updateSite.fla----------
    import com.sixspices.updater.model.*;
    var calModel:CalendarOverview = new CalendarOverview();
    //Broadcaster / model
    ----------sixSpices/com/sixspices/updater/model/CalendarOverview.as
    file----------
    import com.sixspices.updater.model.*;
    import mx.utils.Delegate;
    import mx.events.EventDispatcher;
    class CalendarOverview {
    public function CalendarOverview(){
    }

  • An mov file which play fine in quicktime on my mac mini will not play in quicktime on a windows 7 unit. Error 2048, quicktime does not understand this file. Any ideas as to why it works in mac version of quicktime and not windows version?

    The .mov file sis downloaded from my Sony camera. It is not altered and plays fine on the Mac mini using QuickTime. It will not play on a Windows 7 unit using the latest version of Quicktime. Why would that be? Why will one version of QuickTime work and another not work?

    Also make sure the file type is not of a DivX. That your camera supports. Which QT for Mac also supports, but the Windows version of QT does not support DivX, so you're not purchasing something for the Windows computer that is not needed?

  • SQL Compilation does not highlight erroneous construct

    Hi,
    When I execute a query in SQL Worksheet, if there is an invalid column, it does not highlight which column is invalid. It just gives me a message. Is that a feature fixed in R4? I'm using R3.
    Thanks
    Alex

    I am having exactly the same problem running on Oracle 7.1 I was wondering of anyone has any good ideas on how to resolve this problem in Oracle 7.2.3

  • Javax.scene.media.Media does not understand protocol "bundleresource"

    Hi
    I would like to play a sound file like this
    Media buzzer = new Media(MainApplication.class.getClassLoader().getResource("sounds/buzzer.mp3").toExternalForm());
    MediaPlayer mediaPlayer = new MediaPlayer(buzzer);
    mediaPlayer.play();
    and I was suprised to get this exception:
    Exception in thread "JavaFX Application Thread" java.lang.UnsupportedOperationException: Unsupported protocol "bundleresource"
    at com.sun.media.jfxmedia.locator.Locator.<init>(Locator.java:233)
    at javafx.scene.media.Media.<init>(Media.java:391)
    I was suprised that Media does not support the protocol "bundleresource" when Image does. Of couse I can figure out the location of file and use File.toURI().toString() to get the URI I can pass on to Media.
    I am wondering why this pattern would work for an Image but not for a Media class? Does e(fx)clipse provide this protocol for Image (and could this be extended for Media) or is this built into JavaFX?
    Cheers
    Christoph

    On 02.07.15 23:26, Christoph Keimel wrote:
    > Hi
    >
    > I would like to play a sound file like this
    > Media buzzer = new
    > Media(MainApplication.class.getClassLoader().getResource("sounds/buzzer.mp3").toExternalForm());
    >
    > MediaPlayer mediaPlayer = new MediaPlayer(buzzer);
    > mediaPlayer.play();
    > and I was suprised to get this exception:
    > Exception in thread "JavaFX Application Thread"
    > java.lang.UnsupportedOperationException: Unsupported protocol
    > "bundleresource"
    > at com.sun.media.jfxmedia.locator.Locator.<init>(Locator.java:233)
    > at javafx.scene.media.Media.<init>(Media.java:391)
    >
    > I was suprised that Media does not support the protocol "bundleresource"
    > when Image does. Of couse I can figure out the location of file and use
    > File.toURI().toString() to get the URI I can pass on to Media.
    >
    > I am wondering why this pattern would work for an Image but not for a
    > Media class? Does e(fx)clipse provide this protocol for Image (and could
    > this be extended for Media) or is this built into JavaFX?
    >
    No we are not doing anything special for Image which most likely uses
    Java-Streams whereas the media stuff directly delegates to the native
    code to fetch the stream from an URL. Looking at the code the only 2
    supported protocols are file: and http:
    Tom

  • Siri does not understand certain commands

    When I ask Siri to "Pause" while a song is playing Siri offers me a list of people to call or a web search. Siri does understand "Play" and "Skip".

    Thank you again for your reply..............I have tried the UK Male version and the USA Female version and they are both as bad as each other..............The Australian Girl was slightly better but I thought I would stick to USA Female rather than the UK Male, but I have now reverted to him again to see if it makes a difference, but it did not.  I am going to take it to the Apple store and see if they can resolve the issue!  I will let you know what they come up with if anything at all.  Thank you again for your time and trouble.

  • Java does not understand significant digits?

    Hi, everybody:
    Java states that if you multiply two float variables, you have to declare the product as a double, because if the two operands, for example, each have four decimals places, then the result may have eight decimal places.
    The mathematical concept of significant digits states this is untrue. If each operand is carried out to four decimal places, the product of the two can be no more accurate than four decimal places, which would require the product to be only a float, not a double. For instance, 2.123456789 x 2.1 = 4.5, not 4.4592592569. In this case 2.1 is only accurate to one decimal place, so the product can be no more accurate than one decimal place.
    When I try to declare the product variable as a float I get a compiler error stating a loss of precision, and I'm forced to use improper math and allocate more memory than necessary by declaring the product variable a double.
    Anybody have any insight into this?
    Thanks,
    Rob

    Java states that if you multiply two float variables,
    you have to declare the product as a double, because
    if the two operands, for example, each have four
    decimals places, then the result may have eight
    decimal places.
    Which is quite correct.
    The mathematical concept of significant digits states
    this is untrue. If each operand is carried out to
    four decimal places, the product of the two can be no
    more accurate than four decimal places, which would
    require the product to be only a float, not a double.Which is a very weird concept you're using.
    0.5 * 0.5 is exactly 0.25, yet under your logic it would never be significant to more than one decimal place, so either 0.2 or 0.3.
    >
    Anybody have any insight into this?
    Take some math classes.
    Your core understanding is fundamentally flawed.

  • ICal does not understand entered time

    Maybe this an issue of the German version, hopefully I could also get here some help.
    When I enter a new calendar event,e.g. "Fussballspiel am 21.Jän um 8 Uhr" (so at 8 o'clock) using the "+"-Button, a new event is generated at the specified date but the event would start at 20:00. I have tried 08:00, 8:00 always with the same result.
    Any ideas what am I doing wrong?
    g

    Welcome to Apple Discussions!
    I suggest that you have a corrupted preference file or, worse, a corrupted application. First thing to try would be to quit iCal and then delete the three files that start with com.apple.ical. that you can find in the Preferences folder which is in the Library folder of your home folder.
    When you restart iCal, you will need to go through and set your preferences again as they will have reset to their defaults (this includes, for example, the position of the iCal window on the screen etc.)
    Post back to let us know if this fixes the problem.
    Good luck!
    (Incidentally, it would be a good idea for you to update the information about your system in the Profile in these forums. This response is not affected by your system version, but future ones may be.)

Maybe you are looking for

  • Feature Request: Disable Checkbox for Palette Fade in CS3

    Dear Adobe Team, please be so kind and give us a switch to disable the - Palette Fade Feature - of the CS3 Applications. It just distracts (some of us) from work. - Fast Copy/Paste actions are a bit harder this way, even though it's fast on new machi

  • How do I disengage Yahoo!, Gmail & Hotmail's contact sync?

    I understand that Address Book wants to be the prime contact source one I've sync'd it with my Yahoo mail. No problem. 1st Problem Now that I've sync's Address Book to Yahoo, even though I've gone through and changed the templet in Address Book prefe

  • Explain for some really email about SAP BW

    Hello Gurus,         I have following info from a email:         subject :  'Data Push from BW Successful' ZBPUR_DNC_DATA_PUSH ended without errors. Audit Table: Table name               Start time           End time              # of rows  Incr Star

  • Cropping/modifying FILE SIZE

    I can't seem to crop my pix in such a way that they stay small, so that I can post them to my blog. I crop them small enough, and then Movable Type declares that they are too large to import. Then I go back into iPhoto, check the size of the pic, and

  • Prevent same user login  more than twice in Online examination Application

    Hello Every Body, I want to prevent my user login more than twice in my application so what should i do? If user login twice then third time he must not be able to login and must not be able to attend online exam.. Please somebody help me ....