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: Errr..




On Jan 12, 2006, at 3:15 PM, Bob Irving wrote:

from my current miserable little program....

[javac] Compiling 2 source files to /Users/bobirvin/Sites/ SupplierConnect/build/supplierconnect-ejb
[javac] /Users/bobirvin/Sites/SupplierConnect/src/ejb/com/ kenisys/supplierconnect/handler/PunchoutOrderMessageHandler.java: 81: toString() in java.lang.Object cannot be applied to (long)
[javac] String long_string = toString(order_ID);

You are spelling it wrong:

String long_string = Long.toString(order_ID);

in your case, you are attempting to invoke toString(...) on the current object (i.e. PunchoutOrderMessageHandler), which has no suitable method, rather than explicitly invoking the static toString (long) method on the Long class.

-wilhelm
_______________________________________________
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: 
 >Re: Re: Java Swing and Quartz (From: Brian Foster <email@hidden>)
 >Errr.. (From: Bob Irving <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.