*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@754 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent aaf2d4ab6b
commit 3840a9ddde
  1. 2
      jode/jode/type/ClassInterfacesType.java
  2. 35
      jode/test/InnerClass.java

@ -483,7 +483,7 @@ public class ClassInterfacesType extends ReferenceType {
else
type = ClassInfo.javaLangObject;
String name = type.getName();
int dot = name.lastIndexOf('.');
int dot = Math.max(name.lastIndexOf('.'), name.lastIndexOf('$'));
if (dot >= 0)
name = name.substring(dot+1);
if (Character.isUpperCase(name.charAt(0)))

@ -19,49 +19,52 @@
package jode.test;
public class InnerClass {
public class InnerClass
{
private int x;
class Inner {
class Inner
{
int a = 4;
private int b;
Inner() {
b = x;
}
private int b = x;
class InnerInner {
public InnerInner(int c) {
x = c;
a = b;
}
class InnerInner
{
public int getB() {
return Inner.this.getB();
}
public int getStaticB(InnerInner innerinner) {
createInner(InnerClass.this);
return innerinner.getB();
}
public InnerInner(int c) {
x = c;
a = b;
}
}
int getB() {
private int getB() {
return b;
}
public InnerInner createInnerInner(int a) {
return new InnerInner(a);
}
}
class Extended extends Inner.InnerInner{
class Extended
extends Inner.InnerInner
{
Extended(Inner inner) {
inner.super(3);
}
}
static Inner createInner(InnerClass outer) {
private static Inner createInner(InnerClass outer) {
return outer.new Inner();
}

Loading…
Cancel
Save