ADC Home > Reference Library > Technical Q&As > Legacy Documents > Java >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Q: I am using AppleScript for Java and I have a routine that shows up as a property
instead of a method in the automatically generated My method:
Shows up in the AppleScript dictionary as:
I was expecting the dictionary to look like this:
Why is this happening? A: If you have a method that uses the standard
Java bean syntax for property accessor routines (i.e., methods that are in the format The method you declared looks like a routine for
setting the value of the This behavior may actually be preferred since it is a lot easier to script an application as:
compared to:
[May 17 1999] |
|