Apple JDK 1.4.1

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Wed Mar 12 2003 - 07:03:12 EST

  • Next message: Ian McDougall: "RE: PB.project on Windows"

    Hi,

    whenever you see a InternalCompilerError with Eclipse and JDK 1.4.1 on
    MacOSX take a look at this class:

    package a.hfhf.fdha.g;
    /*
      * Created on 12.03.2003
      *
      * To change this generated comment go to
      * Window>Preferences>Java>Code Generation>Code Template
      */
    /**
      *..uthor uli
      *
      * To change this generated comment go to
      * Window>Preferences>Java>Code Generation>Code Template
      */
    public class Test {
            //this will fail
            public void test(String string) {
                    if ((Object) string instanceof Test)
                            return;
            }
            //this work
            public void test(String string) {
                    Object object = (Object)string;
                    if (object instanceof Test)
                            return;
            }
    }

    The first method will fail with an InternalCompilerError when you save
    the file.

    Ulrich



    This archive was generated by hypermail 2.0.0 : Wed Mar 12 2003 - 07:06:42 EST