This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Running "mapclass java.lang.StringBuffer => java.lang.StringBuilder;" on "StringBuffer sb = new StringBuffer();" returns "StringBuffer sb = new StringBuilder();". The new expression is converted, but not the variable declaration.
Fixed: ImmutableTreeTransformer wasn't incrementally updating variable types.