OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-03-19 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git]
/
libjava
/
testsuite
/
libjava.lang
/
PR242.java
1
class Base
2
{
3
int someNum()
4
{
5
System.out.println ("ok");
6
return 0;
7
}
8
}
9
10
public class PR242 extends Base
11
{
12
public static void main(String args[])
13
{
14
new PR242();
15
}
16
17
PR242()
18
{
19
new Inner().a();
20
}
21
22
class Inner
23
{
24
public int dummy()
25
{
26
System.out.println ("wrong method called!!");
27
return -1;
28
}
29
30
public void a()
31
{
32
System.out.println ("...");
33
System.out.println (someNum());
34
}
35
}
36
}