samples/incompatibilities/src-wildimport/org/apidesign/stringandbuffer/AppendStringBuffer.java
1 package org.apidesign.stringandbuffer;
3 /** This code compiles on 1.3 as well as 1.4. However, if compiled on
4 * 1.4, it will throw <code>NoSuchMethodError</code> when executed on
5 * 1.3. How is that possible?
7 public class AppendStringBuffer {
9 // BEGIN: theory.appendstringbuffer
10 StringBuffer sb = new StringBuffer();
11 StringBuffer another = new StringBuffer();
13 // END: theory.appendstringbuffer