I'm writing a Cocoa-Java app and have run into a problem. I'm
trying to use 'java.security.MessageDigest' in my code and it will
not compile. I'm using XCode and and the compiler complains:
cannot resolve symbol : class getInstance
The code is initializing a MessageDigest object:
MessageDigest md = new MessageDigest.getInstance("SHA-1");
Your syntax is wrong. getInstance() is a static method. Drop the "new":
Rick
_______________________________________________
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