src/share/jaxws_classes/com/sun/xml/internal/bind/v2/model/nav/ReflectionNavigator.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 340,369 ****
/**
* Implements the logic for {@link #erasure(Type)}.
*/
private static final TypeVisitor<Class, Void> eraser = new TypeVisitor<Class, Void>() {
! public Class onClass(Class c, Void _) {
return c;
}
! public Class onParameterizdType(ParameterizedType p, Void _) {
// TODO: why getRawType returns Type? not Class?
return visit(p.getRawType(), null);
}
! public Class onGenericArray(GenericArrayType g, Void _) {
return Array.newInstance(
visit(g.getGenericComponentType(), null),
0).getClass();
}
! public Class onVariable(TypeVariable v, Void _) {
! return visit(v.getBounds()[0], null);
}
! public Class onWildcard(WildcardType w, Void _) {
return visit(w.getUpperBounds()[0], null);
}
};
/**
--- 340,369 ----
/**
* Implements the logic for {@link #erasure(Type)}.
*/
private static final TypeVisitor<Class, Void> eraser = new TypeVisitor<Class, Void>() {
! public Class onClass(Class c, Void v) {
return c;
}
! public Class onParameterizdType(ParameterizedType p, Void v) {
// TODO: why getRawType returns Type? not Class?
return visit(p.getRawType(), null);
}
! public Class onGenericArray(GenericArrayType g, Void v) {
return Array.newInstance(
visit(g.getGenericComponentType(), null),
0).getClass();
}
! public Class onVariable(TypeVariable tv, Void v) {
! return visit(tv.getBounds()[0], null);
}
! public Class onWildcard(WildcardType w, Void v) {
return visit(w.getUpperBounds()[0], null);
}
};
/**