Mailing Lists: Apple Mailing Lists

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

Summary: Re: How do I debug "old interface" errors?



My thanks to all who replied. I was having a problem with an applet that ran fine in XCode, but failed when using an older browser. There were some swing classes that were supposed to be "hidden", but weren't.

In answer to how many browsers on currently used machines don't have swing, I found that the answer at our hospital was all of them, with java version 1.1.4! I will be writing a more detailed summary of what I found in another email.

Larry Nussbaum outlined the solution that finally worked, which was double indirection, hiding the offending swing classes in classes that only get instantiated if there is swing on the target.

Greg Guerin correctly identified the problem of SpinnerModel being 1.4 or later only, so that OS X browsers that only support 1.3, which is every browser except Safari as far as I can tell, failed even though they have swing.

Gerard Davison and Greg Guerin both mentioned using the -verbose command to force a listing of the classes loaded. This proved to be very helpful, because it allowed me to identify not only when swing classes were being loaded, but where, by which classes were loaded just before and after.

Thanks to all for the help! It works now, at least all of the major functions.

David Linker

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

This email sent to email@hidden
References: 
 >How do I debug "old interface" errors? (From: David Linker <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.