Skip to content

Instantly share code, notes, and snippets.

@futurehope
futurehope / JSONTest.cls
Created January 23, 2012 19:29
This class complies and tests fine in Winter '12 but test testWithGetter fails in Spring '12
public with sharing class JSONTest {
public class noGetter {
string a = 'a';
}
public class withGetter {
string a { get{ return 'a'; }}
}
@futurehope
futurehope / RemoteController.cls
Created May 16, 2012 20:00
Visualforce.remoting.Manager.invokeAction bring used correctly? 0,1,2 works in spring12, only single argument works in summer 12 with new method
global class RemoteController {
@RemoteAction
global static String test0Str(){
return '0 arguments';
}
@RemoteAction
global static String test1Str(String str){
return str;