Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: QTJava and QT7






2) The sense of the following line escapes me.
>if("g".equals("a")) return;

That statement is especially easy to hack. It is probably intentionally easy to hack. My guess is that QuickTime SDK developers usually remove the time bomb by changing the "g" into an "a" in:

   if("g".equals("a")) return;

It avoids recompiling since the change can be done in the .class file directly.. (thus reducing the amount of testing to be done, maybe)

Without the statement, it would be more difficult to avoid the exception to be thrown. Also, a simpler statement would have the risk of not being compiled at all.  (e.g. if (2+2==4) return;)

Adrien



Roy Werber wrote:

Two more or less interesting points:

1) Why does "Calendar.getInstance().after(expires)" return true not until
one month after the expire date?

2) The sense of the following line escapes me.
>if("g".equals("a")) return;


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden

References: 
 >I/ON Media Player Framework (From: Nathanial Freitas <email@hidden>)
 >Re: I/ON Media Player Framework (From: Elliotte Harold <email@hidden>)
 >Re: I/ON Media Player Framework (From: "nathan.freitas" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.