This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Libjava failures status


>>>>> "Andrew" == Andrew Haley <aph@cambridge.redhat.com> writes:

>> Concerning the memory traps, Java has references and bounding
>> checks on arrays.  How can one even access trapping memory in Java?

Andrew> Integer i = null;
Andrew> System.out.print (i);

Actually, this should print "null", due to how
StringBuffer.append(Object) is defined.  Something like this will trap:

    Integer i = null;
    int x = i.intValue ();

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]