6e342fc100
2004-07-09 Bryce McKinlay <mckinlay@redhat.com> Fix or remove some bogus test cases. * testsuite/libjava.compile/pr10459_2.java: Removed. * testsuite/libjava.compile/pr10459.java: Test using its own method, not Object.clone(). * testsuite/libjava.compile/inner_data.java: Test against its own protected field. From-SVN: r84420
19 lines
251 B
Java
19 lines
251 B
Java
// Test referencing protected data from parent of inner class.
|
|
|
|
import java.util.Random;
|
|
|
|
public class inner_data
|
|
{
|
|
private class Randomer extends Super {
|
|
public long xxx ()
|
|
{
|
|
return seed;
|
|
}
|
|
}
|
|
}
|
|
|
|
class Super
|
|
{
|
|
protected long seed;
|
|
}
|