Re: Target VM Microsoft? or Java Lint to check for MS VM compatibility?

From: Vincent Cate (vince_at_offshore.ai)
Date: 12/20/03

  • Next message: Chris Grant: "Flipping Y axis in a Graphics 2D??"
    Date: 19 Dec 2003 15:38:09 -0800
    
    

    Chris Smith <cdsmith@twu.net> wrote in message news:<MPG.1a4cc749902e95f298984c@news.pop4.net>...
    > The Java API version 1.1 also doesn't have Vector.add() The
    > java.util.List-based names for Vector functions were only added with the
    > advent of the Collections API in 1.2. I'm guessing, then, that you only
    > think you are doing that, and that you aren't really doing it at all.

    I just installed j2sdk1.4.2_03 from Sun on a Linux machine and even
    here when I compile with "-target 1.1", I can have Vector.add()
    and it compiles fine (as does under JBuilder). But Microsoft JVM seems to
    need Vector.addElement(). So it is not just JBuilder that thinks
    it is ok in 1.1.

    It is not just my imagination. Really.

    Still wishing for some "portability lint" program for Java ...

       -- Vince


  • Next message: Chris Grant: "Flipping Y axis in a Graphics 2D??"

    Relevant Pages