8173605: Remove support for source and target 1.7 option in javac
Reviewed-by: vromero
This commit is contained in:
parent
7c2f2994da
commit
2d18dda3f2
@ -163,7 +163,7 @@ public enum Source {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static final Source MIN = Source.JDK7;
|
||||
public static final Source MIN = Source.JDK8;
|
||||
|
||||
private static final Source MAX = values()[values().length - 1];
|
||||
|
||||
@ -207,26 +207,15 @@ public enum Source {
|
||||
*/
|
||||
public enum Feature {
|
||||
|
||||
DIAMOND(JDK7, Fragments.FeatureDiamond, DiagKind.NORMAL),
|
||||
DIAMOND(MIN, Fragments.FeatureDiamond, DiagKind.NORMAL), // Used in Analyzer
|
||||
MODULES(JDK9, Fragments.FeatureModules, DiagKind.PLURAL),
|
||||
EFFECTIVELY_FINAL_VARIABLES_IN_TRY_WITH_RESOURCES(JDK9, Fragments.FeatureVarInTryWithResources, DiagKind.PLURAL),
|
||||
DEPRECATION_ON_IMPORT(MIN, JDK8),
|
||||
POLY(JDK8),
|
||||
LAMBDA(JDK8, Fragments.FeatureLambda, DiagKind.PLURAL),
|
||||
METHOD_REFERENCES(JDK8, Fragments.FeatureMethodReferences, DiagKind.PLURAL),
|
||||
DEFAULT_METHODS(JDK8, Fragments.FeatureDefaultMethods, DiagKind.PLURAL),
|
||||
STATIC_INTERFACE_METHODS(JDK8, Fragments.FeatureStaticIntfMethods, DiagKind.PLURAL),
|
||||
STATIC_INTERFACE_METHODS_INVOKE(JDK8, Fragments.FeatureStaticIntfMethodInvoke, DiagKind.PLURAL),
|
||||
STRICT_METHOD_CLASH_CHECK(JDK8),
|
||||
EFFECTIVELY_FINAL_IN_INNER_CLASSES(JDK8),
|
||||
TYPE_ANNOTATIONS(JDK8, Fragments.FeatureTypeAnnotations, DiagKind.PLURAL),
|
||||
ANNOTATIONS_AFTER_TYPE_PARAMS(JDK8, Fragments.FeatureAnnotationsAfterTypeParams, DiagKind.PLURAL),
|
||||
REPEATED_ANNOTATIONS(JDK8, Fragments.FeatureRepeatableAnnotations, DiagKind.PLURAL),
|
||||
INTERSECTION_TYPES_IN_CAST(JDK8, Fragments.FeatureIntersectionTypesInCast, DiagKind.PLURAL),
|
||||
GRAPH_INFERENCE(JDK8),
|
||||
FUNCTIONAL_INTERFACE_MOST_SPECIFIC(JDK8),
|
||||
POST_APPLICABILITY_VARARGS_ACCESS_CHECK(JDK8),
|
||||
MAP_CAPTURES_TO_BOUNDS(MIN, JDK7),
|
||||
GRAPH_INFERENCE(JDK8), // Used in Analyzer
|
||||
PRIVATE_SAFE_VARARGS(JDK9),
|
||||
DIAMOND_WITH_ANONYMOUS_CLASS_CREATION(JDK9, Fragments.FeatureDiamondAndAnonClass, DiagKind.NORMAL),
|
||||
UNDERSCORE_IDENTIFIER(MIN, JDK8),
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, 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
|
||||
@ -2125,21 +2125,6 @@ public abstract class Type extends AnnoConstruct implements TypeMirror, PoolCons
|
||||
|
||||
/** add a bound of a given kind - this might trigger listener notification */
|
||||
public final void addBound(InferenceBound ib, Type bound, Types types) {
|
||||
// Per JDK-8075793: in pre-8 sources, follow legacy javac behavior
|
||||
// when capture variables are inferred as bounds: for lower bounds,
|
||||
// map to the capture variable's upper bound; for upper bounds,
|
||||
// if the capture variable has a lower bound, map to that type
|
||||
if (types.mapCapturesToBounds) {
|
||||
switch (ib) {
|
||||
case LOWER:
|
||||
bound = types.cvarUpperBound(bound);
|
||||
break;
|
||||
case UPPER:
|
||||
Type altBound = types.cvarLowerBound(bound);
|
||||
if (!altBound.hasTag(TypeTag.BOT)) bound = altBound;
|
||||
break;
|
||||
}
|
||||
}
|
||||
addBound(ib, bound, types, false);
|
||||
}
|
||||
|
||||
|
@ -92,8 +92,6 @@ public class Types {
|
||||
final Symtab syms;
|
||||
final JavacMessages messages;
|
||||
final Names names;
|
||||
final boolean allowDefaultMethods;
|
||||
final boolean mapCapturesToBounds;
|
||||
final Check chk;
|
||||
final Enter enter;
|
||||
JCDiagnostic.Factory diags;
|
||||
@ -115,8 +113,6 @@ public class Types {
|
||||
syms = Symtab.instance(context);
|
||||
names = Names.instance(context);
|
||||
Source source = Source.instance(context);
|
||||
allowDefaultMethods = Feature.DEFAULT_METHODS.allowedInSource(source);
|
||||
mapCapturesToBounds = Feature.MAP_CAPTURES_TO_BOUNDS.allowedInSource(source);
|
||||
chk = Check.instance(context);
|
||||
enter = Enter.instance(context);
|
||||
capturedName = names.fromString("<captured wildcard>");
|
||||
@ -3126,11 +3122,9 @@ public class Types {
|
||||
MethodSymbol implmeth = absmeth.implementation(impl, this, true);
|
||||
if (implmeth == null || implmeth == absmeth) {
|
||||
//look for default implementations
|
||||
if (allowDefaultMethods) {
|
||||
MethodSymbol prov = interfaceCandidates(impl.type, absmeth).head;
|
||||
if (prov != null && prov.overrides(absmeth, impl, this, true)) {
|
||||
implmeth = prov;
|
||||
}
|
||||
MethodSymbol prov = interfaceCandidates(impl.type, absmeth).head;
|
||||
if (prov != null && prov.overrides(absmeth, impl, this, true)) {
|
||||
implmeth = prov;
|
||||
}
|
||||
}
|
||||
if (implmeth == null || implmeth == absmeth) {
|
||||
|
@ -101,7 +101,6 @@ public class Annotate {
|
||||
private final Types types;
|
||||
|
||||
private final Attribute theUnfinishedDefaultValue;
|
||||
private final boolean allowRepeatedAnnos;
|
||||
private final String sourceName;
|
||||
|
||||
protected Annotate(Context context) {
|
||||
@ -124,7 +123,6 @@ public class Annotate {
|
||||
theUnfinishedDefaultValue = new Attribute.Error(syms.errType);
|
||||
|
||||
Source source = Source.instance(context);
|
||||
allowRepeatedAnnos = Feature.REPEATED_ANNOTATIONS.allowedInSource(source);
|
||||
sourceName = source.name;
|
||||
|
||||
blockCount = 1;
|
||||
@ -347,9 +345,6 @@ public class Annotate {
|
||||
|
||||
if (a.type.isErroneous() || a.type.tsym.isAnnotationType()) {
|
||||
if (annotated.containsKey(a.type.tsym)) {
|
||||
if (!allowRepeatedAnnos) {
|
||||
log.error(DiagnosticFlag.SOURCE_LEVEL, a.pos(), Feature.REPEATED_ANNOTATIONS.error(sourceName));
|
||||
}
|
||||
ListBuffer<T> l = annotated.get(a.type.tsym);
|
||||
l = l.append(c);
|
||||
annotated.put(a.type.tsym, l);
|
||||
|
@ -167,10 +167,7 @@ public class Attr extends JCTree.Visitor {
|
||||
|
||||
Source source = Source.instance(context);
|
||||
allowPoly = Feature.POLY.allowedInSource(source);
|
||||
allowTypeAnnos = Feature.TYPE_ANNOTATIONS.allowedInSource(source);
|
||||
allowLambda = Feature.LAMBDA.allowedInSource(source);
|
||||
allowDefaultMethods = Feature.DEFAULT_METHODS.allowedInSource(source);
|
||||
allowStaticInterfaceMethods = Feature.STATIC_INTERFACE_METHODS.allowedInSource(source);
|
||||
allowReifiableTypesInInstanceof = Feature.REIFIABLE_TYPES_INSTANCEOF.allowedInSource(source);
|
||||
allowRecords = Feature.RECORDS.allowedInSource(source);
|
||||
allowPatternSwitch = (preview.isEnabled() || !preview.isPreview(Feature.PATTERN_SWITCH)) &&
|
||||
@ -193,22 +190,10 @@ public class Attr extends JCTree.Visitor {
|
||||
*/
|
||||
boolean allowPoly;
|
||||
|
||||
/** Switch: support type annotations.
|
||||
*/
|
||||
boolean allowTypeAnnos;
|
||||
|
||||
/** Switch: support lambda expressions ?
|
||||
*/
|
||||
boolean allowLambda;
|
||||
|
||||
/** Switch: support default methods ?
|
||||
*/
|
||||
boolean allowDefaultMethods;
|
||||
|
||||
/** Switch: static interface methods enabled?
|
||||
*/
|
||||
boolean allowStaticInterfaceMethods;
|
||||
|
||||
/** Switch: reifiable types in instanceof enabled?
|
||||
*/
|
||||
boolean allowReifiableTypesInInstanceof;
|
||||
@ -4462,10 +4447,6 @@ public class Attr extends JCTree.Visitor {
|
||||
tree.pos(), site, sym.name, true);
|
||||
}
|
||||
}
|
||||
if (!allowStaticInterfaceMethods && sitesym.isInterface() &&
|
||||
sym.isStatic() && sym.kind == MTH) {
|
||||
log.error(DiagnosticFlag.SOURCE_LEVEL, tree.pos(), Feature.STATIC_INTERFACE_METHODS_INVOKE.error(sourceName));
|
||||
}
|
||||
} else if (sym.kind != ERR &&
|
||||
(sym.flags() & STATIC) != 0 &&
|
||||
sym.name != names._class) {
|
||||
@ -5571,9 +5552,7 @@ public class Attr extends JCTree.Visitor {
|
||||
// are compatible (i.e. no two define methods with same arguments
|
||||
// yet different return types). (JLS 8.4.8.3)
|
||||
chk.checkCompatibleSupertypes(tree.pos(), c.type);
|
||||
if (allowDefaultMethods) {
|
||||
chk.checkDefaultMethodClashes(tree.pos(), c.type);
|
||||
}
|
||||
chk.checkDefaultMethodClashes(tree.pos(), c.type);
|
||||
}
|
||||
|
||||
// Check that class does not import the same parameterized interface
|
||||
@ -5629,13 +5608,11 @@ public class Attr extends JCTree.Visitor {
|
||||
&& !c.isAnonymous()) {
|
||||
chk.checkSerialStructure(tree, c);
|
||||
}
|
||||
if (allowTypeAnnos) {
|
||||
// Correctly organize the positions of the type annotations
|
||||
typeAnnotations.organizeTypeAnnotationsBodies(tree);
|
||||
// Correctly organize the positions of the type annotations
|
||||
typeAnnotations.organizeTypeAnnotationsBodies(tree);
|
||||
|
||||
// Check type annotations applicability rules
|
||||
validateTypeAnnotations(tree, false);
|
||||
}
|
||||
// Check type annotations applicability rules
|
||||
validateTypeAnnotations(tree, false);
|
||||
}
|
||||
// where
|
||||
/** get a diagnostic position for an attribute of Type t, or null if attribute missing */
|
||||
|
@ -2724,7 +2724,6 @@ public class Check {
|
||||
void checkPotentiallyAmbiguousOverloads(DiagnosticPosition pos, Type site,
|
||||
MethodSymbol msym1, MethodSymbol msym2) {
|
||||
if (msym1 != msym2 &&
|
||||
Feature.DEFAULT_METHODS.allowedInSource(source) &&
|
||||
lint.isEnabled(LintCategory.OVERLOADS) &&
|
||||
(msym1.flags() & POTENTIALLY_AMBIGUOUS) == 0 &&
|
||||
(msym2.flags() & POTENTIALLY_AMBIGUOUS) == 0) {
|
||||
|
@ -210,7 +210,6 @@ public class Flow {
|
||||
private final JCDiagnostic.Factory diags;
|
||||
private Env<AttrContext> attrEnv;
|
||||
private Lint lint;
|
||||
private final boolean allowEffectivelyFinalInInnerClasses;
|
||||
|
||||
public static Flow instance(Context context) {
|
||||
Flow instance = context.get(flowKey);
|
||||
@ -335,7 +334,6 @@ public class Flow {
|
||||
rs = Resolve.instance(context);
|
||||
diags = JCDiagnostic.Factory.instance(context);
|
||||
Source source = Source.instance(context);
|
||||
allowEffectivelyFinalInInnerClasses = Feature.EFFECTIVELY_FINAL_IN_INNER_CLASSES.allowedInSource(source);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -3073,12 +3071,6 @@ public class Flow {
|
||||
sym.pos < currentTree.getStartPosition()) {
|
||||
switch (currentTree.getTag()) {
|
||||
case CLASSDEF:
|
||||
if (!allowEffectivelyFinalInInnerClasses) {
|
||||
if ((sym.flags() & FINAL) == 0) {
|
||||
reportInnerClsNeedsFinalError(pos, sym);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case PATTERNCASELABEL:
|
||||
case LAMBDA:
|
||||
if ((sym.flags() & (EFFECTIVELY_FINAL | FINAL)) == 0) {
|
||||
@ -3099,10 +3091,6 @@ public class Flow {
|
||||
((VarSymbol)sym).pos < currentTree.getStartPosition()) {
|
||||
switch (currentTree.getTag()) {
|
||||
case CLASSDEF:
|
||||
if (!allowEffectivelyFinalInInnerClasses) {
|
||||
reportInnerClsNeedsFinalError(tree, sym);
|
||||
break;
|
||||
}
|
||||
case CASE:
|
||||
case LAMBDA:
|
||||
reportEffectivelyFinalError(tree, sym);
|
||||
@ -3121,11 +3109,6 @@ public class Flow {
|
||||
log.error(pos, Errors.CantRefNonEffectivelyFinalVar(sym, diags.fragment(subKey)));
|
||||
}
|
||||
|
||||
void reportInnerClsNeedsFinalError(DiagnosticPosition pos, Symbol sym) {
|
||||
log.error(pos,
|
||||
Errors.LocalVarAccessedFromIclsNeedsFinal(sym));
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* Visitor methods for statements and definitions
|
||||
*************************************************************************/
|
||||
|
@ -106,10 +106,8 @@ public class Resolve {
|
||||
ModuleFinder moduleFinder;
|
||||
Types types;
|
||||
JCDiagnostic.Factory diags;
|
||||
public final boolean allowFunctionalInterfaceMostSpecific;
|
||||
public final boolean allowModules;
|
||||
public final boolean allowRecords;
|
||||
public final boolean checkVarargsAccessAfterResolution;
|
||||
private final boolean compactMethodDiags;
|
||||
private final boolean allowLocalVariableTypeInference;
|
||||
private final boolean allowYieldStatement;
|
||||
@ -145,11 +143,8 @@ public class Resolve {
|
||||
options.isUnset(Option.XDIAGS) && options.isUnset("rawDiagnostics");
|
||||
verboseResolutionMode = VerboseResolutionMode.getVerboseResolutionMode(options);
|
||||
Target target = Target.instance(context);
|
||||
allowFunctionalInterfaceMostSpecific = Feature.FUNCTIONAL_INTERFACE_MOST_SPECIFIC.allowedInSource(source);
|
||||
allowLocalVariableTypeInference = Feature.LOCAL_VARIABLE_TYPE_INFERENCE.allowedInSource(source);
|
||||
allowYieldStatement = Feature.SWITCH_EXPRESSION.allowedInSource(source);
|
||||
checkVarargsAccessAfterResolution =
|
||||
Feature.POST_APPLICABILITY_VARARGS_ACCESS_CHECK.allowedInSource(source);
|
||||
polymorphicSignatureScope = WriteableScope.create(syms.noSymbol);
|
||||
allowModules = Feature.MODULES.allowedInSource(source);
|
||||
allowRecords = Feature.RECORDS.allowedInSource(source);
|
||||
@ -915,7 +910,7 @@ public class Resolve {
|
||||
super.argumentsAcceptable(env, deferredAttrContext, argtypes, formals, warn);
|
||||
// should we check varargs element type accessibility?
|
||||
if (deferredAttrContext.phase.isVarargsRequired()) {
|
||||
if (deferredAttrContext.mode == AttrMode.CHECK || !checkVarargsAccessAfterResolution) {
|
||||
if (deferredAttrContext.mode == AttrMode.CHECK) {
|
||||
varargsAccessible(env, types.elemtype(formals.last()), deferredAttrContext.inferenceContext);
|
||||
}
|
||||
}
|
||||
@ -1170,9 +1165,8 @@ public class Resolve {
|
||||
}
|
||||
|
||||
public boolean compatible(Type found, Type req, Warner warn) {
|
||||
if (allowFunctionalInterfaceMostSpecific &&
|
||||
unrelatedFunctionalInterfaces(found, req) &&
|
||||
(actual != null && actual.getTag() == DEFERRED)) {
|
||||
if (unrelatedFunctionalInterfaces(found, req) &&
|
||||
(actual != null && actual.getTag() == DEFERRED)) {
|
||||
DeferredType dt = (DeferredType) actual;
|
||||
JCTree speculativeTree = dt.speculativeTree(deferredAttrContext);
|
||||
if (speculativeTree != deferredAttr.stuckTree) {
|
||||
|
@ -79,9 +79,6 @@ public class TransTypes extends TreeTranslator {
|
||||
/** Switch: is complex graph inference supported? */
|
||||
private final boolean allowGraphInference;
|
||||
|
||||
/** Switch: are default methods supported? */
|
||||
private final boolean allowInterfaceBridges;
|
||||
|
||||
protected TransTypes(Context context) {
|
||||
context.put(transTypesKey, this);
|
||||
compileStates = CompileStates.instance(context);
|
||||
@ -93,7 +90,6 @@ public class TransTypes extends TreeTranslator {
|
||||
make = TreeMaker.instance(context);
|
||||
resolve = Resolve.instance(context);
|
||||
Source source = Source.instance(context);
|
||||
allowInterfaceBridges = Feature.DEFAULT_METHODS.allowedInSource(source);
|
||||
allowGraphInference = Feature.GRAPH_INFERENCE.allowedInSource(source);
|
||||
annotate = Annotate.instance(context);
|
||||
attr = Attr.instance(context);
|
||||
@ -971,9 +967,7 @@ public class TransTypes extends TreeTranslator {
|
||||
super.visitClassDef(tree);
|
||||
make.at(tree.pos);
|
||||
ListBuffer<JCTree> bridges = new ListBuffer<>();
|
||||
if (allowInterfaceBridges || (tree.sym.flags() & INTERFACE) == 0) {
|
||||
addBridges(tree.pos(), c, bridges);
|
||||
}
|
||||
addBridges(tree.pos(), c, bridges);
|
||||
tree.defs = bridges.toList().prependList(tree.defs);
|
||||
tree.type = erasure(tree.type);
|
||||
} finally {
|
||||
|
@ -142,14 +142,9 @@ public class TypeEnter implements Completer {
|
||||
dependencies = Dependencies.instance(context);
|
||||
preview = Preview.instance(context);
|
||||
Source source = Source.instance(context);
|
||||
allowTypeAnnos = Feature.TYPE_ANNOTATIONS.allowedInSource(source);
|
||||
allowDeprecationOnImport = Feature.DEPRECATION_ON_IMPORT.allowedInSource(source);
|
||||
}
|
||||
|
||||
/** Switch: support type annotations.
|
||||
*/
|
||||
boolean allowTypeAnnos;
|
||||
|
||||
/**
|
||||
* Switch: should deprecation warnings be issued on import
|
||||
*/
|
||||
@ -1066,10 +1061,8 @@ public class TypeEnter implements Completer {
|
||||
|
||||
finishClass(tree, defaultConstructor, env);
|
||||
|
||||
if (allowTypeAnnos) {
|
||||
typeAnnotations.organizeTypeAnnotationsSignatures(env, (JCClassDecl)env.tree);
|
||||
typeAnnotations.validateTypeAnnotationsSignatures(env, (JCClassDecl)env.tree);
|
||||
}
|
||||
typeAnnotations.organizeTypeAnnotationsSignatures(env, (JCClassDecl)env.tree);
|
||||
typeAnnotations.validateTypeAnnotationsSignatures(env, (JCClassDecl)env.tree);
|
||||
}
|
||||
|
||||
DefaultConstructorHelper getDefaultConstructorHelper(Env<AttrContext> env) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, 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
|
||||
@ -110,10 +110,12 @@ public enum Target {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static final Target MIN = Target.JDK1_7;
|
||||
public static final Target MIN = Target.JDK1_8;
|
||||
|
||||
private static final Target MAX = values()[values().length - 1];
|
||||
|
||||
public static final Target DEFAULT = MAX;
|
||||
|
||||
private static final Map<String,Target> tab = new HashMap<>();
|
||||
static {
|
||||
for (Target t : values()) {
|
||||
@ -136,8 +138,6 @@ public enum Target {
|
||||
this.minorVersion = minorVersion;
|
||||
}
|
||||
|
||||
public static final Target DEFAULT = values()[values().length - 1];
|
||||
|
||||
public static Target lookup(String name) {
|
||||
return tab.get(name);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, 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
|
||||
@ -609,10 +609,6 @@ public class Arguments {
|
||||
Option.LIMIT_MODULES,
|
||||
Option.PATCH_MODULE);
|
||||
|
||||
if (lintOptions && options.isSet(Option.PARAMETERS) && !target.hasMethodParameters()) {
|
||||
log.warning(Warnings.OptionParametersUnsupported(target, Target.JDK1_8));
|
||||
}
|
||||
|
||||
if (fm.hasLocation(StandardLocation.MODULE_SOURCE_PATH)) {
|
||||
if (!options.isSet(Option.PROC, "only")
|
||||
&& !fm.hasLocation(StandardLocation.CLASS_OUTPUT)) {
|
||||
|
@ -586,8 +586,6 @@ public class JavacParser implements Parser {
|
||||
return names.error;
|
||||
} else if (token.kind == THIS) {
|
||||
if (allowThisIdent) {
|
||||
// Make sure we're using a supported source version.
|
||||
checkSourceLevel(Feature.TYPE_ANNOTATIONS);
|
||||
Name name = token.name();
|
||||
nextToken();
|
||||
return name;
|
||||
@ -1019,7 +1017,6 @@ public class JavacParser implements Parser {
|
||||
} else {
|
||||
checkNoMods(typePos, mods.flags & ~Flags.DEPRECATED);
|
||||
if (mods.annotations.nonEmpty()) {
|
||||
checkSourceLevel(mods.annotations.head.pos, Feature.TYPE_ANNOTATIONS);
|
||||
List<JCAnnotation> typeAnnos =
|
||||
mods.annotations
|
||||
.map(decl -> {
|
||||
@ -1222,7 +1219,6 @@ public class JavacParser implements Parser {
|
||||
int pos1 = pos;
|
||||
List<JCExpression> targets = List.of(t = parseType());
|
||||
while (token.kind == AMP) {
|
||||
checkSourceLevel(Feature.INTERSECTION_TYPES_IN_CAST);
|
||||
accept(AMP);
|
||||
targets = targets.prepend(parseType());
|
||||
}
|
||||
@ -2317,7 +2313,6 @@ public class JavacParser implements Parser {
|
||||
}
|
||||
|
||||
JCExpression memberReferenceSuffix(int pos1, JCExpression t) {
|
||||
checkSourceLevel(Feature.METHOD_REFERENCES);
|
||||
selectExprMode();
|
||||
List<JCExpression> typeArgs = null;
|
||||
if (token.kind == LT) {
|
||||
@ -3361,9 +3356,6 @@ public class JavacParser implements Parser {
|
||||
*/
|
||||
JCAnnotation annotation(int pos, Tag kind) {
|
||||
// accept(AT); // AT consumed by caller
|
||||
if (kind == Tag.TYPE_ANNOTATION) {
|
||||
checkSourceLevel(Feature.TYPE_ANNOTATIONS);
|
||||
}
|
||||
JCTree ident = qualident(false);
|
||||
List<JCExpression> fieldValues = annotationFieldValuesOpt();
|
||||
JCAnnotation ann;
|
||||
@ -4356,7 +4348,6 @@ public class JavacParser implements Parser {
|
||||
List<JCAnnotation> annosAfterParams = annotationsOpt(Tag.ANNOTATION);
|
||||
|
||||
if (annosAfterParams.nonEmpty()) {
|
||||
checkSourceLevel(annosAfterParams.head.pos, Feature.ANNOTATIONS_AFTER_TYPE_PARAMS);
|
||||
mods.annotations = mods.annotations.appendList(annosAfterParams);
|
||||
if (mods.pos == Position.NOPOS)
|
||||
mods.pos = mods.annotations.head.pos;
|
||||
@ -4519,9 +4510,6 @@ public class JavacParser implements Parser {
|
||||
boolean isRecord,
|
||||
Comment dc) {
|
||||
if (isInterface) {
|
||||
if ((mods.flags & Flags.STATIC) != 0) {
|
||||
checkSourceLevel(Feature.STATIC_INTERFACE_METHODS);
|
||||
}
|
||||
if ((mods.flags & Flags.PRIVATE) != 0) {
|
||||
checkSourceLevel(Feature.PRIVATE_INTERFACE_METHODS);
|
||||
}
|
||||
|
@ -763,10 +763,6 @@ compiler.err.variable.not.allowed=\
|
||||
compiler.err.label.already.in.use=\
|
||||
label {0} already in use
|
||||
|
||||
# 0: symbol
|
||||
compiler.err.local.var.accessed.from.icls.needs.final=\
|
||||
local variable {0} is accessed from within inner class; needs to be declared final
|
||||
|
||||
compiler.err.local.enum=\
|
||||
enum classes must not be local
|
||||
|
||||
@ -2038,11 +2034,6 @@ compiler.err.option.removed.source=\
|
||||
compiler.err.option.removed.target=\
|
||||
Target option {0} is no longer supported. Use {1} or later.
|
||||
|
||||
|
||||
# 0: target, 1: target
|
||||
compiler.warn.option.parameters.unsupported=\
|
||||
-parameters is not supported for target value {0}. Use {1} or later.
|
||||
|
||||
compiler.warn.option.obsolete.suppression=\
|
||||
To suppress warnings about obsolete options, use -Xlint:-options.
|
||||
|
||||
@ -3030,36 +3021,15 @@ compiler.misc.feature.diamond.and.anon.class=\
|
||||
compiler.misc.feature.var.in.try.with.resources=\
|
||||
variables in try-with-resources
|
||||
|
||||
compiler.misc.feature.type.annotations=\
|
||||
type annotations
|
||||
|
||||
compiler.misc.feature.annotations.after.type.params=\
|
||||
annotations after method type parameters
|
||||
|
||||
compiler.misc.feature.repeatable.annotations=\
|
||||
repeated annotations
|
||||
|
||||
compiler.misc.feature.diamond=\
|
||||
diamond operator
|
||||
|
||||
compiler.misc.feature.lambda=\
|
||||
lambda expressions
|
||||
|
||||
compiler.misc.feature.method.references=\
|
||||
method references
|
||||
|
||||
compiler.misc.feature.default.methods=\
|
||||
default methods
|
||||
|
||||
compiler.misc.feature.intersection.types.in.cast=\
|
||||
intersection types
|
||||
|
||||
compiler.misc.feature.static.intf.methods=\
|
||||
static interface methods
|
||||
|
||||
compiler.misc.feature.static.intf.method.invoke=\
|
||||
static interface method invocations
|
||||
|
||||
compiler.misc.feature.private.intf.methods=\
|
||||
private interface methods
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,103 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
-class name javax/lang/model/AnnotatedConstruct
|
||||
|
||||
class name javax/lang/model/SourceVersion
|
||||
-field name RELEASE_8 descriptor Ljavax/lang/model/SourceVersion;
|
||||
|
||||
class name javax/lang/model/element/Element
|
||||
header extends java/lang/Object flags 601
|
||||
|
||||
class name javax/lang/model/element/ExecutableElement
|
||||
-method name getReceiverType descriptor ()Ljavax/lang/model/type/TypeMirror;
|
||||
-method name isDefault descriptor ()Z
|
||||
|
||||
class name javax/lang/model/element/Modifier
|
||||
-field name DEFAULT descriptor Ljavax/lang/model/element/Modifier;
|
||||
|
||||
class name javax/lang/model/element/PackageElement
|
||||
-method name getEnclosedElements descriptor ()Ljava/util/List;
|
||||
|
||||
class name javax/lang/model/element/VariableElement
|
||||
-method name getSimpleName descriptor ()Ljavax/lang/model/element/Name;
|
||||
-method name getEnclosingElement descriptor ()Ljavax/lang/model/element/Element;
|
||||
|
||||
class name javax/lang/model/type/ExecutableType
|
||||
-method name getReceiverType descriptor ()Ljavax/lang/model/type/TypeMirror;
|
||||
|
||||
-class name javax/lang/model/type/IntersectionType
|
||||
|
||||
class name javax/lang/model/type/TypeKind
|
||||
-field name INTERSECTION descriptor Ljavax/lang/model/type/TypeKind;
|
||||
|
||||
class name javax/lang/model/type/TypeMirror
|
||||
header extends java/lang/Object flags 601
|
||||
|
||||
class name javax/lang/model/type/TypeVisitor
|
||||
-method name visitIntersection descriptor (Ljavax/lang/model/type/IntersectionType;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
-class name javax/lang/model/util/AbstractAnnotationValueVisitor8
|
||||
|
||||
-class name javax/lang/model/util/AbstractElementVisitor8
|
||||
|
||||
class name javax/lang/model/util/AbstractTypeVisitor6
|
||||
-method name visitIntersection descriptor (Ljavax/lang/model/type/IntersectionType;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
-class name javax/lang/model/util/AbstractTypeVisitor8
|
||||
|
||||
-class name javax/lang/model/util/ElementKindVisitor8
|
||||
|
||||
-class name javax/lang/model/util/ElementScanner8
|
||||
|
||||
class name javax/lang/model/util/Elements
|
||||
-method name isFunctionalInterface descriptor (Ljavax/lang/model/element/TypeElement;)Z
|
||||
|
||||
-class name javax/lang/model/util/SimpleAnnotationValueVisitor8
|
||||
|
||||
-class name javax/lang/model/util/SimpleElementVisitor8
|
||||
|
||||
-class name javax/lang/model/util/SimpleTypeVisitor8
|
||||
|
||||
-class name javax/lang/model/util/TypeKindVisitor8
|
||||
|
||||
-class name javax/tools/DocumentationTool
|
||||
|
||||
-class name javax/tools/DocumentationTool$DocumentationTask
|
||||
|
||||
-class name javax/tools/DocumentationTool$Location
|
||||
|
||||
class name javax/tools/JavaCompiler$CompilationTask
|
||||
-method name call descriptor ()Ljava/lang/Object;
|
||||
|
||||
class name javax/tools/StandardLocation
|
||||
-field name NATIVE_HEADER_OUTPUT descriptor Ljavax/tools/StandardLocation;
|
||||
|
||||
class name javax/tools/ToolProvider
|
||||
-method name getSystemDocumentationTool descriptor ()Ljavax/tools/DocumentationTool;
|
||||
|
@ -1,33 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name java/awt/datatransfer/DataFlavor
|
||||
-field name selectionHtmlFlavor descriptor Ljava/awt/datatransfer/DataFlavor;
|
||||
-field name fragmentHtmlFlavor descriptor Ljava/awt/datatransfer/DataFlavor;
|
||||
-field name allHtmlFlavor descriptor Ljava/awt/datatransfer/DataFlavor;
|
||||
|
@ -1,110 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2020, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name java/awt/Component
|
||||
-field name accessibleContext descriptor Ljavax/accessibility/AccessibleContext;
|
||||
|
||||
class name java/awt/Container$AccessibleAWTContainer
|
||||
-method name removePropertyChangeListener descriptor (Ljava/beans/PropertyChangeListener;)V
|
||||
|
||||
class name java/awt/KeyEventDispatcher
|
||||
header extends java/lang/Object flags 601
|
||||
|
||||
class name java/awt/KeyEventPostProcessor
|
||||
header extends java/lang/Object flags 601
|
||||
|
||||
class name java/awt/KeyboardFocusManager
|
||||
-method name setGlobalFocusOwner descriptor (Ljava/awt/Component;)V
|
||||
-method name clearFocusOwner descriptor ()V
|
||||
-method name clearGlobalFocusOwner descriptor ()V
|
||||
-method name setGlobalPermanentFocusOwner descriptor (Ljava/awt/Component;)V
|
||||
-method name setGlobalFocusedWindow descriptor (Ljava/awt/Window;)V
|
||||
-method name setGlobalActiveWindow descriptor (Ljava/awt/Window;)V
|
||||
-method name setGlobalCurrentFocusCycleRoot descriptor (Ljava/awt/Container;)V
|
||||
method name setGlobalFocusOwner descriptor (Ljava/awt/Component;)V flags 4
|
||||
method name clearGlobalFocusOwner descriptor ()V flags 1
|
||||
method name setGlobalPermanentFocusOwner descriptor (Ljava/awt/Component;)V flags 4
|
||||
method name setGlobalFocusedWindow descriptor (Ljava/awt/Window;)V flags 4
|
||||
method name setGlobalActiveWindow descriptor (Ljava/awt/Window;)V flags 4
|
||||
method name setGlobalCurrentFocusCycleRoot descriptor (Ljava/awt/Container;)V flags 1
|
||||
|
||||
class name java/awt/event/InvocationEvent
|
||||
-field name notifier descriptor Ljava/lang/Object;
|
||||
field name notifier descriptor Ljava/lang/Object; flags 4
|
||||
-method name <init> descriptor (Ljava/lang/Object;Ljava/lang/Runnable;Ljava/lang/Runnable;Z)V
|
||||
|
||||
class name java/awt/peer/ComponentPeer
|
||||
method name getToolkit descriptor ()Ljava/awt/Toolkit; flags 401
|
||||
|
||||
class name java/awt/peer/FramePeer
|
||||
-method name emulateActivation descriptor (Z)V
|
||||
|
||||
class name java/awt/peer/KeyboardFocusManagerPeer
|
||||
-method name setCurrentFocusedWindow descriptor (Ljava/awt/Window;)V
|
||||
|
||||
class name java/awt/peer/WindowPeer
|
||||
-method name updateAlwaysOnTopState descriptor ()V
|
||||
method name setAlwaysOnTop descriptor (Z)V flags 401
|
||||
|
||||
class name javax/swing/ImageIcon
|
||||
-field name component descriptor Ljava/awt/Component;
|
||||
-field name tracker descriptor Ljava/awt/MediaTracker;
|
||||
field name component descriptor Ljava/awt/Component; flags 1c
|
||||
field name tracker descriptor Ljava/awt/MediaTracker; flags 1c
|
||||
|
||||
class name javax/swing/JComboBox
|
||||
-method name processKeyBinding descriptor (Ljavax/swing/KeyStroke;Ljava/awt/event/KeyEvent;IZ)Z
|
||||
|
||||
class name javax/swing/JComponent
|
||||
field name accessibleContext descriptor Ljavax/accessibility/AccessibleContext; flags 4
|
||||
-method name hide descriptor ()V
|
||||
method name getAccessibleContext descriptor ()Ljavax/accessibility/AccessibleContext; flags 1
|
||||
|
||||
class name javax/swing/JComponent$AccessibleJComponent
|
||||
-field name accessibleFocusHandler descriptor Ljava/awt/event/FocusListener;
|
||||
field name accessibleContainerHandler descriptor Ljava/awt/event/ContainerListener; flags 4
|
||||
field name accessibleFocusHandler descriptor Ljava/awt/event/FocusListener; flags 4
|
||||
|
||||
class name javax/swing/JDesktopPane
|
||||
-method name remove descriptor (Ljava/awt/Component;)V
|
||||
|
||||
class name javax/swing/JList$AccessibleJList$AccessibleJListChild
|
||||
method name getAccessibleAction descriptor ()Ljavax/accessibility/AccessibleAction; flags 1
|
||||
|
||||
class name javax/swing/plaf/basic/BasicRadioButtonUI
|
||||
-method name installListeners descriptor (Ljavax/swing/AbstractButton;)V
|
||||
-method name uninstallListeners descriptor (Ljavax/swing/AbstractButton;)V
|
||||
|
||||
class name javax/swing/tree/DefaultMutableTreeNode
|
||||
-method name setParent descriptor (Ljavax/swing/tree/MutableTreeNode;)V
|
||||
method name setParent descriptor (Ljavax/swing/tree/MutableTreeNode;)V flags 1
|
||||
|
||||
class name javax/swing/tree/DefaultTreeSelectionModel
|
||||
-method name notifyPathChange descriptor (Ljava/util/Vector;Ljavax/swing/tree/TreePath;)V
|
||||
method name notifyPathChange descriptor (Ljava/util/Vector;Ljavax/swing/tree/TreePath;)V flags 4 deprecated true runtimeAnnotations @Ljava/lang/Deprecated;
|
||||
|
@ -1,95 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name java/util/logging/Filter
|
||||
header extends java/lang/Object flags 601
|
||||
|
||||
class name java/util/logging/Handler
|
||||
-method name setFormatter descriptor (Ljava/util/logging/Formatter;)V
|
||||
-method name setEncoding descriptor (Ljava/lang/String;)V
|
||||
-method name setFilter descriptor (Ljava/util/logging/Filter;)V
|
||||
-method name setErrorManager descriptor (Ljava/util/logging/ErrorManager;)V
|
||||
-method name getLevel descriptor ()Ljava/util/logging/Level;
|
||||
method name setFormatter descriptor (Ljava/util/logging/Formatter;)V thrownTypes java/lang/SecurityException flags 1
|
||||
method name setEncoding descriptor (Ljava/lang/String;)V thrownTypes java/lang/SecurityException,java/io/UnsupportedEncodingException flags 1
|
||||
method name setFilter descriptor (Ljava/util/logging/Filter;)V thrownTypes java/lang/SecurityException flags 1
|
||||
method name setErrorManager descriptor (Ljava/util/logging/ErrorManager;)V flags 1
|
||||
method name getLevel descriptor ()Ljava/util/logging/Level; flags 21
|
||||
|
||||
class name java/util/logging/LogManager
|
||||
-method name addPropertyChangeListener descriptor (Ljava/beans/PropertyChangeListener;)V
|
||||
-method name removePropertyChangeListener descriptor (Ljava/beans/PropertyChangeListener;)V
|
||||
-method name addLogger descriptor (Ljava/util/logging/Logger;)Z
|
||||
-method name getLogger descriptor (Ljava/lang/String;)Ljava/util/logging/Logger;
|
||||
-method name getLoggerNames descriptor ()Ljava/util/Enumeration;
|
||||
method name addPropertyChangeListener descriptor (Ljava/beans/PropertyChangeListener;)V thrownTypes java/lang/SecurityException flags 1
|
||||
method name removePropertyChangeListener descriptor (Ljava/beans/PropertyChangeListener;)V thrownTypes java/lang/SecurityException flags 1
|
||||
method name addLogger descriptor (Ljava/util/logging/Logger;)Z flags 21
|
||||
method name getLogger descriptor (Ljava/lang/String;)Ljava/util/logging/Logger; flags 21
|
||||
method name getLoggerNames descriptor ()Ljava/util/Enumeration; flags 21 signature ()Ljava/util/Enumeration<Ljava/lang/String;>;
|
||||
|
||||
class name java/util/logging/Logger
|
||||
-method name getLogger descriptor (Ljava/lang/String;)Ljava/util/logging/Logger;
|
||||
-method name getLogger descriptor (Ljava/lang/String;Ljava/lang/String;)Ljava/util/logging/Logger;
|
||||
-method name getAnonymousLogger descriptor (Ljava/lang/String;)Ljava/util/logging/Logger;
|
||||
-method name log descriptor (Ljava/util/logging/Level;Ljava/util/function/Supplier;)V
|
||||
-method name log descriptor (Ljava/util/logging/Level;Ljava/lang/Throwable;Ljava/util/function/Supplier;)V
|
||||
-method name logp descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Supplier;)V
|
||||
-method name logp descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/function/Supplier;)V
|
||||
-method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
||||
-method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
|
||||
-method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
||||
-method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;Ljava/lang/String;[Ljava/lang/Object;)V
|
||||
-method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
||||
-method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;Ljava/lang/String;Ljava/lang/Throwable;)V
|
||||
-method name severe descriptor (Ljava/util/function/Supplier;)V
|
||||
-method name warning descriptor (Ljava/util/function/Supplier;)V
|
||||
-method name info descriptor (Ljava/util/function/Supplier;)V
|
||||
-method name config descriptor (Ljava/util/function/Supplier;)V
|
||||
-method name fine descriptor (Ljava/util/function/Supplier;)V
|
||||
-method name finer descriptor (Ljava/util/function/Supplier;)V
|
||||
-method name finest descriptor (Ljava/util/function/Supplier;)V
|
||||
-method name setResourceBundle descriptor (Ljava/util/ResourceBundle;)V
|
||||
method name getLogger descriptor (Ljava/lang/String;)Ljava/util/logging/Logger; flags 9
|
||||
method name getLogger descriptor (Ljava/lang/String;Ljava/lang/String;)Ljava/util/logging/Logger; flags 9
|
||||
method name getAnonymousLogger descriptor (Ljava/lang/String;)Ljava/util/logging/Logger; flags 9
|
||||
method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V flags 1
|
||||
method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V flags 1
|
||||
method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V flags 1
|
||||
method name logrb descriptor (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V flags 1
|
||||
|
||||
class name java/util/logging/MemoryHandler
|
||||
-method name setPushLevel descriptor (Ljava/util/logging/Level;)V
|
||||
-method name getPushLevel descriptor ()Ljava/util/logging/Level;
|
||||
method name setPushLevel descriptor (Ljava/util/logging/Level;)V thrownTypes java/lang/SecurityException flags 1
|
||||
method name getPushLevel descriptor ()Ljava/util/logging/Level; flags 21
|
||||
|
||||
class name java/util/logging/StreamHandler
|
||||
-method name setEncoding descriptor (Ljava/lang/String;)V
|
||||
method name setEncoding descriptor (Ljava/lang/String;)V thrownTypes java/lang/SecurityException,java/io/UnsupportedEncodingException flags 1
|
||||
|
@ -1,53 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name java/lang/management/LockInfo
|
||||
-method name <init> descriptor (Ljava/lang/String;I)V
|
||||
-method name from descriptor (Ljavax/management/openmbean/CompositeData;)Ljava/lang/management/LockInfo;
|
||||
method name <init> descriptor (Ljava/lang/String;I)V flags 1 runtimeAnnotations @Ljava/beans/ConstructorProperties;(value={"className""identityHashCode"})
|
||||
|
||||
class name javax/management/timer/Timer
|
||||
-method name getNbNotifications descriptor ()I
|
||||
-method name getNotificationType descriptor (Ljava/lang/Integer;)Ljava/lang/String;
|
||||
-method name getNotificationMessage descriptor (Ljava/lang/Integer;)Ljava/lang/String;
|
||||
-method name getNotificationUserData descriptor (Ljava/lang/Integer;)Ljava/lang/Object;
|
||||
-method name getDate descriptor (Ljava/lang/Integer;)Ljava/util/Date;
|
||||
-method name getPeriod descriptor (Ljava/lang/Integer;)Ljava/lang/Long;
|
||||
-method name getNbOccurences descriptor (Ljava/lang/Integer;)Ljava/lang/Long;
|
||||
-method name getFixedRate descriptor (Ljava/lang/Integer;)Ljava/lang/Boolean;
|
||||
-method name isEmpty descriptor ()Z
|
||||
method name getNbNotifications descriptor ()I flags 1
|
||||
method name getNotificationType descriptor (Ljava/lang/Integer;)Ljava/lang/String; flags 1
|
||||
method name getNotificationMessage descriptor (Ljava/lang/Integer;)Ljava/lang/String; flags 1
|
||||
method name getNotificationUserData descriptor (Ljava/lang/Integer;)Ljava/lang/Object; flags 1
|
||||
method name getDate descriptor (Ljava/lang/Integer;)Ljava/util/Date; flags 1
|
||||
method name getPeriod descriptor (Ljava/lang/Integer;)Ljava/lang/Long; flags 1
|
||||
method name getNbOccurences descriptor (Ljava/lang/Integer;)Ljava/lang/Long; flags 1
|
||||
method name getFixedRate descriptor (Ljava/lang/Integer;)Ljava/lang/Boolean; flags 1
|
||||
method name isEmpty descriptor ()Z flags 1
|
||||
|
@ -1,44 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name javax/naming/NameImpl
|
||||
-method name getAll descriptor ()Ljava/util/Enumeration;
|
||||
-method name getPrefix descriptor (I)Ljava/util/Enumeration;
|
||||
-method name getSuffix descriptor (I)Ljava/util/Enumeration;
|
||||
-method name startsWith descriptor (ILjava/util/Enumeration;)Z
|
||||
-method name endsWith descriptor (ILjava/util/Enumeration;)Z
|
||||
-method name addAll descriptor (Ljava/util/Enumeration;)Z
|
||||
-method name addAll descriptor (ILjava/util/Enumeration;)Z
|
||||
method name getAll descriptor ()Ljava/util/Enumeration; flags 1
|
||||
method name getPrefix descriptor (I)Ljava/util/Enumeration; flags 1
|
||||
method name getSuffix descriptor (I)Ljava/util/Enumeration; flags 1
|
||||
method name startsWith descriptor (ILjava/util/Enumeration;)Z flags 1
|
||||
method name endsWith descriptor (ILjava/util/Enumeration;)Z flags 1
|
||||
method name addAll descriptor (Ljava/util/Enumeration;)Z thrownTypes javax/naming/InvalidNameException flags 1
|
||||
method name addAll descriptor (ILjava/util/Enumeration;)Z thrownTypes javax/naming/InvalidNameException flags 1
|
||||
|
@ -1,31 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name java/util/prefs/PreferenceChangeListener
|
||||
header extends java/lang/Object implements java/util/EventListener flags 601
|
||||
|
@ -1,44 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name java/rmi/RMISecurityManager
|
||||
header extends java/lang/SecurityManager flags 21
|
||||
|
||||
class name java/rmi/server/RemoteStub
|
||||
header extends java/rmi/server/RemoteObject flags 421
|
||||
|
||||
class name java/rmi/server/ServerRef
|
||||
header extends java/lang/Object implements java/rmi/server/RemoteRef flags 601
|
||||
|
||||
class name java/rmi/server/SocketSecurityException
|
||||
header extends java/rmi/server/ExportException flags 21
|
||||
|
||||
class name java/rmi/server/UnicastRemoteObject
|
||||
-method name exportObject descriptor (Ljava/rmi/Remote;)Ljava/rmi/server/RemoteStub;
|
||||
method name exportObject descriptor (Ljava/rmi/Remote;)Ljava/rmi/server/RemoteStub; thrownTypes java/rmi/RemoteException flags 9
|
||||
|
@ -1,31 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name javax/script/Bindings
|
||||
-method name put descriptor (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
@ -1,36 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name javax/security/auth/kerberos/KeyTab
|
||||
-method name getUnboundInstance descriptor (Ljava/io/File;)Ljavax/security/auth/kerberos/KeyTab;
|
||||
-method name getInstance descriptor (Ljavax/security/auth/kerberos/KerberosPrincipal;Ljava/io/File;)Ljavax/security/auth/kerberos/KeyTab;
|
||||
-method name getUnboundInstance descriptor ()Ljavax/security/auth/kerberos/KeyTab;
|
||||
-method name getInstance descriptor (Ljavax/security/auth/kerberos/KerberosPrincipal;)Ljavax/security/auth/kerberos/KeyTab;
|
||||
-method name getPrincipal descriptor ()Ljavax/security/auth/kerberos/KerberosPrincipal;
|
||||
-method name isBound descriptor ()Z
|
||||
|
@ -1,31 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name javax/security/sasl/Sasl
|
||||
-field name BOUND_SERVER_NAME descriptor Ljava/lang/String;
|
||||
|
@ -1,145 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name java/sql/BatchUpdateException
|
||||
-method name <init> descriptor (Ljava/lang/String;Ljava/lang/String;I[JLjava/lang/Throwable;)V
|
||||
-method name getLargeUpdateCounts descriptor ()[J
|
||||
|
||||
class name java/sql/CallableStatement
|
||||
-method name getBigDecimal descriptor (II)Ljava/math/BigDecimal;
|
||||
-method name setObject descriptor (Ljava/lang/String;Ljava/lang/Object;Ljava/sql/SQLType;I)V
|
||||
-method name setObject descriptor (Ljava/lang/String;Ljava/lang/Object;Ljava/sql/SQLType;)V
|
||||
-method name registerOutParameter descriptor (ILjava/sql/SQLType;)V
|
||||
-method name registerOutParameter descriptor (ILjava/sql/SQLType;I)V
|
||||
-method name registerOutParameter descriptor (ILjava/sql/SQLType;Ljava/lang/String;)V
|
||||
-method name registerOutParameter descriptor (Ljava/lang/String;Ljava/sql/SQLType;)V
|
||||
-method name registerOutParameter descriptor (Ljava/lang/String;Ljava/sql/SQLType;I)V
|
||||
-method name registerOutParameter descriptor (Ljava/lang/String;Ljava/sql/SQLType;Ljava/lang/String;)V
|
||||
method name getBigDecimal descriptor (II)Ljava/math/BigDecimal; thrownTypes java/sql/SQLException flags 401 deprecated true
|
||||
|
||||
class name java/sql/DatabaseMetaData
|
||||
-method name getMaxLogicalLobSize descriptor ()J
|
||||
-method name supportsRefCursors descriptor ()Z
|
||||
|
||||
class name java/sql/Date
|
||||
-method name <init> descriptor (III)V
|
||||
-method name getHours descriptor ()I
|
||||
-method name getMinutes descriptor ()I
|
||||
-method name getSeconds descriptor ()I
|
||||
-method name setHours descriptor (I)V
|
||||
-method name setMinutes descriptor (I)V
|
||||
-method name setSeconds descriptor (I)V
|
||||
-method name valueOf descriptor (Ljava/time/LocalDate;)Ljava/sql/Date;
|
||||
-method name toLocalDate descriptor ()Ljava/time/LocalDate;
|
||||
-method name toInstant descriptor ()Ljava/time/Instant;
|
||||
method name <init> descriptor (III)V flags 1 deprecated true
|
||||
method name getHours descriptor ()I flags 1 deprecated true
|
||||
method name getMinutes descriptor ()I flags 1 deprecated true
|
||||
method name getSeconds descriptor ()I flags 1 deprecated true
|
||||
method name setHours descriptor (I)V flags 1 deprecated true
|
||||
method name setMinutes descriptor (I)V flags 1 deprecated true
|
||||
method name setSeconds descriptor (I)V flags 1 deprecated true
|
||||
|
||||
-class name java/sql/DriverAction
|
||||
|
||||
class name java/sql/DriverManager
|
||||
-method name getConnection descriptor (Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;
|
||||
-method name getConnection descriptor (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;
|
||||
-method name getConnection descriptor (Ljava/lang/String;)Ljava/sql/Connection;
|
||||
-method name getDriver descriptor (Ljava/lang/String;)Ljava/sql/Driver;
|
||||
-method name registerDriver descriptor (Ljava/sql/Driver;Ljava/sql/DriverAction;)V
|
||||
-method name deregisterDriver descriptor (Ljava/sql/Driver;)V
|
||||
-method name getDrivers descriptor ()Ljava/util/Enumeration;
|
||||
-method name setLogStream descriptor (Ljava/io/PrintStream;)V
|
||||
-method name getLogStream descriptor ()Ljava/io/PrintStream;
|
||||
method name getConnection descriptor (Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection; thrownTypes java/sql/SQLException flags 9
|
||||
method name getConnection descriptor (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection; thrownTypes java/sql/SQLException flags 9
|
||||
method name getConnection descriptor (Ljava/lang/String;)Ljava/sql/Connection; thrownTypes java/sql/SQLException flags 9
|
||||
method name getDriver descriptor (Ljava/lang/String;)Ljava/sql/Driver; thrownTypes java/sql/SQLException flags 9
|
||||
method name deregisterDriver descriptor (Ljava/sql/Driver;)V thrownTypes java/sql/SQLException flags 29
|
||||
method name getDrivers descriptor ()Ljava/util/Enumeration; flags 9 signature ()Ljava/util/Enumeration<Ljava/sql/Driver;>;
|
||||
method name setLogStream descriptor (Ljava/io/PrintStream;)V flags 9 deprecated true
|
||||
method name getLogStream descriptor ()Ljava/io/PrintStream; flags 9 deprecated true
|
||||
|
||||
-class name java/sql/JDBCType
|
||||
|
||||
class name java/sql/PreparedStatement
|
||||
-method name setUnicodeStream descriptor (ILjava/io/InputStream;I)V
|
||||
-method name setObject descriptor (ILjava/lang/Object;Ljava/sql/SQLType;I)V
|
||||
-method name setObject descriptor (ILjava/lang/Object;Ljava/sql/SQLType;)V
|
||||
-method name executeLargeUpdate descriptor ()J
|
||||
method name setUnicodeStream descriptor (ILjava/io/InputStream;I)V thrownTypes java/sql/SQLException flags 401 deprecated true
|
||||
|
||||
class name java/sql/ResultSet
|
||||
-method name getBigDecimal descriptor (II)Ljava/math/BigDecimal;
|
||||
-method name getUnicodeStream descriptor (I)Ljava/io/InputStream;
|
||||
-method name getBigDecimal descriptor (Ljava/lang/String;I)Ljava/math/BigDecimal;
|
||||
-method name getUnicodeStream descriptor (Ljava/lang/String;)Ljava/io/InputStream;
|
||||
-method name updateObject descriptor (ILjava/lang/Object;Ljava/sql/SQLType;I)V
|
||||
-method name updateObject descriptor (Ljava/lang/String;Ljava/lang/Object;Ljava/sql/SQLType;I)V
|
||||
-method name updateObject descriptor (ILjava/lang/Object;Ljava/sql/SQLType;)V
|
||||
-method name updateObject descriptor (Ljava/lang/String;Ljava/lang/Object;Ljava/sql/SQLType;)V
|
||||
method name getBigDecimal descriptor (II)Ljava/math/BigDecimal; thrownTypes java/sql/SQLException flags 401 deprecated true
|
||||
method name getUnicodeStream descriptor (I)Ljava/io/InputStream; thrownTypes java/sql/SQLException flags 401 deprecated true
|
||||
method name getBigDecimal descriptor (Ljava/lang/String;I)Ljava/math/BigDecimal; thrownTypes java/sql/SQLException flags 401 deprecated true
|
||||
method name getUnicodeStream descriptor (Ljava/lang/String;)Ljava/io/InputStream; thrownTypes java/sql/SQLException flags 401 deprecated true
|
||||
|
||||
class name java/sql/SQLInput
|
||||
-method name readObject descriptor (Ljava/lang/Class;)Ljava/lang/Object;
|
||||
|
||||
class name java/sql/SQLOutput
|
||||
-method name writeObject descriptor (Ljava/lang/Object;Ljava/sql/SQLType;)V
|
||||
|
||||
-class name java/sql/SQLType
|
||||
|
||||
class name java/sql/Statement
|
||||
-method name getLargeUpdateCount descriptor ()J
|
||||
-method name setLargeMaxRows descriptor (J)V
|
||||
-method name getLargeMaxRows descriptor ()J
|
||||
-method name executeLargeBatch descriptor ()[J
|
||||
-method name executeLargeUpdate descriptor (Ljava/lang/String;)J
|
||||
-method name executeLargeUpdate descriptor (Ljava/lang/String;I)J
|
||||
-method name executeLargeUpdate descriptor (Ljava/lang/String;[I)J
|
||||
-method name executeLargeUpdate descriptor (Ljava/lang/String;[Ljava/lang/String;)J
|
||||
|
||||
class name java/sql/Time
|
||||
-method name valueOf descriptor (Ljava/time/LocalTime;)Ljava/sql/Time;
|
||||
-method name toLocalTime descriptor ()Ljava/time/LocalTime;
|
||||
-method name toInstant descriptor ()Ljava/time/Instant;
|
||||
|
||||
class name java/sql/Timestamp
|
||||
-method name valueOf descriptor (Ljava/time/LocalDateTime;)Ljava/sql/Timestamp;
|
||||
-method name toLocalDateTime descriptor ()Ljava/time/LocalDateTime;
|
||||
-method name from descriptor (Ljava/time/Instant;)Ljava/sql/Timestamp;
|
||||
-method name toInstant descriptor ()Ljava/time/Instant;
|
||||
|
||||
class name java/sql/Types
|
||||
-field name REF_CURSOR descriptor I
|
||||
-field name TIME_WITH_TIMEZONE descriptor I
|
||||
-field name TIMESTAMP_WITH_TIMEZONE descriptor I
|
||||
|
@ -1,69 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name javax/sql/rowset/BaseRowSet
|
||||
-method name setUnicodeStream descriptor (ILjava/io/InputStream;I)V
|
||||
method name setUnicodeStream descriptor (ILjava/io/InputStream;I)V thrownTypes java/sql/SQLException flags 1 deprecated true
|
||||
|
||||
class name javax/sql/rowset/serial/SerialArray
|
||||
-method name equals descriptor (Ljava/lang/Object;)Z
|
||||
-method name hashCode descriptor ()I
|
||||
-method name clone descriptor ()Ljava/lang/Object;
|
||||
|
||||
class name javax/sql/rowset/serial/SerialBlob
|
||||
-method name equals descriptor (Ljava/lang/Object;)Z
|
||||
-method name hashCode descriptor ()I
|
||||
-method name clone descriptor ()Ljava/lang/Object;
|
||||
|
||||
class name javax/sql/rowset/serial/SerialClob
|
||||
-method name equals descriptor (Ljava/lang/Object;)Z
|
||||
-method name hashCode descriptor ()I
|
||||
-method name clone descriptor ()Ljava/lang/Object;
|
||||
|
||||
class name javax/sql/rowset/serial/SerialDatalink
|
||||
-method name equals descriptor (Ljava/lang/Object;)Z
|
||||
-method name hashCode descriptor ()I
|
||||
-method name clone descriptor ()Ljava/lang/Object;
|
||||
|
||||
class name javax/sql/rowset/serial/SerialJavaObject
|
||||
-method name getFields descriptor ()[Ljava/lang/reflect/Field;
|
||||
-method name equals descriptor (Ljava/lang/Object;)Z
|
||||
-method name hashCode descriptor ()I
|
||||
-method name clone descriptor ()Ljava/lang/Object;
|
||||
method name getFields descriptor ()[Ljava/lang/reflect/Field; thrownTypes javax/sql/rowset/serial/SerialException flags 1
|
||||
|
||||
class name javax/sql/rowset/serial/SerialRef
|
||||
-method name equals descriptor (Ljava/lang/Object;)Z
|
||||
-method name hashCode descriptor ()I
|
||||
-method name clone descriptor ()Ljava/lang/Object;
|
||||
|
||||
class name javax/sql/rowset/serial/SerialStruct
|
||||
-method name equals descriptor (Ljava/lang/Object;)Z
|
||||
-method name hashCode descriptor ()I
|
||||
-method name clone descriptor ()Ljava/lang/Object;
|
||||
|
@ -1,45 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name javax/xml/XMLConstants
|
||||
-field name ACCESS_EXTERNAL_DTD descriptor Ljava/lang/String;
|
||||
-field name ACCESS_EXTERNAL_SCHEMA descriptor Ljava/lang/String;
|
||||
-field name ACCESS_EXTERNAL_STYLESHEET descriptor Ljava/lang/String;
|
||||
|
||||
class name javax/xml/validation/SchemaFactory
|
||||
-method name newInstance descriptor (Ljava/lang/String;)Ljavax/xml/validation/SchemaFactory;
|
||||
method name newInstance descriptor (Ljava/lang/String;)Ljavax/xml/validation/SchemaFactory; flags 19
|
||||
|
||||
-class name javax/xml/validation/SchemaFactoryConfigurationError
|
||||
|
||||
class name javax/xml/xpath/XPathFactory
|
||||
-method name newInstance descriptor ()Ljavax/xml/xpath/XPathFactory;
|
||||
-method name newInstance descriptor (Ljava/lang/String;)Ljavax/xml/xpath/XPathFactory;
|
||||
method name newInstance descriptor ()Ljavax/xml/xpath/XPathFactory; flags 19
|
||||
method name newInstance descriptor (Ljava/lang/String;)Ljavax/xml/xpath/XPathFactory; thrownTypes javax/xml/xpath/XPathFactoryConfigurationException flags 19
|
||||
|
@ -1,36 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name javax/xml/bind/JAXBException
|
||||
-method name setLinkedException descriptor (Ljava/lang/Throwable;)V
|
||||
method name setLinkedException descriptor (Ljava/lang/Throwable;)V flags 21
|
||||
|
||||
class name javax/xml/bind/TypeConstraintException
|
||||
-method name setLinkedException descriptor (Ljava/lang/Throwable;)V
|
||||
method name setLinkedException descriptor (Ljava/lang/Throwable;)V flags 21
|
||||
|
@ -1,32 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name javax/annotation/Resource
|
||||
-method name type descriptor ()Ljava/lang/Class;
|
||||
method name type descriptor ()Ljava/lang/Class; annotationDefaultValue cLjava/lang/Object; flags 401
|
||||
|
@ -1,96 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name com/sun/net/httpserver/Authenticator
|
||||
header extends java/lang/Object flags 421
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Result outerClass com/sun/net/httpserver/Authenticator innerClassName Result flags 409
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Failure outerClass com/sun/net/httpserver/Authenticator innerClassName Failure flags 9
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Success outerClass com/sun/net/httpserver/Authenticator innerClassName Success flags 9
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Retry outerClass com/sun/net/httpserver/Authenticator innerClassName Retry flags 9
|
||||
|
||||
class name com/sun/net/httpserver/Authenticator$Failure
|
||||
header extends com/sun/net/httpserver/Authenticator$Result flags 21
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Failure outerClass com/sun/net/httpserver/Authenticator innerClassName Failure flags 9
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Result outerClass com/sun/net/httpserver/Authenticator innerClassName Result flags 409
|
||||
|
||||
class name com/sun/net/httpserver/Authenticator$Retry
|
||||
header extends com/sun/net/httpserver/Authenticator$Result flags 21
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Retry outerClass com/sun/net/httpserver/Authenticator innerClassName Retry flags 9
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Result outerClass com/sun/net/httpserver/Authenticator innerClassName Result flags 409
|
||||
|
||||
class name com/sun/net/httpserver/Authenticator$Success
|
||||
header extends com/sun/net/httpserver/Authenticator$Result flags 21
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Success outerClass com/sun/net/httpserver/Authenticator innerClassName Success flags 9
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Result outerClass com/sun/net/httpserver/Authenticator innerClassName Result flags 409
|
||||
|
||||
class name com/sun/net/httpserver/BasicAuthenticator
|
||||
header extends com/sun/net/httpserver/Authenticator flags 421
|
||||
innerclass innerClass com/sun/net/httpserver/Authenticator$Result outerClass com/sun/net/httpserver/Authenticator innerClassName Result flags 409
|
||||
|
||||
class name com/sun/net/httpserver/Filter
|
||||
header extends java/lang/Object flags 421
|
||||
innerclass innerClass com/sun/net/httpserver/Filter$Chain outerClass com/sun/net/httpserver/Filter innerClassName Chain flags 9
|
||||
|
||||
class name com/sun/net/httpserver/Filter$Chain
|
||||
header extends java/lang/Object flags 21
|
||||
innerclass innerClass com/sun/net/httpserver/Filter$Chain outerClass com/sun/net/httpserver/Filter innerClassName Chain flags 9
|
||||
|
||||
class name com/sun/net/httpserver/Headers
|
||||
header extends java/lang/Object implements java/util/Map flags 21 signature Ljava/lang/Object;Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
|
||||
innerclass innerClass java/util/Map$Entry outerClass java/util/Map innerClassName Entry flags 609
|
||||
|
||||
class name com/sun/net/httpserver/HttpContext
|
||||
header extends java/lang/Object flags 421
|
||||
|
||||
class name com/sun/net/httpserver/HttpExchange
|
||||
header extends java/lang/Object flags 421
|
||||
|
||||
class name com/sun/net/httpserver/HttpHandler
|
||||
header extends java/lang/Object flags 601
|
||||
|
||||
class name com/sun/net/httpserver/HttpPrincipal
|
||||
header extends java/lang/Object implements java/security/Principal flags 21
|
||||
|
||||
class name com/sun/net/httpserver/HttpServer
|
||||
header extends java/lang/Object flags 421
|
||||
|
||||
class name com/sun/net/httpserver/HttpsConfigurator
|
||||
header extends java/lang/Object flags 21
|
||||
|
||||
class name com/sun/net/httpserver/HttpsExchange
|
||||
header extends com/sun/net/httpserver/HttpExchange flags 421
|
||||
|
||||
class name com/sun/net/httpserver/HttpsParameters
|
||||
header extends java/lang/Object flags 421
|
||||
|
||||
class name com/sun/net/httpserver/HttpsServer
|
||||
header extends com/sun/net/httpserver/HttpServer flags 421
|
||||
|
||||
class name com/sun/net/httpserver/spi/HttpServerProvider
|
||||
header extends java/lang/Object flags 421
|
||||
|
@ -1,63 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
-class name com/sun/management/DiagnosticCommandMBean
|
||||
|
||||
class name com/sun/management/GarbageCollectionNotificationInfo
|
||||
header extends java/lang/Object implements javax/management/openmbean/CompositeDataView flags 21
|
||||
|
||||
class name com/sun/management/GarbageCollectorMXBean
|
||||
header extends java/lang/Object implements java/lang/management/GarbageCollectorMXBean flags 601
|
||||
|
||||
class name com/sun/management/GcInfo
|
||||
header extends java/lang/Object implements javax/management/openmbean/CompositeData,javax/management/openmbean/CompositeDataView flags 21
|
||||
|
||||
class name com/sun/management/HotSpotDiagnosticMXBean
|
||||
header extends java/lang/Object implements java/lang/management/PlatformManagedObject flags 601
|
||||
|
||||
class name com/sun/management/OSMBeanFactory
|
||||
header extends java/lang/Object flags 21
|
||||
method name getOperatingSystemMXBean descriptor (Lsun/management/VMManagement;)Ljava/lang/management/OperatingSystemMXBean; flags 29
|
||||
|
||||
class name com/sun/management/OperatingSystemMXBean
|
||||
header extends java/lang/Object implements java/lang/management/OperatingSystemMXBean flags 601
|
||||
|
||||
class name com/sun/management/ThreadMXBean
|
||||
header extends java/lang/Object implements java/lang/management/ThreadMXBean flags 601
|
||||
|
||||
class name com/sun/management/UnixOperatingSystemMXBean
|
||||
header extends java/lang/Object implements com/sun/management/OperatingSystemMXBean flags 601
|
||||
|
||||
class name com/sun/management/VMOption
|
||||
header extends java/lang/Object flags 21
|
||||
innerclass innerClass com/sun/management/VMOption$Origin outerClass com/sun/management/VMOption innerClassName Origin flags 4019
|
||||
|
||||
class name com/sun/management/VMOption$Origin
|
||||
header extends java/lang/Enum flags 4031 signature Ljava/lang/Enum<Lcom/sun/management/VMOption$Origin;>;
|
||||
innerclass innerClass com/sun/management/VMOption$Origin outerClass com/sun/management/VMOption innerClassName Origin flags 4019
|
||||
|
@ -1,46 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2018, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
-class name jdk/nashorn/api/scripting/AbstractJSObject
|
||||
|
||||
-class name jdk/nashorn/api/scripting/ClassFilter
|
||||
|
||||
-class name jdk/nashorn/api/scripting/JSObject
|
||||
|
||||
-class name jdk/nashorn/api/scripting/NashornException
|
||||
|
||||
-class name jdk/nashorn/api/scripting/NashornScriptEngine
|
||||
|
||||
-class name jdk/nashorn/api/scripting/NashornScriptEngineFactory
|
||||
|
||||
-class name jdk/nashorn/api/scripting/ScriptObjectMirror
|
||||
|
||||
-class name jdk/nashorn/api/scripting/ScriptUtils
|
||||
|
||||
-class name jdk/nashorn/api/scripting/URLReader
|
||||
|
@ -1,97 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name com/sun/nio/sctp/AbstractNotificationHandler
|
||||
header extends java/lang/Object implements com/sun/nio/sctp/NotificationHandler flags 21 signature <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/sun/nio/sctp/NotificationHandler<TT;>;
|
||||
|
||||
class name com/sun/nio/sctp/Association
|
||||
header extends java/lang/Object flags 21
|
||||
|
||||
class name com/sun/nio/sctp/AssociationChangeNotification
|
||||
header extends java/lang/Object implements com/sun/nio/sctp/Notification flags 421
|
||||
innerclass innerClass com/sun/nio/sctp/AssociationChangeNotification$AssocChangeEvent outerClass com/sun/nio/sctp/AssociationChangeNotification innerClassName AssocChangeEvent flags 4019
|
||||
|
||||
class name com/sun/nio/sctp/AssociationChangeNotification$AssocChangeEvent
|
||||
header extends java/lang/Enum flags 4031 signature Ljava/lang/Enum<Lcom/sun/nio/sctp/AssociationChangeNotification$AssocChangeEvent;>;
|
||||
innerclass innerClass com/sun/nio/sctp/AssociationChangeNotification$AssocChangeEvent outerClass com/sun/nio/sctp/AssociationChangeNotification innerClassName AssocChangeEvent flags 4019
|
||||
|
||||
class name com/sun/nio/sctp/HandlerResult
|
||||
header extends java/lang/Enum flags 4031 signature Ljava/lang/Enum<Lcom/sun/nio/sctp/HandlerResult;>;
|
||||
|
||||
class name com/sun/nio/sctp/IllegalReceiveException
|
||||
header extends java/lang/IllegalStateException flags 21
|
||||
|
||||
class name com/sun/nio/sctp/IllegalUnbindException
|
||||
header extends java/lang/IllegalStateException flags 21
|
||||
|
||||
class name com/sun/nio/sctp/InvalidStreamException
|
||||
header extends java/lang/IllegalArgumentException flags 21
|
||||
|
||||
class name com/sun/nio/sctp/MessageInfo
|
||||
header extends java/lang/Object flags 421
|
||||
|
||||
class name com/sun/nio/sctp/Notification
|
||||
header extends java/lang/Object flags 601
|
||||
|
||||
class name com/sun/nio/sctp/NotificationHandler
|
||||
header extends java/lang/Object flags 601 signature <T:Ljava/lang/Object;>Ljava/lang/Object;
|
||||
|
||||
class name com/sun/nio/sctp/PeerAddressChangeNotification
|
||||
header extends java/lang/Object implements com/sun/nio/sctp/Notification flags 421
|
||||
innerclass innerClass com/sun/nio/sctp/PeerAddressChangeNotification$AddressChangeEvent outerClass com/sun/nio/sctp/PeerAddressChangeNotification innerClassName AddressChangeEvent flags 4019
|
||||
|
||||
class name com/sun/nio/sctp/PeerAddressChangeNotification$AddressChangeEvent
|
||||
header extends java/lang/Enum flags 4031 signature Ljava/lang/Enum<Lcom/sun/nio/sctp/PeerAddressChangeNotification$AddressChangeEvent;>;
|
||||
innerclass innerClass com/sun/nio/sctp/PeerAddressChangeNotification$AddressChangeEvent outerClass com/sun/nio/sctp/PeerAddressChangeNotification innerClassName AddressChangeEvent flags 4019
|
||||
|
||||
class name com/sun/nio/sctp/SctpChannel
|
||||
header extends java/nio/channels/spi/AbstractSelectableChannel flags 421
|
||||
|
||||
class name com/sun/nio/sctp/SctpMultiChannel
|
||||
header extends java/nio/channels/spi/AbstractSelectableChannel flags 421
|
||||
|
||||
class name com/sun/nio/sctp/SctpServerChannel
|
||||
header extends java/nio/channels/spi/AbstractSelectableChannel flags 421
|
||||
|
||||
class name com/sun/nio/sctp/SctpSocketOption
|
||||
header extends java/lang/Object implements java/net/SocketOption flags 601 signature <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/net/SocketOption<TT;>;
|
||||
|
||||
class name com/sun/nio/sctp/SctpStandardSocketOptions
|
||||
header extends java/lang/Object flags 21
|
||||
innerclass innerClass com/sun/nio/sctp/SctpStandardSocketOptions$InitMaxStreams outerClass com/sun/nio/sctp/SctpStandardSocketOptions innerClassName InitMaxStreams flags 9
|
||||
|
||||
class name com/sun/nio/sctp/SctpStandardSocketOptions$InitMaxStreams
|
||||
header extends java/lang/Object flags 21
|
||||
innerclass innerClass com/sun/nio/sctp/SctpStandardSocketOptions$InitMaxStreams outerClass com/sun/nio/sctp/SctpStandardSocketOptions innerClassName InitMaxStreams flags 9
|
||||
|
||||
class name com/sun/nio/sctp/SendFailedNotification
|
||||
header extends java/lang/Object implements com/sun/nio/sctp/Notification flags 421
|
||||
|
||||
class name com/sun/nio/sctp/ShutdownNotification
|
||||
header extends java/lang/Object implements com/sun/nio/sctp/Notification flags 421
|
||||
|
@ -1,90 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name com/sun/security/auth/LdapPrincipal
|
||||
header extends java/lang/Object implements java/security/Principal,java/io/Serializable flags 31
|
||||
|
||||
class name com/sun/security/auth/NTDomainPrincipal
|
||||
header extends java/lang/Object implements java/security/Principal,java/io/Serializable flags 21
|
||||
|
||||
class name com/sun/security/auth/NTNumericCredential
|
||||
header extends java/lang/Object flags 21
|
||||
|
||||
class name com/sun/security/auth/NTSid
|
||||
header extends java/lang/Object implements java/security/Principal,java/io/Serializable flags 21
|
||||
|
||||
class name com/sun/security/auth/NTSidDomainPrincipal
|
||||
header extends com/sun/security/auth/NTSid flags 21
|
||||
|
||||
class name com/sun/security/auth/NTSidGroupPrincipal
|
||||
header extends com/sun/security/auth/NTSid flags 21
|
||||
|
||||
class name com/sun/security/auth/NTSidPrimaryGroupPrincipal
|
||||
header extends com/sun/security/auth/NTSid flags 21
|
||||
|
||||
class name com/sun/security/auth/NTSidUserPrincipal
|
||||
header extends com/sun/security/auth/NTSid flags 21
|
||||
|
||||
class name com/sun/security/auth/NTUserPrincipal
|
||||
header extends java/lang/Object implements java/security/Principal,java/io/Serializable flags 21
|
||||
|
||||
class name com/sun/security/auth/PrincipalComparator
|
||||
header extends java/lang/Object flags 601
|
||||
|
||||
class name com/sun/security/auth/UnixNumericGroupPrincipal
|
||||
header extends java/lang/Object implements java/security/Principal,java/io/Serializable flags 21
|
||||
|
||||
class name com/sun/security/auth/UnixNumericUserPrincipal
|
||||
header extends java/lang/Object implements java/security/Principal,java/io/Serializable flags 21
|
||||
|
||||
class name com/sun/security/auth/UnixPrincipal
|
||||
header extends java/lang/Object implements java/security/Principal,java/io/Serializable flags 21
|
||||
|
||||
class name com/sun/security/auth/UserPrincipal
|
||||
header extends java/lang/Object implements java/security/Principal,java/io/Serializable flags 31
|
||||
|
||||
class name com/sun/security/auth/callback/TextCallbackHandler
|
||||
header extends java/lang/Object implements javax/security/auth/callback/CallbackHandler flags 21
|
||||
|
||||
class name com/sun/security/auth/login/ConfigFile
|
||||
header extends javax/security/auth/login/Configuration flags 21
|
||||
-method name refresh descriptor ()V
|
||||
method name refresh descriptor ()V flags 21
|
||||
|
||||
class name com/sun/security/auth/module/JndiLoginModule
|
||||
header extends java/lang/Object implements javax/security/auth/spi/LoginModule flags 21
|
||||
|
||||
class name com/sun/security/auth/module/KeyStoreLoginModule
|
||||
header extends java/lang/Object implements javax/security/auth/spi/LoginModule flags 21
|
||||
|
||||
class name com/sun/security/auth/module/Krb5LoginModule
|
||||
header extends java/lang/Object implements javax/security/auth/spi/LoginModule flags 21
|
||||
|
||||
class name com/sun/security/auth/module/LdapLoginModule
|
||||
header extends java/lang/Object implements javax/security/auth/spi/LoginModule flags 21
|
||||
|
@ -1,45 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2015, 2017, 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
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
# ##########################################################
|
||||
# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
|
||||
# ##########################################################
|
||||
#
|
||||
class name com/sun/security/jgss/AuthorizationDataEntry
|
||||
header extends java/lang/Object flags 31
|
||||
|
||||
class name com/sun/security/jgss/ExtendedGSSContext
|
||||
header extends java/lang/Object implements org/ietf/jgss/GSSContext flags 601
|
||||
|
||||
-class name com/sun/security/jgss/ExtendedGSSCredential
|
||||
|
||||
class name com/sun/security/jgss/GSSUtil
|
||||
header extends java/lang/Object flags 21
|
||||
|
||||
class name com/sun/security/jgss/InquireSecContextPermission
|
||||
header extends java/security/BasicPermission flags 31
|
||||
|
||||
class name com/sun/security/jgss/InquireType
|
||||
header extends java/lang/Enum flags 4031 signature Ljava/lang/Enum<Lcom/sun/security/jgss/InquireType;>;
|
||||
|
@ -29,9 +29,8 @@
|
||||
#command used to generate this file:
|
||||
#build.tools.symbolgenerator.CreateSymbols build-description-incremental symbols include.list
|
||||
#
|
||||
generate platforms 7:8:9:A:B:C:D:E:F:G:H:I:J
|
||||
generate platforms 8:9:A:B:C:D:E:F:G:H:I:J
|
||||
platform version 8 files java.activation-8.sym.txt:java.base-8.sym.txt:java.compiler-8.sym.txt:java.corba-8.sym.txt:java.datatransfer-8.sym.txt:java.desktop-8.sym.txt:java.instrument-8.sym.txt:java.logging-8.sym.txt:java.management-8.sym.txt:java.management.rmi-8.sym.txt:java.naming-8.sym.txt:java.prefs-8.sym.txt:java.rmi-8.sym.txt:java.scripting-8.sym.txt:java.security.jgss-8.sym.txt:java.security.sasl-8.sym.txt:java.sql-8.sym.txt:java.sql.rowset-8.sym.txt:java.transaction-8.sym.txt:java.xml-8.sym.txt:java.xml.bind-8.sym.txt:java.xml.crypto-8.sym.txt:java.xml.ws-8.sym.txt:java.xml.ws.annotation-8.sym.txt:jdk.httpserver-8.sym.txt:jdk.management-8.sym.txt:jdk.scripting.nashorn-8.sym.txt:jdk.sctp-8.sym.txt:jdk.security.auth-8.sym.txt:jdk.security.jgss-8.sym.txt
|
||||
platform version 7 base 8 files java.base-7.sym.txt:java.compiler-7.sym.txt:java.datatransfer-7.sym.txt:java.desktop-7.sym.txt:java.logging-7.sym.txt:java.management-7.sym.txt:java.naming-7.sym.txt:java.prefs-7.sym.txt:java.rmi-7.sym.txt:java.scripting-7.sym.txt:java.security.jgss-7.sym.txt:java.security.sasl-7.sym.txt:java.sql-7.sym.txt:java.sql.rowset-7.sym.txt:java.xml-7.sym.txt:java.xml.bind-7.sym.txt:java.xml.ws.annotation-7.sym.txt:jdk.httpserver-7.sym.txt:jdk.management-7.sym.txt:jdk.scripting.nashorn-7.sym.txt:jdk.sctp-7.sym.txt:jdk.security.auth-7.sym.txt:jdk.security.jgss-7.sym.txt
|
||||
platform version 9 base 8 files java.activation-9.sym.txt:java.base-9.sym.txt:java.compiler-9.sym.txt:java.corba-9.sym.txt:java.datatransfer-9.sym.txt:java.desktop-9.sym.txt:java.instrument-9.sym.txt:java.logging-9.sym.txt:java.management-9.sym.txt:java.management.rmi-9.sym.txt:java.naming-9.sym.txt:java.prefs-9.sym.txt:java.rmi-9.sym.txt:java.scripting-9.sym.txt:java.se-9.sym.txt:java.se.ee-9.sym.txt:java.security.jgss-9.sym.txt:java.security.sasl-9.sym.txt:java.smartcardio-9.sym.txt:java.sql-9.sym.txt:java.sql.rowset-9.sym.txt:java.transaction-9.sym.txt:java.xml-9.sym.txt:java.xml.bind-9.sym.txt:java.xml.crypto-9.sym.txt:java.xml.ws-9.sym.txt:java.xml.ws.annotation-9.sym.txt:jdk.accessibility-9.sym.txt:jdk.attach-9.sym.txt:jdk.charsets-9.sym.txt:jdk.compiler-9.sym.txt:jdk.crypto.cryptoki-9.sym.txt:jdk.crypto.ec-9.sym.txt:jdk.dynalink-9.sym.txt:jdk.editpad-9.sym.txt:jdk.hotspot.agent-9.sym.txt:jdk.httpserver-9.sym.txt:jdk.incubator.httpclient-9.sym.txt:jdk.jartool-9.sym.txt:jdk.javadoc-9.sym.txt:jdk.jcmd-9.sym.txt:jdk.jconsole-9.sym.txt:jdk.jdeps-9.sym.txt:jdk.jdi-9.sym.txt:jdk.jdwp.agent-9.sym.txt:jdk.jlink-9.sym.txt:jdk.jshell-9.sym.txt:jdk.jsobject-9.sym.txt:jdk.jstatd-9.sym.txt:jdk.localedata-9.sym.txt:jdk.management-9.sym.txt:jdk.management.agent-9.sym.txt:jdk.naming.dns-9.sym.txt:jdk.naming.rmi-9.sym.txt:jdk.net-9.sym.txt:jdk.pack-9.sym.txt:jdk.policytool-9.sym.txt:jdk.rmic-9.sym.txt:jdk.scripting.nashorn-9.sym.txt:jdk.sctp-9.sym.txt:jdk.security.auth-9.sym.txt:jdk.security.jgss-9.sym.txt:jdk.unsupported-9.sym.txt:jdk.xml.dom-9.sym.txt:jdk.zipfs-9.sym.txt
|
||||
platform version A base 9 files java.activation-A.sym.txt:java.base-A.sym.txt:java.compiler-A.sym.txt:java.corba-A.sym.txt:java.datatransfer-A.sym.txt:java.desktop-A.sym.txt:java.instrument-A.sym.txt:java.logging-A.sym.txt:java.management-A.sym.txt:java.management.rmi-A.sym.txt:java.naming-A.sym.txt:java.prefs-A.sym.txt:java.rmi-A.sym.txt:java.scripting-A.sym.txt:java.se-A.sym.txt:java.se.ee-A.sym.txt:java.security.jgss-A.sym.txt:java.security.sasl-A.sym.txt:java.smartcardio-A.sym.txt:java.sql-A.sym.txt:java.sql.rowset-A.sym.txt:java.transaction-A.sym.txt:java.xml-A.sym.txt:java.xml.bind-A.sym.txt:java.xml.crypto-A.sym.txt:java.xml.ws-A.sym.txt:java.xml.ws.annotation-A.sym.txt:jdk.accessibility-A.sym.txt:jdk.attach-A.sym.txt:jdk.charsets-A.sym.txt:jdk.compiler-A.sym.txt:jdk.crypto.cryptoki-A.sym.txt:jdk.crypto.ec-A.sym.txt:jdk.dynalink-A.sym.txt:jdk.editpad-A.sym.txt:jdk.hotspot.agent-A.sym.txt:jdk.httpserver-A.sym.txt:jdk.incubator.httpclient-A.sym.txt:jdk.jartool-A.sym.txt:jdk.javadoc-A.sym.txt:jdk.jcmd-A.sym.txt:jdk.jconsole-A.sym.txt:jdk.jdeps-A.sym.txt:jdk.jdi-A.sym.txt:jdk.jdwp.agent-A.sym.txt:jdk.jlink-A.sym.txt:jdk.jshell-A.sym.txt:jdk.jsobject-A.sym.txt:jdk.jstatd-A.sym.txt:jdk.localedata-A.sym.txt:jdk.management-A.sym.txt:jdk.management.agent-A.sym.txt:jdk.naming.dns-A.sym.txt:jdk.naming.rmi-A.sym.txt:jdk.net-A.sym.txt:jdk.pack-A.sym.txt:jdk.policytool-A.sym.txt:jdk.rmic-A.sym.txt:jdk.scripting.nashorn-A.sym.txt:jdk.sctp-A.sym.txt:jdk.security.auth-A.sym.txt:jdk.security.jgss-A.sym.txt:jdk.unsupported-A.sym.txt:jdk.xml.dom-A.sym.txt:jdk.zipfs-A.sym.txt
|
||||
platform version B base A files java.activation-B.sym.txt:java.base-B.sym.txt:java.compiler-B.sym.txt:java.corba-B.sym.txt:java.datatransfer-B.sym.txt:java.desktop-B.sym.txt:java.instrument-B.sym.txt:java.logging-B.sym.txt:java.management-B.sym.txt:java.management.rmi-B.sym.txt:java.naming-B.sym.txt:java.net.http-B.sym.txt:java.prefs-B.sym.txt:java.rmi-B.sym.txt:java.scripting-B.sym.txt:java.se-B.sym.txt:java.se.ee-B.sym.txt:java.security.jgss-B.sym.txt:java.security.sasl-B.sym.txt:java.smartcardio-B.sym.txt:java.sql-B.sym.txt:java.sql.rowset-B.sym.txt:java.transaction-B.sym.txt:java.transaction.xa-B.sym.txt:java.xml-B.sym.txt:java.xml.bind-B.sym.txt:java.xml.crypto-B.sym.txt:java.xml.ws-B.sym.txt:java.xml.ws.annotation-B.sym.txt:jdk.accessibility-B.sym.txt:jdk.attach-B.sym.txt:jdk.charsets-B.sym.txt:jdk.compiler-B.sym.txt:jdk.crypto.cryptoki-B.sym.txt:jdk.crypto.ec-B.sym.txt:jdk.dynalink-B.sym.txt:jdk.editpad-B.sym.txt:jdk.hotspot.agent-B.sym.txt:jdk.httpserver-B.sym.txt:jdk.incubator.httpclient-B.sym.txt:jdk.jartool-B.sym.txt:jdk.javadoc-B.sym.txt:jdk.jcmd-B.sym.txt:jdk.jconsole-B.sym.txt:jdk.jdeps-B.sym.txt:jdk.jdi-B.sym.txt:jdk.jdwp.agent-B.sym.txt:jdk.jfr-B.sym.txt:jdk.jlink-B.sym.txt:jdk.jshell-B.sym.txt:jdk.jsobject-B.sym.txt:jdk.jstatd-B.sym.txt:jdk.localedata-B.sym.txt:jdk.management-B.sym.txt:jdk.management.agent-B.sym.txt:jdk.management.jfr-B.sym.txt:jdk.naming.dns-B.sym.txt:jdk.naming.rmi-B.sym.txt:jdk.net-B.sym.txt:jdk.pack-B.sym.txt:jdk.rmic-B.sym.txt:jdk.scripting.nashorn-B.sym.txt:jdk.sctp-B.sym.txt:jdk.security.auth-B.sym.txt:jdk.security.jgss-B.sym.txt:jdk.unsupported-B.sym.txt:jdk.xml.dom-B.sym.txt:jdk.zipfs-B.sym.txt
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2022, 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
|
||||
@ -201,7 +201,6 @@ class ReplParser extends JavacParser {
|
||||
List<JCAnnotation> annosAfterParams = annotationsOpt(Tag.ANNOTATION);
|
||||
|
||||
if (annosAfterParams.nonEmpty()) {
|
||||
checkSourceLevel(annosAfterParams.head.pos, Feature.ANNOTATIONS_AFTER_TYPE_PARAMS);
|
||||
mods.annotations = mods.annotations.appendList(annosAfterParams);
|
||||
if (mods.pos == Position.NOPOS) {
|
||||
mods.pos = mods.annotations.head.pos;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2022, 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
|
||||
@ -39,6 +39,8 @@ import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
||||
public class MultiReleaseJars {
|
||||
|
||||
static final int BASE_VERSION = 8;
|
||||
static final String BASE_VERSION_STRING = Integer.toString(BASE_VERSION);
|
||||
static final int MAJOR_VERSION = Runtime.version().major();
|
||||
static final String MAJOR_VERSION_STRING = String.valueOf(MAJOR_VERSION);
|
||||
|
||||
@ -102,8 +104,10 @@ public class MultiReleaseJars {
|
||||
writeFile(fileMain, getMain());
|
||||
|
||||
File fileVersion = TestCommon.getOutputSourceFile("Version.java");
|
||||
writeFile(fileVersion, getVersion(7));
|
||||
JarBuilder.compile(baseDir.getAbsolutePath(), fileVersion.getAbsolutePath(), "--release", "7");
|
||||
writeFile(fileVersion, getVersion(BASE_VERSION));
|
||||
JarBuilder.compile(baseDir.getAbsolutePath(),
|
||||
fileVersion.getAbsolutePath(),
|
||||
"--release", BASE_VERSION_STRING);
|
||||
JarBuilder.compile(baseDir.getAbsolutePath(), fileMain.getAbsolutePath(),
|
||||
"-cp", baseDir.getAbsolutePath(), "--release", MAJOR_VERSION_STRING);
|
||||
|
||||
@ -146,7 +150,7 @@ public class MultiReleaseJars {
|
||||
|
||||
public static void main(String... args) throws Exception {
|
||||
// create version.jar which contains Main.class and Version.class.
|
||||
// Version.class has two versions: 8 and the current version.
|
||||
// Version.class has two versions: base version and the current version.
|
||||
createClassFilesAndJar();
|
||||
|
||||
String mainClass = "version.Main";
|
||||
@ -168,12 +172,12 @@ public class MultiReleaseJars {
|
||||
output = TestCommon.exec(appJar, mainClass);
|
||||
checkExecOutput(output, "I am running on version " + MAJOR_VERSION_STRING);
|
||||
|
||||
// 2. Test versions 7 and the current major version.
|
||||
// 2. Test versions base and the current major version.
|
||||
// -Djdk.util.jar.enableMultiRelease=true (or force), default is true.
|
||||
// a) -Djdk.util.jar.version=7 does not exist in jar.
|
||||
// It will fallback to the root version which is also 7 in this test.
|
||||
// a) -Djdk.util.jar.version=BASE_VERSION does not exist in jar.
|
||||
// It will fallback to the root version which is also BASE_VERSION in this test.
|
||||
// b) -Djdk.util.jar.version=MAJOR_VERSION exists in the jar.
|
||||
for (int i : new int[] {7, MAJOR_VERSION}) {
|
||||
for (int i : new int[] {BASE_VERSION, MAJOR_VERSION}) {
|
||||
jarVersion = "-Djdk.util.jar.version=" + i;
|
||||
expectedOutput = "I am running on version " + i;
|
||||
output = TestCommon.dump(appJar, appClasses, enableMultiRelease, jarVersion);
|
||||
@ -196,7 +200,7 @@ public class MultiReleaseJars {
|
||||
|
||||
output = TestCommon.exec(appJar, mainClass);
|
||||
if (i == 5)
|
||||
checkExecOutput(output, "I am running on version 7");
|
||||
checkExecOutput(output, "I am running on version " + BASE_VERSION_STRING);
|
||||
else
|
||||
checkExecOutput(output, "I am running on version " + MAJOR_VERSION_STRING);
|
||||
}
|
||||
@ -210,7 +214,7 @@ public class MultiReleaseJars {
|
||||
output.shouldHaveExitValue(0);
|
||||
|
||||
output = TestCommon.exec(appJar, mainClass);
|
||||
expectedOutput = "I am running on version 7";
|
||||
expectedOutput = "I am running on version " + BASE_VERSION_STRING;
|
||||
checkExecOutput(output, expectedOutput);
|
||||
}
|
||||
|
||||
@ -222,7 +226,7 @@ public class MultiReleaseJars {
|
||||
output.shouldHaveExitValue(0);
|
||||
|
||||
output = TestCommon.exec(appJar, "-Xbootclasspath/a:" + appJar, mainClass);
|
||||
checkExecOutput(output, "I am running on version 7");
|
||||
checkExecOutput(output, "I am running on version " + BASE_VERSION_STRING);
|
||||
|
||||
// 6. Sanity test case-insensitive "Multi-Release" attribute name
|
||||
output = TestCommon.dump(appJar2, appClasses);
|
||||
|
@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2014, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8009267
|
||||
* @summary Verify uses of isAnnotationPresent compile under older source versions
|
||||
* @compile -source 1.7 -target 1.7 OldenCompilingWithDefaults.java
|
||||
* @compile OldenCompilingWithDefaults.java
|
||||
*/
|
||||
|
||||
import java.lang.reflect.*;
|
||||
|
||||
public class OldenCompilingWithDefaults {
|
||||
public OldenCompilingWithDefaults(){}
|
||||
static Object f;
|
||||
|
||||
public static void main(String... args) throws Exception {
|
||||
Class<OldenCompilingWithDefaults> clazz = OldenCompilingWithDefaults.class;
|
||||
Package pkg = clazz.getPackage();
|
||||
Constructor<OldenCompilingWithDefaults> ctor = clazz.getConstructor();
|
||||
Method m = clazz.getMethod("main", String[].class);
|
||||
Field f = clazz.getField("f");
|
||||
|
||||
if(clazz.isAnnotationPresent(SuppressWarnings.class) ||
|
||||
pkg.isAnnotationPresent(SuppressWarnings.class) ||
|
||||
ctor.isAnnotationPresent(SuppressWarnings.class) ||
|
||||
m.isAnnotationPresent(SuppressWarnings.class) ||
|
||||
f.isAnnotationPresent(SuppressWarnings.class))
|
||||
System.out.println("An annotation is present.");
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2022, 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
|
||||
@ -243,30 +243,6 @@ public class TestCopyFiles extends JavadocTester {
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDocFilesInPackagesSource7() {
|
||||
javadoc("-d", "packages-out-src7",
|
||||
"-source", "7",
|
||||
"-sourcepath", testSrc("packages"),
|
||||
"p1");
|
||||
checkExit(Exit.OK);
|
||||
checkOutput("p1/doc-files/inpackage.html", true,
|
||||
"A named package in an unnamed module"
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDocFilesInPackagesSource7UsingClassPath() {
|
||||
javadoc("-d", "packages-out-src7-cp",
|
||||
"-source", "7",
|
||||
"-classpath", testSrc("packages"),
|
||||
"p1");
|
||||
checkExit(Exit.OK);
|
||||
checkOutput("p1/doc-files/inpackage.html", true,
|
||||
"A named package in an unnamed module"
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCopyThrough() {
|
||||
javadoc("-d", "copy",
|
||||
|
@ -1,134 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 2021, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8004893 8022738 8029143 8175200 8186332 8184205
|
||||
* @summary Make sure that the lambda feature changes work fine in
|
||||
* javadoc.
|
||||
* @library ../../lib/
|
||||
* @modules jdk.javadoc/jdk.javadoc.internal.tool
|
||||
* @build javadoc.tester.* TestLambdaFeature
|
||||
* @run main TestLambdaFeature
|
||||
*/
|
||||
|
||||
/*
|
||||
* NOTE : This test should be elided when version 1.7 support is removed from the JDK
|
||||
* or the negative part of the test showing 1.7's non-support should be
|
||||
* removed [ 8022738 ]
|
||||
*/
|
||||
|
||||
import javadoc.tester.JavadocTester;
|
||||
|
||||
public class TestLambdaFeature extends JavadocTester {
|
||||
|
||||
public static void main(String... args) throws Exception {
|
||||
TestLambdaFeature tester = new TestLambdaFeature();
|
||||
tester.runTests();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDefault() {
|
||||
javadoc("-d", "out-default",
|
||||
"-sourcepath", testSrc,
|
||||
"pkg", "pkg1");
|
||||
checkExit(Exit.OK);
|
||||
|
||||
checkOutput("pkg/A.html", true,
|
||||
"""
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-t\
|
||||
ab2 method-summary-table-tab5"><code>default void</code></div>""",
|
||||
"""
|
||||
<div class="member-signature"><span class="modifiers">default</span> <span \
|
||||
class="return-type">void</span> <span class="element-name">defaultMethod</span>()</\
|
||||
div>
|
||||
""",
|
||||
"""
|
||||
<div class="table-tabs" role="tablist" aria-orientation="horizontal">\
|
||||
<button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-cont\
|
||||
rols="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" o\
|
||||
nclick="show('method-summary-table', 'method-summary-table', 3)" class="active-t\
|
||||
able-tab">All Methods</button>\
|
||||
<button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-con\
|
||||
trols="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)"\
|
||||
onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="t\
|
||||
able-tab">Instance Methods</button>\
|
||||
<button id="method-summary-table-tab3" role="tab" aria-selected="false" aria-con\
|
||||
trols="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)"\
|
||||
onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="t\
|
||||
able-tab">Abstract Methods</button>\
|
||||
<button id="method-summary-table-tab5" role="tab" aria-selected="false" aria-con\
|
||||
trols="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)"\
|
||||
onclick="show('method-summary-table', 'method-summary-table-tab5', 3)" class="t\
|
||||
able-tab">Default Methods</button>\
|
||||
</div>""",
|
||||
"""
|
||||
<dl class="notes">
|
||||
<dt>Functional Interface:</dt>
|
||||
<dd>This is a functional interface and can therefore be used as the assignment t\
|
||||
arget for a lambda expression or method reference.</dd>
|
||||
</dl>""");
|
||||
|
||||
checkOutput("pkg1/FuncInf.html", true,
|
||||
"""
|
||||
<dl class="notes">
|
||||
<dt>Functional Interface:</dt>
|
||||
<dd>This is a functional interface and can therefore be used as the assignment t\
|
||||
arget for a lambda expression or method reference.</dd>
|
||||
</dl>""");
|
||||
|
||||
checkOutput("pkg/A.html", false,
|
||||
"""
|
||||
<td class="col-first"><code>default default void</code></td>""",
|
||||
"<pre>default default void defaultMethod()</pre>");
|
||||
|
||||
checkOutput("pkg/B.html", false,
|
||||
"""
|
||||
<td class="col-first"><code>default void</code></td>""",
|
||||
"""
|
||||
<dl class="notes">
|
||||
<dt>Functional Interface:</dt>""");
|
||||
|
||||
checkOutput("pkg1/NotAFuncInf.html", false,
|
||||
"""
|
||||
<dl class="notes">
|
||||
<dt>Functional Interface:</dt>
|
||||
<dd>This is a functional interface and can therefore be used as the assignment t\
|
||||
arget for a lambda expression or method reference.</dd>
|
||||
</dl>""");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSource7() {
|
||||
javadoc("-d", "out-7",
|
||||
"-sourcepath", testSrc,
|
||||
"-source", "1.7",
|
||||
"pkg1");
|
||||
checkExit(Exit.OK);
|
||||
|
||||
checkOutput("pkg1/FuncInf.html", false,
|
||||
"""
|
||||
<dl class="notes">
|
||||
<dt>Functional Interface:</dt>""");
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2022, 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
|
||||
@ -58,7 +58,7 @@ public class TestLinkPlatform extends JavadocTester {
|
||||
final static String NON_MODULAR_CUSTOM_PLATFORM_URL = "https://example.com/%d/api/java/lang/Object.html";
|
||||
final static String MODULAR_CUSTOM_PLATFORM_URL = "https://example.com/%d/api/java.base/java/lang/Object.html";
|
||||
|
||||
final static int EARLIEST_VERSION = 7;
|
||||
final static int EARLIEST_VERSION = 8;
|
||||
final static int LATEST_VERSION = Integer.parseInt(SourceVersion.latest().name().substring(8));
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2022, 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
|
||||
@ -47,10 +47,9 @@ public class ReleaseOption {
|
||||
}
|
||||
|
||||
void run() {
|
||||
doRunTest(ERROR, out -> out.contains("compiler.err.doesnt.exist: java.util.stream"), "--release", "7");
|
||||
doRunTest(OK, out -> !out.contains("compiler.err.doesnt.exist: java.util.stream"), "--release", "8");
|
||||
doRunTest(CMDERR, out -> true, "--release", "7", "-source", "7");
|
||||
doRunTest(CMDERR, out -> true, "--release", "7", "-bootclasspath", "any");
|
||||
doRunTest(CMDERR, out -> true, "--release", "8", "-source", "8");
|
||||
doRunTest(CMDERR, out -> true, "--release", "8", "-bootclasspath", "any");
|
||||
}
|
||||
|
||||
void doRunTest(Result expectedResult, Predicate<String> validate, String... args) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2022, 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
|
||||
@ -40,7 +40,7 @@ public class CompilerOptionsTest extends KullaTesting {
|
||||
@BeforeMethod
|
||||
@Override
|
||||
public void setUp() {
|
||||
setUp(b -> b.compilerOptions("-source", "7", "-Xlint:cast,-options"));
|
||||
setUp(b -> b.compilerOptions("-source", "8", "-Xlint:cast,-options"));
|
||||
}
|
||||
|
||||
public void testLint() {
|
||||
@ -49,8 +49,9 @@ public class CompilerOptionsTest extends KullaTesting {
|
||||
}
|
||||
|
||||
public void testSourceVersion() {
|
||||
assertEval("import java.util.function.*;", added(VALID));
|
||||
assertDeclareFail("Function<Integer,Integer> f = x -> x*2;",
|
||||
new ExpectedDiagnostic("compiler.err.feature.not.supported.in.source.plural", 32, 32, 32, -1, -1, Diagnostic.Kind.ERROR));
|
||||
assertEval("import java.util.ArrayList;", added(VALID));
|
||||
// Diamond with anonymous classes allowed in 9
|
||||
assertDeclareFail("ArrayList<Integer> list = new ArrayList<>(){};",
|
||||
new ExpectedDiagnostic("compiler.err.cant.apply.diamond.1", 30, 41, 39, -1, -1, Diagnostic.Kind.ERROR));
|
||||
}
|
||||
}
|
||||
|
@ -25,9 +25,6 @@
|
||||
* @test
|
||||
* @bug 8074306 8073432 8074501
|
||||
* @summary NULLCHK is emitted as Object.getClass
|
||||
* @compile --release 7 TestSyntheticNullChecks.java
|
||||
* @run main TestSyntheticNullChecks 7
|
||||
* @clean *
|
||||
* @compile TestSyntheticNullChecks.java
|
||||
* @run main TestSyntheticNullChecks 9
|
||||
*/
|
||||
|
@ -57,18 +57,9 @@ public class LegacyOutputTest {
|
||||
}
|
||||
|
||||
void test() throws Exception {
|
||||
release7();
|
||||
release8();
|
||||
}
|
||||
|
||||
void release7() throws Exception {
|
||||
List<String> names = getParameterNames("7");
|
||||
if (names != null) {
|
||||
throw new AssertionError(
|
||||
"expected no MethodParameters for --release 7, actual: " + names);
|
||||
}
|
||||
}
|
||||
|
||||
void release8() throws Exception {
|
||||
List<String> names = getParameterNames("8");
|
||||
List<String> expected = Arrays.asList("x", "y");
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright (c) 2003, 2022, 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
|
||||
@ -93,7 +93,7 @@ echo "public class Main{public static void main(String[]a){}}" > Main.java
|
||||
# about not setting bootclasspath, which is filtered out in Warning.
|
||||
# The alternative would be to extract a minimal rt.jar from JDK and
|
||||
# specify that with -bootclasspath.
|
||||
SRCTRG8="-source 8 -target 8"
|
||||
SRCTRG8="-source 8 -target 8 -Xlint:-options"
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# No warnings unless -Xlint:path is used
|
||||
|
@ -35,10 +35,6 @@ import java.io.File;
|
||||
* @modules jdk.jdeps/com.sun.tools.classfile
|
||||
*
|
||||
* @clean *
|
||||
* @compile -source 7 -target 7 TestIndyStringConcat.java
|
||||
* @run main TestIndyStringConcat false
|
||||
*
|
||||
* @clean *
|
||||
* @compile -source 8 -target 8 TestIndyStringConcat.java
|
||||
* @run main TestIndyStringConcat false
|
||||
*
|
||||
|
@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test
|
||||
* bug 8139474
|
||||
* @summary --release 7 -verbose causes Javac exception
|
||||
* @compile --release 7 -verbose DashRelease7DashVerboseTest.java
|
||||
*/
|
||||
|
||||
public class DashRelease7DashVerboseTest {}
|
@ -1,7 +1,7 @@
|
||||
/* @test /nodynamiccopyright/
|
||||
* @bug 7196163
|
||||
* @summary Verify that variables can be used as operands to try-with-resources
|
||||
* @compile/fail/ref=TwrForVariable1.out --release 8 -XDrawDiagnostics TwrForVariable1.java
|
||||
* @compile/fail/ref=TwrForVariable1.out --release 8 -XDrawDiagnostics -Xlint:-options TwrForVariable1.java
|
||||
* @compile TwrForVariable1.java
|
||||
* @run main TwrForVariable1
|
||||
*/
|
||||
|
@ -4,7 +4,7 @@
|
||||
* @summary Ensure that the lambda analyzer does not run when --release 7 is specified,
|
||||
* even if explicitly requested
|
||||
* @compile/fail/ref=AnalyzersCheckSourceLevel.out -Werror -XDfind=lambda -XDrawDiagnostics AnalyzersCheckSourceLevel.java
|
||||
* @compile -Werror --release 7 -Xlint:-options -XDfind=lambda AnalyzersCheckSourceLevel.java
|
||||
*
|
||||
*/
|
||||
public class AnalyzersCheckSourceLevel {
|
||||
void t() {
|
||||
|
@ -1,37 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 2022, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @bug 8211102
|
||||
* @summary Verify javac does not crash in lambda analyzer
|
||||
* @compile -Werror -XDfind=lambda --release 7 -Xlint:-options T8211102.java
|
||||
*/
|
||||
import java.util.*;
|
||||
|
||||
public class T8211102 {
|
||||
private void t(boolean b) {
|
||||
(b ? Collections.emptyList()
|
||||
: new Iterable<String>() { public Iterator<String> iterator() { return null; } }).toString();
|
||||
}
|
||||
}
|
@ -4,7 +4,6 @@
|
||||
* @summary test that only Java 8+ allows repeating annotations
|
||||
* @compile WrongVersion.java
|
||||
* @compile --release 8 WrongVersion.java
|
||||
* @compile/fail/ref=WrongVersion7.out -XDrawDiagnostics -Xlint:-options -source 7 WrongVersion.java
|
||||
*/
|
||||
import java.lang.annotation.Repeatable;
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
WrongVersion.java:11:9: compiler.err.feature.not.supported.in.source.plural: (compiler.misc.feature.repeatable.annotations), 7, 8
|
||||
1 error
|
@ -4,7 +4,6 @@
|
||||
* @summary test that only Java 8 allows type annotations
|
||||
* @author Mahmood Ali
|
||||
* @compile AnnotationVersion.java
|
||||
* @compile/fail/ref=AnnotationVersion7.out -XDrawDiagnostics -Xlint:-options --release 7 AnnotationVersion.java
|
||||
*/
|
||||
import java.lang.annotation.*;
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
AnnotationVersion.java:11:27: compiler.err.feature.not.supported.in.source.plural: (compiler.misc.feature.type.annotations), 7, 8
|
||||
1 error
|
@ -1,195 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2015, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**@test
|
||||
* @bug 8035890
|
||||
* @summary Verify that the parser correctly checks for source level 8 on the new places where
|
||||
* annotations can appear in 8.
|
||||
* @modules jdk.compiler/com.sun.tools.javac.api
|
||||
* jdk.compiler/com.sun.tools.javac.file
|
||||
* @run main CheckErrorsForSource7 CheckErrorsForSource7.java
|
||||
*/
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import javax.tools.Diagnostic;
|
||||
import javax.tools.DiagnosticCollector;
|
||||
import javax.tools.JavaFileObject;
|
||||
import javax.tools.SimpleJavaFileObject;
|
||||
import com.sun.source.tree.AnnotationTree;
|
||||
import com.sun.source.tree.CompilationUnitTree;
|
||||
import com.sun.source.tree.IdentifierTree;
|
||||
import com.sun.source.tree.Tree.Kind;
|
||||
import com.sun.source.util.JavacTask;
|
||||
import com.sun.source.util.TreePathScanner;
|
||||
import com.sun.source.util.Trees;
|
||||
import com.sun.tools.javac.api.JavacTool;
|
||||
import com.sun.tools.javac.file.JavacFileManager;
|
||||
|
||||
/**For each place where an annotation can syntactically appear with -source 8, but not with
|
||||
* -source 7, this test verifies that an error is correctly emitted from the parser for
|
||||
* the annotation for -source 7. This test first gathers the occurrences of @TA from
|
||||
* the CheckErrorsForSource7Data class below, and then repeatedly removes all these annotations
|
||||
* except one and checks the parser reports an expected error. This is needed as as the parser
|
||||
* typically produces only one 'insufficient source level' error for each new feature used.
|
||||
*/
|
||||
public class CheckErrorsForSource7 {
|
||||
public static void main(String... args) throws IOException, URISyntaxException {
|
||||
new CheckErrorsForSource7().run(args);
|
||||
}
|
||||
|
||||
private void run(String... args) throws IOException, URISyntaxException {
|
||||
//the first and only parameter must be the name of the file to be analyzed:
|
||||
if (args.length != 1) throw new IllegalStateException("Must provide source file!");
|
||||
File testSrc = new File(System.getProperty("test.src"));
|
||||
File testFile = new File(testSrc, args[0]);
|
||||
if (!testFile.canRead()) throw new IllegalStateException("Cannot read the test source");
|
||||
try (JavacFileManager fm = JavacTool.create().getStandardFileManager(null, null, null)) {
|
||||
|
||||
//gather spans of the @TA annotations into typeAnnotationSpans:
|
||||
JavacTask task = JavacTool.create().getTask(null,
|
||||
fm,
|
||||
null,
|
||||
Collections.<String>emptyList(),
|
||||
null,
|
||||
fm.getJavaFileObjects(testFile));
|
||||
final Trees trees = Trees.instance(task);
|
||||
final CompilationUnitTree cut = task.parse().iterator().next();
|
||||
final List<int[]> typeAnnotationSpans = new ArrayList<>();
|
||||
|
||||
new TreePathScanner<Void, Void>() {
|
||||
@Override
|
||||
public Void visitAnnotation(AnnotationTree node, Void p) {
|
||||
if (node.getAnnotationType().getKind() == Kind.IDENTIFIER &&
|
||||
((IdentifierTree) node.getAnnotationType()).getName().contentEquals("TA")) {
|
||||
int start = (int) trees.getSourcePositions().getStartPosition(cut, node);
|
||||
int end = (int) trees.getSourcePositions().getEndPosition(cut, node);
|
||||
typeAnnotationSpans.add(new int[] {start, end});
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}.scan(cut, null);
|
||||
|
||||
//sort the spans in the reverse order, to simplify removing them from the source:
|
||||
Collections.sort(typeAnnotationSpans, new Comparator<int[]>() {
|
||||
@Override
|
||||
public int compare(int[] o1, int[] o2) {
|
||||
return o2[0] - o1[0];
|
||||
}
|
||||
});
|
||||
|
||||
//verify the errors are produce correctly:
|
||||
String originalSource = cut.getSourceFile().getCharContent(false).toString();
|
||||
|
||||
for (int[] toKeep : typeAnnotationSpans) {
|
||||
//prepare updated source code by removing all the annotations except the toKeep one:
|
||||
String updated = originalSource;
|
||||
|
||||
for (int[] span : typeAnnotationSpans) {
|
||||
if (span == toKeep) continue;
|
||||
|
||||
updated = updated.substring(0, span[0]) + updated.substring(span[1]);
|
||||
}
|
||||
|
||||
//parse and verify:
|
||||
JavaFileObject updatedFile = new TestFO(cut.getSourceFile().toUri(), updated);
|
||||
DiagnosticCollector<JavaFileObject> errors = new DiagnosticCollector<>();
|
||||
JavacTask task2 = JavacTool.create().getTask(null,
|
||||
fm,
|
||||
errors,
|
||||
Arrays.asList("-source", "7"),
|
||||
null,
|
||||
Arrays.asList(updatedFile));
|
||||
task2.parse();
|
||||
|
||||
boolean found = false;
|
||||
|
||||
for (Diagnostic<? extends JavaFileObject> d : errors.getDiagnostics()) {
|
||||
if (d.getKind() == Diagnostic.Kind.ERROR && EXPECTED_ERROR.equals(d.getCode())) {
|
||||
if (found) {
|
||||
throw new IllegalStateException("More than one expected error found.");
|
||||
}
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
throw new IllegalStateException("Did not produce proper errors for: " + updated);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static final String EXPECTED_ERROR = "compiler.err.feature.not.supported.in.source.plural";
|
||||
|
||||
class TestFO extends SimpleJavaFileObject {
|
||||
private final String content;
|
||||
public TestFO(URI uri, String content) {
|
||||
super(uri, Kind.SOURCE);
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
@Override public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
|
||||
return content;
|
||||
}
|
||||
|
||||
@Override public boolean isNameCompatible(String simpleName, Kind kind) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//data on which the source level check is verified:
|
||||
class CheckErrorsForSource7Data {
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@interface TA { }
|
||||
|
||||
Object n1 = new @TA ArrayList<@TA String>();
|
||||
Object n2 = new @TA Object() {};
|
||||
Object [] @TA [] arr @TA[];
|
||||
<T> @TA int @TA[] ret(Object obj) @TA[] throws @TA Exception {
|
||||
this.<@TA String>ret(null);
|
||||
Object c1 = new @TA String[1];
|
||||
|
||||
int val = obj instanceof @TA String ? ((@TA String) obj).length() : 0;
|
||||
List<@TA ?> l;
|
||||
return null;
|
||||
}
|
||||
void vararg(String @TA ... args) { }
|
||||
|
||||
abstract class C<@TA T extends @TA Number & @TA Runnable>
|
||||
extends @TA ArrayList<@TA String>
|
||||
implements java.util. @TA Comparator<@TA T> { }
|
||||
|
||||
interface I extends java.util. @TA Comparator<@TA String> { }
|
||||
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2022, 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
|
||||
@ -42,7 +42,6 @@ import java.util.regex.*;
|
||||
*/
|
||||
public class ClassVersionChecker {
|
||||
private static enum Version {
|
||||
SEVEN("7", 51),
|
||||
EIGHT("8", 52),
|
||||
NINE("9", 53),
|
||||
TEN("10", 54),
|
||||
|
@ -5,7 +5,6 @@
|
||||
* @author Tim Hanson, BEA
|
||||
*
|
||||
* @compile Conditional.java
|
||||
* @compile/fail/ref=Conditional.out -XDrawDiagnostics --release 7 -Xlint:-options Conditional.java
|
||||
*/
|
||||
|
||||
import java.util.*;
|
||||
|
@ -1,2 +0,0 @@
|
||||
Conditional.java:16:38: compiler.err.prob.found.req: (compiler.misc.inconvertible.types: java.util.List<? extends java.lang.Object>, java.util.List<java.lang.String>)
|
||||
1 error
|
@ -2,7 +2,6 @@
|
||||
* @bug 8037385
|
||||
* @summary Must not allow static interface method invocation in legacy code
|
||||
* @compile -Xlint:-options StaticInvokeQualified.java
|
||||
* @compile/fail/ref=StaticInvokeQualified7.out -source 7 -Xlint:-options -XDrawDiagnostics StaticInvokeQualified.java
|
||||
*/
|
||||
|
||||
class StaticInvokeQualified {
|
||||
|
@ -1,2 +0,0 @@
|
||||
StaticInvokeQualified.java:10:32: compiler.err.feature.not.supported.in.source.plural: (compiler.misc.feature.static.intf.method.invoke), 7, 8
|
||||
1 error
|
@ -2,7 +2,6 @@
|
||||
* @bug 8037385
|
||||
* @summary Must not allow static interface method invocation in legacy code
|
||||
* @compile -Xlint:-options StaticInvokeSimple.java
|
||||
* @compile/fail/ref=StaticInvokeSimple7.out -source 7 -Xlint:-options -XDrawDiagnostics StaticInvokeSimple.java
|
||||
*/
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
StaticInvokeSimple.java:11:15: compiler.err.feature.not.supported.in.source.plural: (compiler.misc.feature.static.intf.method.invoke), 7, 8
|
||||
1 error
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2022, 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
|
||||
@ -45,9 +45,8 @@ public class TestDefaultMethodsSyntax {
|
||||
static int checkCount = 0;
|
||||
|
||||
enum VersionKind {
|
||||
PRE_LAMBDA("7"),
|
||||
LAMBDA("8"),
|
||||
POST_LAMBDA("9");
|
||||
POST_LAMBDA(Integer.toString(javax.lang.model.SourceVersion.latest().runtimeVersion().feature()));
|
||||
|
||||
String versionString;
|
||||
|
||||
@ -56,7 +55,7 @@ public class TestDefaultMethodsSyntax {
|
||||
}
|
||||
|
||||
List<String> getOptions() {
|
||||
return Arrays.asList("-XDallowStaticInterfaceMethods", "-source", versionString);
|
||||
return Arrays.asList("-XDallowStaticInterfaceMethods", "--release", versionString);
|
||||
}
|
||||
}
|
||||
|
||||
@ -264,14 +263,8 @@ public class TestDefaultMethodsSyntax {
|
||||
|
||||
errorExpected |= !modk1.compatible(ek) || !modk2.compatible(ek);
|
||||
|
||||
errorExpected |= ModifierKind.intersect(ModifierKind.DEFAULT, modk1, modk2) &&
|
||||
vk == VersionKind.PRE_LAMBDA;
|
||||
|
||||
errorExpected |= ModifierKind.intersect(ModifierKind.STATIC, modk1, modk2) &&
|
||||
ek == EnclosingKind.INTERFACE && vk == VersionKind.PRE_LAMBDA;
|
||||
|
||||
errorExpected |= ModifierKind.intersect(ModifierKind.PRIVATE, modk1, modk2) &&
|
||||
ek == EnclosingKind.INTERFACE && (vk == VersionKind.LAMBDA || vk == VersionKind.PRE_LAMBDA);
|
||||
ek == EnclosingKind.INTERFACE && (vk == VersionKind.LAMBDA );
|
||||
|
||||
checkCount++;
|
||||
if (diagChecker.errorFound != errorExpected) {
|
||||
|
@ -1,185 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2018, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8029240 8030855
|
||||
* @summary Default methods not always visible under -source 7
|
||||
* Default methods should be visible under source previous to 8
|
||||
* @library /tools/lib
|
||||
* @modules jdk.compiler/com.sun.tools.javac.api
|
||||
* jdk.compiler/com.sun.tools.javac.main
|
||||
* @build toolbox.ToolBox toolbox.JavacTask
|
||||
* @run main DefaultMethodsNotVisibleForSourceLessThan8Test
|
||||
*/
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
import toolbox.JavacTask;
|
||||
import toolbox.Task;
|
||||
import toolbox.ToolBox;
|
||||
|
||||
public class DefaultMethodsNotVisibleForSourceLessThan8Test {
|
||||
// common definitions
|
||||
|
||||
// this one should be compiled with source 8, the rest with source < 8
|
||||
static final String ISrc =
|
||||
"interface I {\n" +
|
||||
" default void m() {}\n" +
|
||||
"}";
|
||||
|
||||
static final String JSrc =
|
||||
"interface J extends I {}";
|
||||
|
||||
static final String ASrc =
|
||||
"abstract class A implements I {}";
|
||||
|
||||
static final String BSrc =
|
||||
"class B implements I {}";
|
||||
|
||||
// test legacy implementations
|
||||
static final String C1Src =
|
||||
"class C1 implements I {\n" +
|
||||
" public void m() {}\n" +
|
||||
"}";
|
||||
|
||||
static final String C2Src =
|
||||
"class C2 implements J {\n" +
|
||||
" public void m() {}\n" +
|
||||
"}";
|
||||
|
||||
static final String C3Src =
|
||||
"class C3 extends A {\n" +
|
||||
" public void m() {}\n" +
|
||||
"}";
|
||||
|
||||
static final String C4Src =
|
||||
"class C4 extends B {\n" +
|
||||
" public void m() {}\n" +
|
||||
"}";
|
||||
|
||||
//test legacy invocations
|
||||
static final String LegacyInvocationSrc =
|
||||
"class LegacyInvocation {\n" +
|
||||
" public static void test(I i, J j, A a, B b) {\n" +
|
||||
" i.m();\n" +
|
||||
" j.m();\n" +
|
||||
" a.m();\n" +
|
||||
" b.m();\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
|
||||
//test case super invocations
|
||||
static final String SubASrc =
|
||||
"class SubA extends A {\n" +
|
||||
" public void test() {\n" +
|
||||
" super.m();\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
|
||||
static final String SubBSrc =
|
||||
"class SubB extends B {\n" +
|
||||
" public void test() {\n" +
|
||||
" super.m();\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
String[] sources = new String[] {
|
||||
"1.7",
|
||||
};
|
||||
for (String source : sources) {
|
||||
new DefaultMethodsNotVisibleForSourceLessThan8Test().run(source);
|
||||
}
|
||||
}
|
||||
|
||||
String outDir;
|
||||
String source;
|
||||
ToolBox tb = new ToolBox();
|
||||
|
||||
void run(String source) throws Exception {
|
||||
this.source = source;
|
||||
outDir = "out" + source.replace('.', '_');
|
||||
testsPreparation();
|
||||
testLegacyImplementations();
|
||||
testLegacyInvocations();
|
||||
testSuperInvocations();
|
||||
}
|
||||
|
||||
void testsPreparation() throws Exception {
|
||||
Files.createDirectory(Paths.get(outDir));
|
||||
|
||||
/* as an extra check let's make sure that interface 'I' can't be compiled
|
||||
* with source < 8
|
||||
*/
|
||||
new JavacTask(tb)
|
||||
.outdir(outDir)
|
||||
.options("-source", source)
|
||||
.sources(ISrc)
|
||||
.run(Task.Expect.FAIL);
|
||||
|
||||
//but it should compile with source >= 8
|
||||
new JavacTask(tb)
|
||||
.outdir(outDir)
|
||||
.sources(ISrc)
|
||||
.run();
|
||||
|
||||
new JavacTask(tb)
|
||||
.outdir(outDir)
|
||||
.classpath(outDir)
|
||||
.options("-source", source)
|
||||
.sources(JSrc, ASrc, BSrc)
|
||||
.run();
|
||||
}
|
||||
|
||||
void testLegacyImplementations() throws Exception {
|
||||
//compile C1-4
|
||||
new JavacTask(tb)
|
||||
.outdir(outDir)
|
||||
.classpath(outDir)
|
||||
.options("-source", source)
|
||||
.sources(C1Src, C2Src, C3Src, C4Src)
|
||||
.run();
|
||||
}
|
||||
|
||||
void testLegacyInvocations() throws Exception {
|
||||
//compile LegacyInvocation
|
||||
new JavacTask(tb)
|
||||
.outdir(outDir)
|
||||
.classpath(outDir)
|
||||
.options("-source", source)
|
||||
.sources(LegacyInvocationSrc)
|
||||
.run();
|
||||
}
|
||||
|
||||
void testSuperInvocations() throws Exception {
|
||||
//compile SubA, SubB
|
||||
new JavacTask(tb)
|
||||
.outdir(outDir)
|
||||
.classpath(outDir)
|
||||
.options("-source", source)
|
||||
.sources(SubASrc, SubBSrc)
|
||||
.run();
|
||||
}
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
* @author gafter
|
||||
*
|
||||
* @compile/ref=SuppressDeprecation.out -Xlint:deprecation -XDrawDiagnostics SuppressDeprecation.java
|
||||
* @compile/ref=SuppressDeprecation8.out --release 8 -Xlint:deprecation -XDrawDiagnostics SuppressDeprecation.java
|
||||
* @compile/ref=SuppressDeprecation8.out --release 8 -Xlint:deprecation,-options -XDrawDiagnostics SuppressDeprecation.java
|
||||
*/
|
||||
|
||||
/* Test for the contexts in which deprecations warnings should
|
||||
|
@ -65,6 +65,7 @@ compiler.misc.fatal.err.cant.locate.field # Resolve, from Lower
|
||||
compiler.misc.fatal.err.cant.locate.meth # Resolve, from Lower
|
||||
compiler.misc.fatal.err.cant.close # JavaCompiler
|
||||
compiler.misc.feature.not.supported.in.source.plural # cannot happen (for now)
|
||||
compiler.misc.feature.default.methods # just preserved for testing (for now)
|
||||
compiler.misc.file.does.not.contain.package
|
||||
compiler.misc.illegal.start.of.class.file
|
||||
compiler.misc.inferred.do.not.conform.to.lower.bounds # cannot happen?
|
||||
|
@ -1,34 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2018, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.feature.not.supported.in.source.plural
|
||||
// key: compiler.misc.feature.annotations.after.type.params
|
||||
// options: -source 7 -Xlint:-options
|
||||
|
||||
@interface Anno { }
|
||||
|
||||
class AnnotationsAfterTypeParamsNotSupportedInSource {
|
||||
<T> @Anno int m() {
|
||||
return 0;
|
||||
}
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.feature.not.supported.in.source.plural
|
||||
// key: compiler.misc.feature.default.methods
|
||||
// options: -source 7 -Xlint:-options
|
||||
|
||||
interface DefaultMethodNotSupported {
|
||||
default void m() { }
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.cant.apply.symbol
|
||||
// key: compiler.misc.inconvertible.types
|
||||
// key: compiler.misc.infer.no.conforming.assignment.exists
|
||||
// options: -source 7 -Xlint:-options
|
||||
|
||||
import java.util.*;
|
||||
|
||||
class InferredDoNotConformToEq {
|
||||
<X> void m(List<X> lx1, List<X> lx2) {}
|
||||
{ this.m(Arrays.asList(""), Arrays.asList(1)); }
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.cant.apply.symbol
|
||||
// key: compiler.misc.inconvertible.types
|
||||
// key: compiler.misc.infer.no.conforming.assignment.exists
|
||||
// options: -source 7 -Xlint:-options
|
||||
|
||||
import java.util.*;
|
||||
|
||||
class InferredDoNotConformToUpper {
|
||||
<X> void m(X x, List<? super X> lx) {}
|
||||
{ this.m("", Arrays.asList(1)); }
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.feature.not.supported.in.source.plural
|
||||
// key: compiler.misc.feature.intersection.types.in.cast
|
||||
// options: -source 7 -Xlint:-options
|
||||
|
||||
interface IntersectionTypesInCastNotSupported {
|
||||
Object o = (A & B)null;
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.feature.not.supported.in.source.plural
|
||||
// key: compiler.misc.feature.lambda
|
||||
// options: -source 7 -Xlint:-options
|
||||
|
||||
class LambdaNotSupported {
|
||||
S s = ()->{};
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.local.var.accessed.from.icls.needs.final
|
||||
// options: -Xlint:-options -source 7
|
||||
|
||||
class LocalVarNeedsFinal {
|
||||
Runnable m() {
|
||||
int i = 3;
|
||||
return new Runnable() {
|
||||
public void run() {
|
||||
System.out.println(i);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.feature.not.supported.in.source.plural
|
||||
// key: compiler.misc.feature.method.references
|
||||
// options: -source 7 -Xlint:-options
|
||||
|
||||
class MethodReferencesNotSupported {
|
||||
S s = A::foo;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 2022, 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
|
||||
@ -24,6 +24,12 @@
|
||||
// key: compiler.err.error
|
||||
// key: compiler.err.no.java.lang
|
||||
// key: compiler.misc.count.error
|
||||
// key: compiler.misc.count.warn.plural
|
||||
// key: compiler.warn.lintOption
|
||||
// key: compiler.warn.option.obsolete.source
|
||||
// key: compiler.warn.option.obsolete.suppression
|
||||
// key: compiler.warn.option.obsolete.target
|
||||
// key: compiler.warn.warning
|
||||
// options: -source 8 -target 8 -Xbootclasspath: -classpath .
|
||||
// run: backdoor
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 2022, 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
|
||||
@ -22,6 +22,9 @@
|
||||
*/
|
||||
|
||||
// key: compiler.err.not.in.profile
|
||||
// key: compiler.warn.option.obsolete.source
|
||||
// key: compiler.warn.option.obsolete.target
|
||||
// key: compiler.warn.option.obsolete.suppression
|
||||
// options: --release 8 -profile compact1
|
||||
|
||||
class NotInProfile {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2022, 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
|
||||
@ -25,7 +25,7 @@
|
||||
// key: compiler.warn.option.obsolete.target
|
||||
// key: compiler.warn.option.obsolete.suppression
|
||||
// key: compiler.warn.source.no.bootclasspath
|
||||
// options: -source 1.7 -target 1.7
|
||||
// options: -source 1.8 -target 1.8
|
||||
|
||||
class ObsoleteSourceAndTarget {
|
||||
public static void foo() {;}
|
||||
|
@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Google Inc. 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.warn.option.parameters.unsupported
|
||||
// key: compiler.warn.option.obsolete.source
|
||||
// key: compiler.warn.option.obsolete.suppression
|
||||
// key: compiler.warn.option.obsolete.target
|
||||
// options: -parameters --release 7
|
||||
|
||||
class ParametersUnsupported {
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2010, 2018, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.feature.not.supported.in.source.plural
|
||||
// key: compiler.misc.feature.repeatable.annotations
|
||||
// options: -source 7 -Xlint:-options
|
||||
|
||||
@interface Anno { }
|
||||
|
||||
@Anno
|
||||
@Anno
|
||||
class RepeatableAnnotationsNotSupported { }
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 2022, 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
|
||||
@ -22,6 +22,8 @@
|
||||
*/
|
||||
|
||||
// key: compiler.warn.source.no.bootclasspath
|
||||
// key: compiler.warn.option.obsolete.source
|
||||
// key: compiler.warn.option.obsolete.suppression
|
||||
// options: -source 8
|
||||
|
||||
class SourceNoBootclasspath { }
|
||||
|
@ -1,33 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.feature.not.supported.in.source.plural
|
||||
// key: compiler.misc.feature.static.intf.method.invoke
|
||||
// options: -source 7 -Xlint:-options
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class StaticIntfMethodInvokeNotSupported {
|
||||
void test() {
|
||||
Stream.empty();
|
||||
}
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.feature.not.supported.in.source.plural
|
||||
// key: compiler.misc.feature.static.intf.methods
|
||||
// options: -source 7 -Xlint:-options -XDallowStaticInterfaceMethods
|
||||
|
||||
interface StaticIntfMethodNotSupported {
|
||||
static void m() { }
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2010, 2018, 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.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.feature.not.supported.in.source.plural
|
||||
// key: compiler.misc.feature.type.annotations
|
||||
// options: -source 7 -Xlint:-options
|
||||
|
||||
@interface Anno { }
|
||||
|
||||
class TypeAnnotationsNotSupported {
|
||||
void m() {
|
||||
int i = (@Anno int) 3.14;
|
||||
}
|
||||
}
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @summary javac fails to substitute type variables into a constructor's throws clause
|
||||
* @author Mark Mahieu
|
||||
* @compile/fail/ref=T6723444_1.out -Xlint:-options --release 7 -XDrawDiagnostics T6723444.java
|
||||
*
|
||||
* @compile/fail/ref=T6723444_2.out -XDrawDiagnostics T6723444.java
|
||||
*
|
||||
*/
|
||||
|
@ -1,13 +0,0 @@
|
||||
T6723444.java:43:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:44:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:46:32: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:47:17: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:49:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:50:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:51:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:52:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:53:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:54:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:55:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
T6723444.java:56:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Throwable
|
||||
12 errors
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @summary Incorrect thrown type determined for unchecked invocations
|
||||
* @author Daniel Smith
|
||||
* @compile/fail/ref=T7015430_1.out --release 7 -Xlint:-options,unchecked -XDrawDiagnostics T7015430.java
|
||||
*
|
||||
* @compile/fail/ref=T7015430_2.out -Xlint:unchecked -XDrawDiagnostics T7015430.java
|
||||
*
|
||||
*/
|
||||
|
@ -1,19 +0,0 @@
|
||||
T7015430.java:42:14: compiler.warn.unchecked.meth.invocation.applied: kindname.method, empty, java.lang.Iterable<E>, java.lang.Iterable, kindname.class, T7015430
|
||||
T7015430.java:42:15: compiler.warn.prob.found.req: (compiler.misc.unchecked.assign), java.lang.Iterable, java.lang.Iterable<E>
|
||||
T7015430.java:51:41: compiler.warn.unchecked.meth.invocation.applied: kindname.method, empty, java.lang.Iterable<E>, java.lang.Iterable, kindname.class, T7015430
|
||||
T7015430.java:51:42: compiler.warn.prob.found.req: (compiler.misc.unchecked.assign), java.lang.Iterable, java.lang.Iterable<E>
|
||||
T7015430.java:69:9: compiler.warn.unchecked.meth.invocation.applied: kindname.constructor, <init>, java.lang.Iterable<E>, java.lang.Iterable, kindname.class, T7015430
|
||||
T7015430.java:69:22: compiler.warn.prob.found.req: (compiler.misc.unchecked.assign), java.lang.Iterable, java.lang.Iterable<E>
|
||||
T7015430.java:78:9: compiler.warn.unchecked.meth.invocation.applied: kindname.constructor, <init>, java.lang.Iterable<E>, java.lang.Iterable, kindname.class, T7015430
|
||||
T7015430.java:78:40: compiler.warn.prob.found.req: (compiler.misc.unchecked.assign), java.lang.Iterable, java.lang.Iterable<E>
|
||||
T7015430.java:105:9: compiler.warn.unchecked.meth.invocation.applied: kindname.constructor, <init>, java.lang.Iterable<E>, java.lang.Iterable, kindname.class, T7015430
|
||||
T7015430.java:105:41: compiler.warn.prob.found.req: (compiler.misc.unchecked.assign), java.lang.Iterable, java.lang.Iterable<E>
|
||||
T7015430.java:114:9: compiler.warn.unchecked.meth.invocation.applied: kindname.constructor, <init>, java.lang.Iterable<E>, java.lang.Iterable, kindname.class, T7015430
|
||||
T7015430.java:114:22: compiler.warn.prob.found.req: (compiler.misc.unchecked.assign), java.lang.Iterable, java.lang.Iterable<E>
|
||||
T7015430.java:42:14: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Exception
|
||||
T7015430.java:69:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Exception
|
||||
T7015430.java:96:15: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Exception
|
||||
T7015430.java:114:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Exception
|
||||
T7015430.java:130:9: compiler.err.unreported.exception.need.to.catch.or.throw: java.lang.Exception
|
||||
5 errors
|
||||
12 warnings
|
@ -3,7 +3,7 @@
|
||||
* @bug 7022054
|
||||
*
|
||||
* @summary Invalid compiler error on covariant overriding methods with the same erasure
|
||||
* @compile --release 7 T7022054pos1.java
|
||||
*
|
||||
* @compile/fail/ref=T7022054pos1.out -XDrawDiagnostics T7022054pos1.java
|
||||
*
|
||||
*/
|
||||
|
@ -3,7 +3,7 @@
|
||||
* @bug 7022054
|
||||
*
|
||||
* @summary Invalid compiler error on covariant overriding methods with the same erasure
|
||||
* @compile --release 7 T7022054pos2.java
|
||||
*
|
||||
* @compile/fail/ref=T7022054pos2.out -XDrawDiagnostics T7022054pos2.java
|
||||
*/
|
||||
|
||||
|
@ -4,9 +4,9 @@
|
||||
*
|
||||
* @summary add a warning to detect diamond sites (including anonymous class instance creation at source >= 9)
|
||||
* @author mcimadamore
|
||||
* @compile/ref=T6939780_7.out -Xlint:-options --release 7 T6939780.java -XDrawDiagnostics -XDfind=diamond
|
||||
* @compile/ref=T6939780_8.out --release 8 T6939780.java -XDrawDiagnostics -XDfind=diamond
|
||||
* @compile/ref=T6939780_9.out T6939780.java -XDrawDiagnostics -XDfind=diamond
|
||||
*
|
||||
* @compile/ref=T6939780_8.out --release 8 T6939780.java -XDrawDiagnostics -XDfind=diamond -Xlint:-options
|
||||
* @compile/ref=T6939780_9.out T6939780.java -XDrawDiagnostics -XDfind=diamond
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
T6939780.java:22:28: compiler.warn.diamond.redundant.args
|
||||
T6939780.java:31:19: compiler.warn.diamond.redundant.args
|
||||
2 warnings
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @summary Check that diamond is not allowed with anonymous inner class expressions at source < 9
|
||||
* @author Maurizio Cimadamore
|
||||
* @compile/fail/ref=Neg09a.out Neg09a.java --release 8 -XDrawDiagnostics
|
||||
* @compile/fail/ref=Neg09a.out Neg09a.java --release 8 -XDrawDiagnostics -Xlint:-options
|
||||
*/
|
||||
|
||||
class Neg09a {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @summary Check that diamond is not allowed with anonymous inner class expressions at source < 9
|
||||
* @author Maurizio Cimadamore
|
||||
* @compile/fail/ref=Neg09b.out Neg09b.java --release 8 -XDrawDiagnostics
|
||||
* @compile/fail/ref=Neg09b.out Neg09b.java --release 8 -XDrawDiagnostics -Xlint:-options
|
||||
*/
|
||||
|
||||
class Neg09b {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @summary Check that diamond is not allowed with anonymous inner class expressions at source < 9
|
||||
* @author Maurizio Cimadamore
|
||||
* @compile/fail/ref=Neg09c.out Neg09c.java --release 8 -XDrawDiagnostics
|
||||
* @compile/fail/ref=Neg09c.out Neg09c.java --release 8 -XDrawDiagnostics -Xlint:-options
|
||||
*/
|
||||
|
||||
class Neg09c {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @summary Check that diamond is not allowed with anonymous inner class expressions at source < 9
|
||||
* @author Maurizio Cimadamore
|
||||
* @compile/fail/ref=Neg09d.out Neg09d.java --release 8 -XDrawDiagnostics
|
||||
* @compile/fail/ref=Neg09d.out Neg09d.java --release 8 -XDrawDiagnostics -Xlint:-options
|
||||
*/
|
||||
|
||||
class Neg09d {
|
||||
|
@ -4,9 +4,7 @@
|
||||
*
|
||||
* @summary Check that 'complex' diamond can infer type that is too specific
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg10.out --release 7 -Xlint:-options Neg10.java -XDrawDiagnostics
|
||||
* @compile Neg10.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
class Neg10 {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user