function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
richardvrichardv 

SelectOption weirdness

Run this anonymously:

 

Object op1 = new SelectOption('xyz','abc');
System.debug('op1 instanceof SelectOption: ' + (op1 instanceof SelectOption));

 

Any ideas on why this errors out?

WesNolte__cWesNolte__c

Bug!

 

That error that you get is caused by an uncaught Java exception in code underlying Apex. If you quote that error Id to salesforce (or your product manager if you have one) they can check it out for you.

 

Good Luck, 

 

Wes 

richardvrichardv

Thanks for the confirmation Wes.  I'll submit it as a bug.

 

-Richard