On Jan 10, 2011, at 9:19 PM, Michael Eugene Artz wrote:

Im not getting the value of the file permission though, only the location of it. I can't understand why this is happening.

When you use System.out.println() to display a Java object, Java calls "toString()" on the object and displays the String that is returned. If you don't override toString() in a class, it inherits the java.lang.Object version, which returns a String that looks like

classn...@123445

Look familiar? If you want to be able to println() your FilePermission objects, then you need to give it a public String toString() method that returns whatever you want displayed.


---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs
PO Box 969, MS 9012                            [email protected]
Livermore, CA 94550                             http://www.jessrules.com





--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected].
--------------------------------------------------------------------

Reply via email to