From 7eb8c115ec13d9499917b3cdae2a32519981417e Mon Sep 17 00:00:00 2001 From: Jonathan Gibbons Date: Thu, 22 Jul 2010 11:02:54 -0700 Subject: [PATCH] 6968063: provide examples of code that generate diagnostics Reviewed-by: mcimadamore --- langtools/make/build.xml | 29 + .../test/tools/javac/diags/CheckExamples.java | 218 +++++++ langtools/test/tools/javac/diags/Example.java | 523 ++++++++++++++++ .../test/tools/javac/diags/FileManager.java | 191 ++++++ .../test/tools/javac/diags/HTMLWriter.java | 582 ++++++++++++++++++ .../tools/javac/diags/README.examples.txt | 134 ++++ .../test/tools/javac/diags/RunExamples.java | 582 ++++++++++++++++++ .../tools/javac/diags/examples.not-yet.txt | 115 ++++ .../examples/AbstractCantBeAccessed.java | 34 + .../examples/AbstractCantBeInstantiated.java | 32 + .../examples/AbstractMethodCantHaveBody.java | 28 + .../javac/diags/examples/AlreadyDefined.java | 29 + .../diags/examples/AlreadyDefinedImport.java | 29 + .../AlreadDefinedStaticImport.java | 27 + .../AlreadyDefinedStaticImport/p/E1.java | 26 + .../AlreadyDefinedStaticImport/p/E2.java | 26 + .../diags/examples/AnnoNotApplicable.java | 33 + .../diags/examples/AnnoNotValidForType.java | 31 + .../examples/AnnoValueMustBeAnnotation.java | 35 ++ .../examples/AnnoValueMustBeClassLiteral.java | 31 + .../AnnosWithoutProcessors.java | 30 + .../processors/AnnoProc.java | 38 ++ .../examples/AnnotationMissingValue.java | 31 + .../examples/AnnotationMustBeNameValue.java | 32 + .../examples/AnnotationsNotSupported.java | 28 + .../AnonClassImplInterfaceNoArgs.java | 30 + .../AnonClassImplInterfaceNoQualForNew.java | 31 + .../AnonClassImplInterfaceNoTypeArgs.java | 30 + .../javac/diags/examples/AnonymousClass.java | 33 + .../javac/diags/examples/ArrayAndVarargs.java | 29 + .../javac/diags/examples/ArrayDimMissing.java | 28 + .../javac/diags/examples/ArrayRequired.java | 29 + .../diags/examples/AssertAsIdentifier.java | 29 + .../diags/examples/AssertAsIdentifier2.java | 28 + .../diags/examples/AttrMustBeConstant.java | 31 + .../BadSourceFileHeader.java | 30 + .../BadSourceFileHeader/sourcepath/p/A.java | 28 + .../examples/BreakOutsideSwitchLoop.java | 30 + .../javac/diags/examples/CallMustBeFirst.java | 31 + .../CannotCreateArrayWithTypeArgs.java | 28 + .../diags/examples/CantApplyDiamond.java | 34 + .../diags/examples/CantAssignToFinal.java | 32 + .../tools/javac/diags/examples/CantDeref.java | 30 + .../diags/examples/CantExtendIntfAnno.java | 28 + .../javac/diags/examples/CantImplement.java | 33 + .../diags/examples/CantInheritDiffArg.java | 28 + .../diags/examples/CantRefBeforeConstr.java | 36 ++ .../javac/diags/examples/CantResolve.java | 31 + .../javac/diags/examples/CantResolveArgs.java | 35 ++ .../diags/examples/CantResolveArgsParams.java | 31 + .../diags/examples/CantResolveLocation.java | 28 + .../examples/CantResolveLocationArgs.java | 30 + .../CantResolveLocationArgsParams.java | 32 + .../examples/CantReturnValueForVoid.java | 30 + .../javac/diags/examples/CatchWithoutTry.java | 33 + .../javac/diags/examples/ClashesWith.java | 33 + .../javac/diags/examples/ClassCantWrite.java | 27 + .../diags/examples/ClassPublicInFile.java | 26 + .../examples/ConcreteInheritanceConflict.java | 31 + .../diags/examples/ConstExprRequired.java | 36 ++ .../javac/diags/examples/ConstantSVUID.java | 31 + .../diags/examples/ContinueOutsideLoop.java | 30 + .../javac/diags/examples/CountError.java | 30 + .../diags/examples/CountErrorPlural.java | 31 + .../tools/javac/diags/examples/CountWarn.java | 35 ++ .../javac/diags/examples/CountWarnPlural.java | 36 ++ .../diags/examples/CyclicAnnoElement.java | 28 + .../diags/examples/CyclicInheritance.java | 26 + .../DefaultAllowedInIntfAnnotationMember.java | 28 + .../diags/examples/DeprecatedFilename.java | 32 + .../DeprecatedFilenameAdditional.java | 37 ++ .../DeprecatedPlural/DeprecatedClass.java | 25 + .../DeprecatedPlural/DeprecatedFilename.java | 26 + .../DeprecatedPlural/DeprecatedPlural.java | 29 + .../DeprecatedClass.java | 25 + .../DeprecatedFilename.java | 26 + .../DeprecatedPlural.java | 26 + .../DeprecatedPluralAdditional.java | 30 + .../diags/examples/DiamondInvalidArg.java | 31 + .../diags/examples/DiamondInvalidArgs.java | 32 + .../diags/examples/DiamondNotSupported.java | 33 + .../examples/DirPathElementNotFound.java | 28 + .../tools/javac/diags/examples/DivZero.java | 31 + .../javac/diags/examples/DoesNotOverride.java | 30 + .../javac/diags/examples/DoesntExist.java | 26 + .../diags/examples/DotClassExpected.java | 28 + .../diags/examples/DuplicateAnnotation.java | 30 + .../DuplicateAnnotationMemberValue.java | 31 + .../diags/examples/DuplicateCaseLabel.java | 34 + .../javac/diags/examples/DuplicateClass.java | 28 + .../diags/examples/DuplicateDefaultLabel.java | 35 ++ .../javac/diags/examples/ElseWithoutIf.java | 31 + .../diags/examples/EmptyBytecodeIdent.java | 28 + .../diags/examples/EmptyCharLiteral.java | 31 + .../tools/javac/diags/examples/EmptyIf.java | 31 + .../diags/examples/EnclClassRequired.java | 30 + .../EnumAnnoValueMustBeEnumConst.java | 33 + .../diags/examples/EnumAsIdentifier.java | 29 + .../diags/examples/EnumAsIdentifier2.java | 28 + .../examples/EnumCantBeInstantiated.java | 30 + .../diags/examples/EnumConstRequired.java | 35 ++ .../diags/examples/EnumLabelUnqualified.java | 36 ++ .../javac/diags/examples/EnumNoFinalize.java | 32 + .../diags/examples/EnumNoSubclassing.java | 26 + .../examples/EnumTypesNotExtensible.java | 29 + .../diags/examples/EnumsMustBeStatic.java | 30 + .../diags/examples/EnumsNotSupported.java | 27 + .../ErrProcMessager/ErrProcMessager.java | 27 + .../ErrProcMessager/processors/AnnoProc.java | 43 ++ .../examples/ErrSyntheticNameConflict.java | 33 + .../tools/javac/diags/examples/Error.java | 40 ++ .../diags/examples/ErrorReadingFile.java | 27 + .../diags/examples/ExceptAlreadyCaught.java | 36 ++ .../diags/examples/ExceptNeverThrown.java | 35 ++ .../tools/javac/diags/examples/Expected2.java | 27 + .../tools/javac/diags/examples/Expected3.java | 26 + .../examples/FinalParamCantBeAssigned.java | 30 + .../diags/examples/FinallyCannotComplete.java | 34 + .../diags/examples/FinallyWithoutTry.java | 31 + .../diags/examples/FloatNumberTooLarge.java | 28 + .../diags/examples/FloatNumberTooSmall.java | 28 + .../diags/examples/ForeachNotApplicable.java | 32 + .../diags/examples/ForeachNotSupported.java | 33 + .../diags/examples/GenericArrayCreation.java | 30 + .../diags/examples/GenericThrowable.java | 26 + .../diags/examples/GenericsNotSupported.java | 27 + .../diags/examples/HasBeenDeprecated.java | 34 + .../diags/examples/IdentifierExpected.java | 32 + .../examples/IllegalBytecodeIdentChar.java | 28 + .../javac/diags/examples/IllegalChar.java | 28 + .../diags/examples/IllegalComboModifiers.java | 28 + .../diags/examples/IllegalEnumStaticRef.java | 29 + .../diags/examples/IllegalEscapeChar.java | 28 + .../diags/examples/IllegalForwardRef.java | 29 + .../diags/examples/IllegalInitializer.java | 28 + .../examples/IllegalLineEndInCharLit.java | 29 + .../diags/examples/IllegalNonAsciiDigit.java | 28 + .../diags/examples/IllegalQualNotIcls.java | 31 + .../javac/diags/examples/IllegalSelfRef.java | 28 + .../diags/examples/IllegalStartOfExpr.java | 28 + .../diags/examples/IllegalUnderscore.java | 28 + .../diags/examples/IllegalUnicodeEscape.java | 28 + .../ImportRequiresCanonical.java | 28 + .../ImportRequiresCanonical/p/Base.java | 28 + .../p/ExtendsBase.java | 27 + .../javac/diags/examples/ImproperSVUID.java | 31 + .../examples/ImproperTypeInnerRawParam.java | 34 + .../examples/ImproperTypeParamMissing.java | 34 + .../diags/examples/IncomparableTypes.java | 28 + .../diags/examples/IncompatibleTypes1.java | 34 + .../diags/examples/InconvertibleTypes.java | 35 ++ .../diags/examples/InexactVarargsCall.java | 35 ++ .../InferredDoNotConformToBounds.java | 35 ++ .../diags/examples/InheritFromFinal.java | 28 + .../examples/InitializerMustComplete.java | 30 + .../examples/InnerClassCantHaveStatic.java | 30 + .../diags/examples/IntNumberTooLarge.java | 28 + .../diags/examples/InterfaceExpected.java | 26 + .../diags/examples/InterfaceNotAllowed.java | 30 + .../IntfAnnotationCantHaveTypeParams.java | 26 + .../examples/IntfAnnotationMemberClash.java | 28 + .../IntfAnnotationsCantHaveParams.java | 28 + .../IntfAnnotationsCantHaveTypeParams.java | 28 + .../examples/IntfMethodCantHaveBody.java | 28 + .../diags/examples/InvalidAnnoMemberType.java | 28 + .../diags/examples/InvalidBinaryNumber.java | 31 + .../diags/examples/InvalidHexNumber.java | 29 + .../diags/examples/InvalidInferredTypes.java | 38 ++ .../diags/examples/InvalidInstanceof.java | 31 + .../diags/examples/InvalidMethodDecl.java | 28 + .../javac/diags/examples/KindnameClass.java | 31 + .../diags/examples/KindnameConstructor.java | 38 ++ .../javac/diags/examples/KindnameMethod.java | 32 + .../diags/examples/KindnameVariable.java | 32 + .../javac/diags/examples/LabelInUse.java | 37 ++ .../tools/javac/diags/examples/LocalEnum.java | 30 + .../diags/examples/LocalVarNeedsFinal.java | 35 ++ .../tools/javac/diags/examples/LongSVUID.java | 31 + .../javac/diags/examples/MalformedFpLit.java | 29 + .../MalformedSupported.java | 27 + .../processors/AnnoProc.java | 38 ++ .../diags/examples/MethodDoesNotOverride.java | 29 + .../diags/examples/MightBeAssignedInLoop.java | 33 + .../examples/MissingDeprecatedAnnotation.java | 29 + .../diags/examples/MissingMethodBody.java | 28 + .../examples/MissingReturnStatement.java | 29 + .../diags/examples/MissingReturnValue.java | 30 + .../javac/diags/examples/MissingSVUID.java | 30 + .../diags/examples/ModifierNotAllowed.java | 26 + .../examples/MulticatchCantBeAssigned.java | 38 ++ .../diags/examples/MulticatchMustBeFinal.java | 38 ++ .../examples/MulticatchNotSupported.java | 42 ++ .../diags/examples/NameClashSameErasure.java | 31 + .../NameClashSameErasureNoOverride.java | 34 + .../examples/NativeMethodCantHaveBody.java | 28 + .../examples/NeitherConditionalSubtype.java | 31 + .../diags/examples/NewNotAllowedInAnno.java | 31 + .../tools/javac/diags/examples/NoArgs.java | 32 + .../examples/NoExplicitAnnoProcRequested.java | 28 + .../diags/examples/NoInterfaceExpected.java | 26 + .../javac/diags/examples/NoInterfaceHere.java | 28 + .../javac/diags/examples/NoJavaLang.java | 28 + .../javac/diags/examples/NoSuperclass.java | 32 + .../diags/examples/NonStaticCantBeRef.java | 32 + .../NotDefAccessClassIntfCantAccess.java | 33 + .../NotDefAccessClassIntfCantAccess/p/C.java | 30 + .../NotDefPublicCantAccess.java | 28 + .../examples/NotDefPublicCantAccess/p/C.java | 26 + .../javac/diags/examples/NotEnclClass.java | 28 + .../javac/diags/examples/NotLoopLabel.java | 38 ++ .../javac/diags/examples/NotWithinBounds.java | 31 + .../test/tools/javac/diags/examples/Note.java | 33 + .../NoteProcMessager/NoteProcMessager.java | 27 + .../NoteProcMessager/processors/AnnoProc.java | 43 ++ .../diags/examples/OperatorCantBeApplied.java | 28 + .../tools/javac/diags/examples/Orphaned.java | 31 + .../diags/examples/OverrideDoesntThrow.java | 34 + .../examples/OverrideIncompatibleReturn.java | 38 ++ .../javac/diags/examples/OverrideMeth.java | 33 + .../javac/diags/examples/OverrideStatic.java | 33 + .../examples/OverrideUncheckedReturn.java | 36 ++ .../examples/OverrideUncheckedThrown.java | 34 + .../diags/examples/OverrideVarargsExtra.java | 34 + .../examples/OverrideVarargsMissing.java | 34 + .../diags/examples/OverrideWeakerAccess.java | 29 + .../javac/diags/examples/PackageAnnos.java | 29 + .../p/package-info.java | 24 + .../PackageInfoAlreadySeen/package-info.java | 26 + .../diags/examples/PathElementNotFound.java | 28 + .../diags/examples/PkgClashWithClass/p/q.java | 31 + .../examples/PkgClashWithClass/p/q/C.java | 26 + .../diags/examples/PossibleFallThrough.java | 37 ++ .../diags/examples/PossibleLossPrecision.java | 30 + .../javac/diags/examples/PrematureEOF.java | 26 + .../PrintProcessorInfo.java | 28 + .../processors/AnnoProc.java | 38 ++ .../examples/PrintRounds/PrintRounds.java | 28 + .../PrintRounds/processors/AnnoProc.java | 38 ++ .../ProcCantFindClass/ProcCantFindClass.java | 26 + .../processors/AnnoProc.java | 32 + .../ProcFileReopening/ProcFileReopening.java | 28 + .../processors/AnnoProc.java | 57 ++ .../ProcIllegalFileName.java | 28 + .../processors/AnnoProc.java | 55 ++ .../ProcIncompatibleSourceVersion.java | 27 + .../processors/AnnoProc.java | 35 ++ .../javac/diags/examples/ProcOnlyNoProcs.java | 25 + .../ProcPackageDoesNotExist.java | 26 + .../processors/AnnoProc.java | 39 ++ .../ProcTypeRecreate/ProcTypeRecreate.java | 28 + .../ProcTypeRecreate/processors/AnnoProc.java | 55 ++ .../ProcUnclosedTypeFiles.java | 27 + .../processors/AnnoProc.java | 55 ++ .../ProcUseImplicit/ProcUseImplicit.java | 30 + .../ProcUseImplicit/processors/AnnoProc.java | 54 ++ .../sourcepath/p/SomeClass.java | 26 + .../ProcUseProcOrImplicit.java | 30 + .../processors/AnnoProc.java | 54 ++ .../sourcepath/p/SomeClass.java | 26 + .../ProcessorCantInstantiate.java | 27 + .../processors/AnnoProc.java | 38 ++ .../diags/examples/ProcessorNotFound.java | 27 + .../ProcessorWrongType.java | 27 + .../processors/AnnoProc.java | 24 + .../examples/QualifiedNewStaticClass.java | 30 + .../javac/diags/examples/RawClassUse.java | 31 + .../examples/RecursiveConstrInvocation.java | 30 + .../javac/diags/examples/RedundantCast.java | 29 + .../javac/diags/examples/RefAmbiguous.java | 33 + .../examples/RepeatedAnnotationTarget.java | 29 + .../diags/examples/RepeatedInterface.java | 30 + .../diags/examples/RepeatedModifier.java | 28 + .../javac/diags/examples/ReportAccess.java | 32 + .../javac/diags/examples/ResourceClosed.java | 35 ++ .../examples/ResourceMayNotBeAssigned.java | 34 + .../examples/ResourceNotApplicableToType.java | 32 + .../diags/examples/ResourceNotReferenced.java | 34 + .../diags/examples/ReturnOutsideMethod.java | 28 + .../examples/StaticImportNotSupported.java | 29 + .../Other.java | 28 + .../StaticImportOnlyClassesAndInterfaces.java | 29 + .../examples/StaticNotQualifiedByType.java | 35 ++ .../diags/examples/StringConstRequired.java | 36 ++ .../examples/StringSwitchNotSupported.java | 35 ++ .../javac/diags/examples/SunApiFilename.java | 30 + .../examples/SunApiFilenameAdditional.java | 31 + .../examples/SunApiPlural/SunApiFilename.java | 26 + .../examples/SunApiPlural/SunApiPlural.java | 30 + .../SunApiFilename.java | 26 + .../SunApiPluralAdditional/SunApiPlural.java | 26 + .../SunApiPluralAdditional.java | 30 + .../javac/diags/examples/SunProprietary.java | 28 + .../diags/examples/SuperNotAllowedInEnum.java | 33 + .../examples/ThrowsNotAllowedInAnno.java | 28 + .../examples/TryResourceNotSupported.java | 35 ++ .../examples/TryWithoutCatchOrFinally.java | 32 + .../TryWithoutCatchOrFinallyOrResource.java | 31 + .../examples/TypeAnnotationsNotSupported.java | 33 + .../diags/examples/TypeFoundRequired.java | 32 + .../javac/diags/examples/TypeNoParams.java | 28 + .../diags/examples/TypeReqClassArray.java | 31 + .../javac/diags/examples/TypeReqRef.java | 30 + .../diags/examples/TypeVarCantBeDeref.java | 28 + .../TypeVarMayNotBeFollowedByOtherBounds.java | 28 + .../diags/examples/TypesIncompatible.java | 34 + .../javac/diags/examples/UncheckedAssign.java | 34 + .../diags/examples/UncheckedAssignToVar.java | 36 ++ .../javac/diags/examples/UncheckedCall.java | 34 + .../javac/diags/examples/UncheckedCast.java | 34 + .../javac/diags/examples/UncheckedClash.java | 36 ++ .../diags/examples/UncheckedFilename.java | 31 + .../examples/UncheckedFilenameAdditional.java | 37 ++ .../UncheckedGenericArrayCreation.java | 37 ++ .../diags/examples/UncheckedImplement.java | 36 ++ .../examples/UncheckedMethodInvocation.java | 37 ++ .../UncheckedPlural/UncheckedFilename.java | 28 + .../UncheckedPlural/UncheckedPlural.java | 31 + .../UncheckedFilename1.java | 28 + .../UncheckedFilename2.java | 28 + .../UncheckedPluralAdditional.java | 33 + .../diags/examples/UnclosedBytecodeIdent.java | 28 + .../diags/examples/UnclosedCharLiteral.java | 28 + .../javac/diags/examples/UnclosedComment.java | 30 + .../diags/examples/UnclosedStringLiteral.java | 28 + .../javac/diags/examples/UndefinedLabel.java | 35 ++ .../diags/examples/UndeterminedType1.java | 34 + .../UnmatchedProcessorOptions.java | 27 + .../processors/AnnoProc.java | 39 ++ .../javac/diags/examples/UnnamedPackage.java | 32 + .../diags/examples/UnreachableStatement.java | 31 + .../diags/examples/UnreportedException.java | 30 + ...UnreportedExceptionDefaultConstructor.java | 30 + .../examples/UnsupportedBinaryLiteral.java | 29 + .../diags/examples/UnsupportedEncoding.java | 27 + .../diags/examples/UnsupportedFpLit.java | 29 + .../UnsupportedUnderscoreLiteral.java | 29 + .../examples/VarMightAlreadyBeAssigned.java | 33 + .../VarMightNotHaveBeenInitialized.java | 32 + .../javac/diags/examples/VarargsClash.java | 34 + .../javac/diags/examples/VarargsFilename.java | 29 + .../examples/VarargsFilenameAdditional.java | 31 + .../diags/examples/VarargsImplement.java | 34 + .../examples/VarargsNonReifiableType.java | 32 + .../diags/examples/VarargsNotSupported.java | 29 + .../javac/diags/examples/VarargsOverride.java | 34 + .../VarargsPlural/VarargsFilename.java | 26 + .../examples/VarargsPlural/VarargsPlural.java | 29 + .../VarargsFilename.java | 26 + .../VarargsPlural.java | 26 + .../VarargsPluralAdditional.java | 30 + .../tools/javac/diags/examples/Verbose.java | 35 ++ .../javac/diags/examples/VoidNotAllowed.java | 32 + .../javac/diags/examples/WarnForwardRef.java | 30 + .../WarnProcMessager/WarnProcMessager.java | 27 + .../WarnProcMessager/processors/AnnoProc.java | 43 ++ .../javac/diags/examples/WarnSelfRef.java | 29 + .../examples/WarnSyntheticNameConflict.java | 34 + .../diags/examples/WarningAndWerror.java | 32 + .../javac/diags/examples/WhereCaptured.java | 41 ++ .../javac/diags/examples/WhereCaptured1.java | 42 ++ .../diags/examples/WhereIntersection.java | 43 ++ .../javac/diags/examples/WhereTypeVar.java | 36 ++ .../diags/examples/WrongNumberTypeArgs.java | 30 + 363 files changed, 13449 insertions(+) create mode 100644 langtools/test/tools/javac/diags/CheckExamples.java create mode 100644 langtools/test/tools/javac/diags/Example.java create mode 100644 langtools/test/tools/javac/diags/FileManager.java create mode 100644 langtools/test/tools/javac/diags/HTMLWriter.java create mode 100644 langtools/test/tools/javac/diags/README.examples.txt create mode 100644 langtools/test/tools/javac/diags/RunExamples.java create mode 100644 langtools/test/tools/javac/diags/examples.not-yet.txt create mode 100644 langtools/test/tools/javac/diags/examples/AbstractCantBeAccessed.java create mode 100644 langtools/test/tools/javac/diags/examples/AbstractCantBeInstantiated.java create mode 100644 langtools/test/tools/javac/diags/examples/AbstractMethodCantHaveBody.java create mode 100644 langtools/test/tools/javac/diags/examples/AlreadyDefined.java create mode 100644 langtools/test/tools/javac/diags/examples/AlreadyDefinedImport.java create mode 100644 langtools/test/tools/javac/diags/examples/AlreadyDefinedStaticImport/AlreadDefinedStaticImport.java create mode 100644 langtools/test/tools/javac/diags/examples/AlreadyDefinedStaticImport/p/E1.java create mode 100644 langtools/test/tools/javac/diags/examples/AlreadyDefinedStaticImport/p/E2.java create mode 100644 langtools/test/tools/javac/diags/examples/AnnoNotApplicable.java create mode 100644 langtools/test/tools/javac/diags/examples/AnnoNotValidForType.java create mode 100644 langtools/test/tools/javac/diags/examples/AnnoValueMustBeAnnotation.java create mode 100644 langtools/test/tools/javac/diags/examples/AnnoValueMustBeClassLiteral.java create mode 100644 langtools/test/tools/javac/diags/examples/AnnosWithoutProcessors/AnnosWithoutProcessors.java create mode 100644 langtools/test/tools/javac/diags/examples/AnnosWithoutProcessors/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/AnnotationMissingValue.java create mode 100644 langtools/test/tools/javac/diags/examples/AnnotationMustBeNameValue.java create mode 100644 langtools/test/tools/javac/diags/examples/AnnotationsNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/AnonClassImplInterfaceNoArgs.java create mode 100644 langtools/test/tools/javac/diags/examples/AnonClassImplInterfaceNoQualForNew.java create mode 100644 langtools/test/tools/javac/diags/examples/AnonClassImplInterfaceNoTypeArgs.java create mode 100644 langtools/test/tools/javac/diags/examples/AnonymousClass.java create mode 100644 langtools/test/tools/javac/diags/examples/ArrayAndVarargs.java create mode 100644 langtools/test/tools/javac/diags/examples/ArrayDimMissing.java create mode 100644 langtools/test/tools/javac/diags/examples/ArrayRequired.java create mode 100644 langtools/test/tools/javac/diags/examples/AssertAsIdentifier.java create mode 100644 langtools/test/tools/javac/diags/examples/AssertAsIdentifier2.java create mode 100644 langtools/test/tools/javac/diags/examples/AttrMustBeConstant.java create mode 100644 langtools/test/tools/javac/diags/examples/BadSourceFileHeader/BadSourceFileHeader.java create mode 100644 langtools/test/tools/javac/diags/examples/BadSourceFileHeader/sourcepath/p/A.java create mode 100644 langtools/test/tools/javac/diags/examples/BreakOutsideSwitchLoop.java create mode 100644 langtools/test/tools/javac/diags/examples/CallMustBeFirst.java create mode 100644 langtools/test/tools/javac/diags/examples/CannotCreateArrayWithTypeArgs.java create mode 100644 langtools/test/tools/javac/diags/examples/CantApplyDiamond.java create mode 100644 langtools/test/tools/javac/diags/examples/CantAssignToFinal.java create mode 100644 langtools/test/tools/javac/diags/examples/CantDeref.java create mode 100644 langtools/test/tools/javac/diags/examples/CantExtendIntfAnno.java create mode 100644 langtools/test/tools/javac/diags/examples/CantImplement.java create mode 100644 langtools/test/tools/javac/diags/examples/CantInheritDiffArg.java create mode 100644 langtools/test/tools/javac/diags/examples/CantRefBeforeConstr.java create mode 100644 langtools/test/tools/javac/diags/examples/CantResolve.java create mode 100644 langtools/test/tools/javac/diags/examples/CantResolveArgs.java create mode 100644 langtools/test/tools/javac/diags/examples/CantResolveArgsParams.java create mode 100644 langtools/test/tools/javac/diags/examples/CantResolveLocation.java create mode 100644 langtools/test/tools/javac/diags/examples/CantResolveLocationArgs.java create mode 100644 langtools/test/tools/javac/diags/examples/CantResolveLocationArgsParams.java create mode 100644 langtools/test/tools/javac/diags/examples/CantReturnValueForVoid.java create mode 100644 langtools/test/tools/javac/diags/examples/CatchWithoutTry.java create mode 100644 langtools/test/tools/javac/diags/examples/ClashesWith.java create mode 100644 langtools/test/tools/javac/diags/examples/ClassCantWrite.java create mode 100644 langtools/test/tools/javac/diags/examples/ClassPublicInFile.java create mode 100644 langtools/test/tools/javac/diags/examples/ConcreteInheritanceConflict.java create mode 100644 langtools/test/tools/javac/diags/examples/ConstExprRequired.java create mode 100644 langtools/test/tools/javac/diags/examples/ConstantSVUID.java create mode 100644 langtools/test/tools/javac/diags/examples/ContinueOutsideLoop.java create mode 100644 langtools/test/tools/javac/diags/examples/CountError.java create mode 100644 langtools/test/tools/javac/diags/examples/CountErrorPlural.java create mode 100644 langtools/test/tools/javac/diags/examples/CountWarn.java create mode 100644 langtools/test/tools/javac/diags/examples/CountWarnPlural.java create mode 100644 langtools/test/tools/javac/diags/examples/CyclicAnnoElement.java create mode 100644 langtools/test/tools/javac/diags/examples/CyclicInheritance.java create mode 100644 langtools/test/tools/javac/diags/examples/DefaultAllowedInIntfAnnotationMember.java create mode 100644 langtools/test/tools/javac/diags/examples/DeprecatedFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/DeprecatedFilenameAdditional.java create mode 100644 langtools/test/tools/javac/diags/examples/DeprecatedPlural/DeprecatedClass.java create mode 100644 langtools/test/tools/javac/diags/examples/DeprecatedPlural/DeprecatedFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/DeprecatedPlural/DeprecatedPlural.java create mode 100644 langtools/test/tools/javac/diags/examples/DeprecatedPluralAdditional/DeprecatedClass.java create mode 100644 langtools/test/tools/javac/diags/examples/DeprecatedPluralAdditional/DeprecatedFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/DeprecatedPluralAdditional/DeprecatedPlural.java create mode 100644 langtools/test/tools/javac/diags/examples/DeprecatedPluralAdditional/DeprecatedPluralAdditional.java create mode 100644 langtools/test/tools/javac/diags/examples/DiamondInvalidArg.java create mode 100644 langtools/test/tools/javac/diags/examples/DiamondInvalidArgs.java create mode 100644 langtools/test/tools/javac/diags/examples/DiamondNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/DirPathElementNotFound.java create mode 100644 langtools/test/tools/javac/diags/examples/DivZero.java create mode 100644 langtools/test/tools/javac/diags/examples/DoesNotOverride.java create mode 100644 langtools/test/tools/javac/diags/examples/DoesntExist.java create mode 100644 langtools/test/tools/javac/diags/examples/DotClassExpected.java create mode 100644 langtools/test/tools/javac/diags/examples/DuplicateAnnotation.java create mode 100644 langtools/test/tools/javac/diags/examples/DuplicateAnnotationMemberValue.java create mode 100644 langtools/test/tools/javac/diags/examples/DuplicateCaseLabel.java create mode 100644 langtools/test/tools/javac/diags/examples/DuplicateClass.java create mode 100644 langtools/test/tools/javac/diags/examples/DuplicateDefaultLabel.java create mode 100644 langtools/test/tools/javac/diags/examples/ElseWithoutIf.java create mode 100644 langtools/test/tools/javac/diags/examples/EmptyBytecodeIdent.java create mode 100644 langtools/test/tools/javac/diags/examples/EmptyCharLiteral.java create mode 100644 langtools/test/tools/javac/diags/examples/EmptyIf.java create mode 100644 langtools/test/tools/javac/diags/examples/EnclClassRequired.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumAnnoValueMustBeEnumConst.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumAsIdentifier.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumAsIdentifier2.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumCantBeInstantiated.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumConstRequired.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumLabelUnqualified.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumNoFinalize.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumNoSubclassing.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumTypesNotExtensible.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumsMustBeStatic.java create mode 100644 langtools/test/tools/javac/diags/examples/EnumsNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/ErrProcMessager/ErrProcMessager.java create mode 100644 langtools/test/tools/javac/diags/examples/ErrProcMessager/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ErrSyntheticNameConflict.java create mode 100644 langtools/test/tools/javac/diags/examples/Error.java create mode 100644 langtools/test/tools/javac/diags/examples/ErrorReadingFile.java create mode 100644 langtools/test/tools/javac/diags/examples/ExceptAlreadyCaught.java create mode 100644 langtools/test/tools/javac/diags/examples/ExceptNeverThrown.java create mode 100644 langtools/test/tools/javac/diags/examples/Expected2.java create mode 100644 langtools/test/tools/javac/diags/examples/Expected3.java create mode 100644 langtools/test/tools/javac/diags/examples/FinalParamCantBeAssigned.java create mode 100644 langtools/test/tools/javac/diags/examples/FinallyCannotComplete.java create mode 100644 langtools/test/tools/javac/diags/examples/FinallyWithoutTry.java create mode 100644 langtools/test/tools/javac/diags/examples/FloatNumberTooLarge.java create mode 100644 langtools/test/tools/javac/diags/examples/FloatNumberTooSmall.java create mode 100644 langtools/test/tools/javac/diags/examples/ForeachNotApplicable.java create mode 100644 langtools/test/tools/javac/diags/examples/ForeachNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/GenericArrayCreation.java create mode 100644 langtools/test/tools/javac/diags/examples/GenericThrowable.java create mode 100644 langtools/test/tools/javac/diags/examples/GenericsNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/HasBeenDeprecated.java create mode 100644 langtools/test/tools/javac/diags/examples/IdentifierExpected.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalBytecodeIdentChar.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalChar.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalComboModifiers.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalEnumStaticRef.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalEscapeChar.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalForwardRef.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalInitializer.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalLineEndInCharLit.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalNonAsciiDigit.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalQualNotIcls.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalSelfRef.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalStartOfExpr.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalUnderscore.java create mode 100644 langtools/test/tools/javac/diags/examples/IllegalUnicodeEscape.java create mode 100644 langtools/test/tools/javac/diags/examples/ImportRequiresCanonical/ImportRequiresCanonical.java create mode 100644 langtools/test/tools/javac/diags/examples/ImportRequiresCanonical/p/Base.java create mode 100644 langtools/test/tools/javac/diags/examples/ImportRequiresCanonical/p/ExtendsBase.java create mode 100644 langtools/test/tools/javac/diags/examples/ImproperSVUID.java create mode 100644 langtools/test/tools/javac/diags/examples/ImproperTypeInnerRawParam.java create mode 100644 langtools/test/tools/javac/diags/examples/ImproperTypeParamMissing.java create mode 100644 langtools/test/tools/javac/diags/examples/IncomparableTypes.java create mode 100644 langtools/test/tools/javac/diags/examples/IncompatibleTypes1.java create mode 100644 langtools/test/tools/javac/diags/examples/InconvertibleTypes.java create mode 100644 langtools/test/tools/javac/diags/examples/InexactVarargsCall.java create mode 100644 langtools/test/tools/javac/diags/examples/InferredDoNotConformToBounds.java create mode 100644 langtools/test/tools/javac/diags/examples/InheritFromFinal.java create mode 100644 langtools/test/tools/javac/diags/examples/InitializerMustComplete.java create mode 100644 langtools/test/tools/javac/diags/examples/InnerClassCantHaveStatic.java create mode 100644 langtools/test/tools/javac/diags/examples/IntNumberTooLarge.java create mode 100644 langtools/test/tools/javac/diags/examples/InterfaceExpected.java create mode 100644 langtools/test/tools/javac/diags/examples/InterfaceNotAllowed.java create mode 100644 langtools/test/tools/javac/diags/examples/IntfAnnotationCantHaveTypeParams.java create mode 100644 langtools/test/tools/javac/diags/examples/IntfAnnotationMemberClash.java create mode 100644 langtools/test/tools/javac/diags/examples/IntfAnnotationsCantHaveParams.java create mode 100644 langtools/test/tools/javac/diags/examples/IntfAnnotationsCantHaveTypeParams.java create mode 100644 langtools/test/tools/javac/diags/examples/IntfMethodCantHaveBody.java create mode 100644 langtools/test/tools/javac/diags/examples/InvalidAnnoMemberType.java create mode 100644 langtools/test/tools/javac/diags/examples/InvalidBinaryNumber.java create mode 100644 langtools/test/tools/javac/diags/examples/InvalidHexNumber.java create mode 100644 langtools/test/tools/javac/diags/examples/InvalidInferredTypes.java create mode 100644 langtools/test/tools/javac/diags/examples/InvalidInstanceof.java create mode 100644 langtools/test/tools/javac/diags/examples/InvalidMethodDecl.java create mode 100644 langtools/test/tools/javac/diags/examples/KindnameClass.java create mode 100644 langtools/test/tools/javac/diags/examples/KindnameConstructor.java create mode 100644 langtools/test/tools/javac/diags/examples/KindnameMethod.java create mode 100644 langtools/test/tools/javac/diags/examples/KindnameVariable.java create mode 100644 langtools/test/tools/javac/diags/examples/LabelInUse.java create mode 100644 langtools/test/tools/javac/diags/examples/LocalEnum.java create mode 100644 langtools/test/tools/javac/diags/examples/LocalVarNeedsFinal.java create mode 100644 langtools/test/tools/javac/diags/examples/LongSVUID.java create mode 100644 langtools/test/tools/javac/diags/examples/MalformedFpLit.java create mode 100644 langtools/test/tools/javac/diags/examples/MalformedSupported/MalformedSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/MalformedSupported/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/MethodDoesNotOverride.java create mode 100644 langtools/test/tools/javac/diags/examples/MightBeAssignedInLoop.java create mode 100644 langtools/test/tools/javac/diags/examples/MissingDeprecatedAnnotation.java create mode 100644 langtools/test/tools/javac/diags/examples/MissingMethodBody.java create mode 100644 langtools/test/tools/javac/diags/examples/MissingReturnStatement.java create mode 100644 langtools/test/tools/javac/diags/examples/MissingReturnValue.java create mode 100644 langtools/test/tools/javac/diags/examples/MissingSVUID.java create mode 100644 langtools/test/tools/javac/diags/examples/ModifierNotAllowed.java create mode 100644 langtools/test/tools/javac/diags/examples/MulticatchCantBeAssigned.java create mode 100644 langtools/test/tools/javac/diags/examples/MulticatchMustBeFinal.java create mode 100644 langtools/test/tools/javac/diags/examples/MulticatchNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/NameClashSameErasure.java create mode 100644 langtools/test/tools/javac/diags/examples/NameClashSameErasureNoOverride.java create mode 100644 langtools/test/tools/javac/diags/examples/NativeMethodCantHaveBody.java create mode 100644 langtools/test/tools/javac/diags/examples/NeitherConditionalSubtype.java create mode 100644 langtools/test/tools/javac/diags/examples/NewNotAllowedInAnno.java create mode 100644 langtools/test/tools/javac/diags/examples/NoArgs.java create mode 100644 langtools/test/tools/javac/diags/examples/NoExplicitAnnoProcRequested.java create mode 100644 langtools/test/tools/javac/diags/examples/NoInterfaceExpected.java create mode 100644 langtools/test/tools/javac/diags/examples/NoInterfaceHere.java create mode 100644 langtools/test/tools/javac/diags/examples/NoJavaLang.java create mode 100644 langtools/test/tools/javac/diags/examples/NoSuperclass.java create mode 100644 langtools/test/tools/javac/diags/examples/NonStaticCantBeRef.java create mode 100644 langtools/test/tools/javac/diags/examples/NotDefAccessClassIntfCantAccess/NotDefAccessClassIntfCantAccess.java create mode 100644 langtools/test/tools/javac/diags/examples/NotDefAccessClassIntfCantAccess/p/C.java create mode 100644 langtools/test/tools/javac/diags/examples/NotDefPublicCantAccess/NotDefPublicCantAccess.java create mode 100644 langtools/test/tools/javac/diags/examples/NotDefPublicCantAccess/p/C.java create mode 100644 langtools/test/tools/javac/diags/examples/NotEnclClass.java create mode 100644 langtools/test/tools/javac/diags/examples/NotLoopLabel.java create mode 100644 langtools/test/tools/javac/diags/examples/NotWithinBounds.java create mode 100644 langtools/test/tools/javac/diags/examples/Note.java create mode 100644 langtools/test/tools/javac/diags/examples/NoteProcMessager/NoteProcMessager.java create mode 100644 langtools/test/tools/javac/diags/examples/NoteProcMessager/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/OperatorCantBeApplied.java create mode 100644 langtools/test/tools/javac/diags/examples/Orphaned.java create mode 100644 langtools/test/tools/javac/diags/examples/OverrideDoesntThrow.java create mode 100644 langtools/test/tools/javac/diags/examples/OverrideIncompatibleReturn.java create mode 100644 langtools/test/tools/javac/diags/examples/OverrideMeth.java create mode 100644 langtools/test/tools/javac/diags/examples/OverrideStatic.java create mode 100644 langtools/test/tools/javac/diags/examples/OverrideUncheckedReturn.java create mode 100644 langtools/test/tools/javac/diags/examples/OverrideUncheckedThrown.java create mode 100644 langtools/test/tools/javac/diags/examples/OverrideVarargsExtra.java create mode 100644 langtools/test/tools/javac/diags/examples/OverrideVarargsMissing.java create mode 100644 langtools/test/tools/javac/diags/examples/OverrideWeakerAccess.java create mode 100644 langtools/test/tools/javac/diags/examples/PackageAnnos.java create mode 100644 langtools/test/tools/javac/diags/examples/PackageInfoAlreadySeen/p/package-info.java create mode 100644 langtools/test/tools/javac/diags/examples/PackageInfoAlreadySeen/package-info.java create mode 100644 langtools/test/tools/javac/diags/examples/PathElementNotFound.java create mode 100644 langtools/test/tools/javac/diags/examples/PkgClashWithClass/p/q.java create mode 100644 langtools/test/tools/javac/diags/examples/PkgClashWithClass/p/q/C.java create mode 100644 langtools/test/tools/javac/diags/examples/PossibleFallThrough.java create mode 100644 langtools/test/tools/javac/diags/examples/PossibleLossPrecision.java create mode 100644 langtools/test/tools/javac/diags/examples/PrematureEOF.java create mode 100644 langtools/test/tools/javac/diags/examples/PrintProcessorInfo/PrintProcessorInfo.java create mode 100644 langtools/test/tools/javac/diags/examples/PrintProcessorInfo/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/PrintRounds/PrintRounds.java create mode 100644 langtools/test/tools/javac/diags/examples/PrintRounds/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcCantFindClass/ProcCantFindClass.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcCantFindClass/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcFileReopening/ProcFileReopening.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcFileReopening/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcIllegalFileName/ProcIllegalFileName.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcIllegalFileName/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcIncompatibleSourceVersion/ProcIncompatibleSourceVersion.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcIncompatibleSourceVersion/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcOnlyNoProcs.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcPackageDoesNotExist/ProcPackageDoesNotExist.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcPackageDoesNotExist/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcTypeRecreate/ProcTypeRecreate.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcTypeRecreate/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcUnclosedTypeFiles/ProcUnclosedTypeFiles.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcUnclosedTypeFiles/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcUseImplicit/ProcUseImplicit.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcUseImplicit/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcUseImplicit/sourcepath/p/SomeClass.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcUseProcOrImplicit/ProcUseProcOrImplicit.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcUseProcOrImplicit/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcUseProcOrImplicit/sourcepath/p/SomeClass.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcessorCantInstantiate/ProcessorCantInstantiate.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcessorCantInstantiate/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcessorNotFound.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcessorWrongType/ProcessorWrongType.java create mode 100644 langtools/test/tools/javac/diags/examples/ProcessorWrongType/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/QualifiedNewStaticClass.java create mode 100644 langtools/test/tools/javac/diags/examples/RawClassUse.java create mode 100644 langtools/test/tools/javac/diags/examples/RecursiveConstrInvocation.java create mode 100644 langtools/test/tools/javac/diags/examples/RedundantCast.java create mode 100644 langtools/test/tools/javac/diags/examples/RefAmbiguous.java create mode 100644 langtools/test/tools/javac/diags/examples/RepeatedAnnotationTarget.java create mode 100644 langtools/test/tools/javac/diags/examples/RepeatedInterface.java create mode 100644 langtools/test/tools/javac/diags/examples/RepeatedModifier.java create mode 100644 langtools/test/tools/javac/diags/examples/ReportAccess.java create mode 100644 langtools/test/tools/javac/diags/examples/ResourceClosed.java create mode 100644 langtools/test/tools/javac/diags/examples/ResourceMayNotBeAssigned.java create mode 100644 langtools/test/tools/javac/diags/examples/ResourceNotApplicableToType.java create mode 100644 langtools/test/tools/javac/diags/examples/ResourceNotReferenced.java create mode 100644 langtools/test/tools/javac/diags/examples/ReturnOutsideMethod.java create mode 100644 langtools/test/tools/javac/diags/examples/StaticImportNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/StaticImportOnlyClassesAndInterfaces/Other.java create mode 100644 langtools/test/tools/javac/diags/examples/StaticImportOnlyClassesAndInterfaces/StaticImportOnlyClassesAndInterfaces.java create mode 100644 langtools/test/tools/javac/diags/examples/StaticNotQualifiedByType.java create mode 100644 langtools/test/tools/javac/diags/examples/StringConstRequired.java create mode 100644 langtools/test/tools/javac/diags/examples/StringSwitchNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/SunApiFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/SunApiFilenameAdditional.java create mode 100644 langtools/test/tools/javac/diags/examples/SunApiPlural/SunApiFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/SunApiPlural/SunApiPlural.java create mode 100644 langtools/test/tools/javac/diags/examples/SunApiPluralAdditional/SunApiFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/SunApiPluralAdditional/SunApiPlural.java create mode 100644 langtools/test/tools/javac/diags/examples/SunApiPluralAdditional/SunApiPluralAdditional.java create mode 100644 langtools/test/tools/javac/diags/examples/SunProprietary.java create mode 100644 langtools/test/tools/javac/diags/examples/SuperNotAllowedInEnum.java create mode 100644 langtools/test/tools/javac/diags/examples/ThrowsNotAllowedInAnno.java create mode 100644 langtools/test/tools/javac/diags/examples/TryResourceNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/TryWithoutCatchOrFinally.java create mode 100644 langtools/test/tools/javac/diags/examples/TryWithoutCatchOrFinallyOrResource.java create mode 100644 langtools/test/tools/javac/diags/examples/TypeAnnotationsNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/TypeFoundRequired.java create mode 100644 langtools/test/tools/javac/diags/examples/TypeNoParams.java create mode 100644 langtools/test/tools/javac/diags/examples/TypeReqClassArray.java create mode 100644 langtools/test/tools/javac/diags/examples/TypeReqRef.java create mode 100644 langtools/test/tools/javac/diags/examples/TypeVarCantBeDeref.java create mode 100644 langtools/test/tools/javac/diags/examples/TypeVarMayNotBeFollowedByOtherBounds.java create mode 100644 langtools/test/tools/javac/diags/examples/TypesIncompatible.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedAssign.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedAssignToVar.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedCall.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedCast.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedClash.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedFilenameAdditional.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedGenericArrayCreation.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedImplement.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedMethodInvocation.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedPlural/UncheckedFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedPlural/UncheckedPlural.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedPluralAdditional/UncheckedFilename1.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedPluralAdditional/UncheckedFilename2.java create mode 100644 langtools/test/tools/javac/diags/examples/UncheckedPluralAdditional/UncheckedPluralAdditional.java create mode 100644 langtools/test/tools/javac/diags/examples/UnclosedBytecodeIdent.java create mode 100644 langtools/test/tools/javac/diags/examples/UnclosedCharLiteral.java create mode 100644 langtools/test/tools/javac/diags/examples/UnclosedComment.java create mode 100644 langtools/test/tools/javac/diags/examples/UnclosedStringLiteral.java create mode 100644 langtools/test/tools/javac/diags/examples/UndefinedLabel.java create mode 100644 langtools/test/tools/javac/diags/examples/UndeterminedType1.java create mode 100644 langtools/test/tools/javac/diags/examples/UnmatchedProcessorOptions/UnmatchedProcessorOptions.java create mode 100644 langtools/test/tools/javac/diags/examples/UnmatchedProcessorOptions/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/UnnamedPackage.java create mode 100644 langtools/test/tools/javac/diags/examples/UnreachableStatement.java create mode 100644 langtools/test/tools/javac/diags/examples/UnreportedException.java create mode 100644 langtools/test/tools/javac/diags/examples/UnreportedExceptionDefaultConstructor.java create mode 100644 langtools/test/tools/javac/diags/examples/UnsupportedBinaryLiteral.java create mode 100644 langtools/test/tools/javac/diags/examples/UnsupportedEncoding.java create mode 100644 langtools/test/tools/javac/diags/examples/UnsupportedFpLit.java create mode 100644 langtools/test/tools/javac/diags/examples/UnsupportedUnderscoreLiteral.java create mode 100644 langtools/test/tools/javac/diags/examples/VarMightAlreadyBeAssigned.java create mode 100644 langtools/test/tools/javac/diags/examples/VarMightNotHaveBeenInitialized.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsClash.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsFilenameAdditional.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsImplement.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsNonReifiableType.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsNotSupported.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsOverride.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsPlural/VarargsFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsPlural/VarargsPlural.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsPluralAdditional/VarargsFilename.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsPluralAdditional/VarargsPlural.java create mode 100644 langtools/test/tools/javac/diags/examples/VarargsPluralAdditional/VarargsPluralAdditional.java create mode 100644 langtools/test/tools/javac/diags/examples/Verbose.java create mode 100644 langtools/test/tools/javac/diags/examples/VoidNotAllowed.java create mode 100644 langtools/test/tools/javac/diags/examples/WarnForwardRef.java create mode 100644 langtools/test/tools/javac/diags/examples/WarnProcMessager/WarnProcMessager.java create mode 100644 langtools/test/tools/javac/diags/examples/WarnProcMessager/processors/AnnoProc.java create mode 100644 langtools/test/tools/javac/diags/examples/WarnSelfRef.java create mode 100644 langtools/test/tools/javac/diags/examples/WarnSyntheticNameConflict.java create mode 100644 langtools/test/tools/javac/diags/examples/WarningAndWerror.java create mode 100644 langtools/test/tools/javac/diags/examples/WhereCaptured.java create mode 100644 langtools/test/tools/javac/diags/examples/WhereCaptured1.java create mode 100644 langtools/test/tools/javac/diags/examples/WhereIntersection.java create mode 100644 langtools/test/tools/javac/diags/examples/WhereTypeVar.java create mode 100644 langtools/test/tools/javac/diags/examples/WrongNumberTypeArgs.java diff --git a/langtools/make/build.xml b/langtools/make/build.xml index 1abad67a9df..d269f396534 100644 --- a/langtools/make/build.xml +++ b/langtools/make/build.xml @@ -322,6 +322,35 @@ datafile="${build.coverage.dir}/cobertura.ser"/> + + + + + + + + + + + + + + + +