jdk-24/test/langtools/tools/javac/diags/examples
Maurizio Cimadamore 5b9932f8f3 8338288: Compiler Implementation for Flexible Constructor Bodies (Third Preview)
8322882: Null pointer error when compiling Static initializer in a local class
8334248: Invalid error for early construction local class constructor method reference
8330037: Compiler produces invalid bytecode for method class creation from static method

Reviewed-by: jlahoda, vromero
2024-11-15 10:07:18 +00:00
..
AddmodsAllModulePathInvalid
AlreadyDefinedStaticImport
AnnosWithoutProcessors
AuxiliaryClassWarning
BadConstantValueType 8308753: Class-File API transition to Preview 2023-12-04 07:07:57 +00:00
BadSourceFileHeader
CantExtendSealedInAnotherModule 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
CantExtendSealedInAnotherPkg 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
ConflictingExports
ConflictingExportsToModule
ConflictingOpens
ConflictingOpensToModule
CyclicRequires
DanglingDocCommentWarning 8303689: javac -Xlint could/should report on "dangling" doc comments 2024-04-26 19:47:06 +00:00
DeprecatedAnnotationHasNoEffect
DeprecatedPlural
DeprecatedPluralAdditional
DirPathElementNotDirectory
DuplicateModule
DuplicateProvides
DuplicateRequires
DuplicateSupportedInfoFromProc 8224177: Harden annotation processing framework to irregular behavior from processors 2019-05-23 18:47:24 -07:00
DuplicateUses
ErrProcMessager 8273157: Add convenience methods to Messager 2021-09-01 20:28:05 +00:00
FileShouldBeOnSourcePathOrPatchPath
HasBeenDeprecatedModule
HasBeenDeprecatedRemovalModule
IllegalArgumentForOption
ImportModuleDoesNotRead 8328481: Implement JEP 476: Module Import Declarations (Preview) 2024-05-06 05:49:28 +00:00
ImportRequiresCanonical
InaccessibleVarargsType
InvalidDefaultInterface 8308753: Class-File API transition to Preview 2023-12-04 07:07:57 +00:00
InvalidModuleDirective
InvalidStaticInterface 8308753: Class-File API transition to Preview 2023-12-04 07:07:57 +00:00
LeaksNotAccessible
LeaksNotAccessibleNotRequiredTransitive
LeaksNotAccessibleUnexported
LeaksNotAccessibleUnexportedQualified
MalformedSupported 8224177: Harden annotation processing framework to irregular behavior from processors 2019-05-23 18:47:24 -07:00
ModifierNotAllowed 8335989: Implement JEP 494: Module Import Declarations (Second Preview) 2024-11-14 06:14:33 +00:00
ModuleInfoWithoutModule
ModuleNameMismatch
ModuleNotFound
ModuleNotFoundInModuleSourcePath
ModuleNotOnModuleSourcePath
ModulesNotSupportedInSource 8207248: Reduce incidence of compiler.warn.source.no.bootclasspath in javac tests 2018-07-16 21:53:49 -07:00
ModuleSourcePathMustWithDashM
MultiModuleOutputCannotBeExplodedModule
NoOpensUnlessStrong
NoPkgInModuleInfoJava
NoSuperclass
NotDefAccessClassIntfCantAccess
NotDefAccessClassIntfCantAccessReason
NotDefAccessClassIntfCantAccessReasonFragment
NotDefAccessDoesNotRead
NotDefAccessDoesNotReadFromUnnamed
NotDefAccessDoesNotReadUnnamed
NotDefAccessNotExported
NotDefAccessNotExportedFromUnnamed
NotDefAccessNotExportedToModule
NotDefAccessNotExportedToModuleFromUnnamed
NotDefPublicCantAccess
NotDefPublicCantAccessFragment
NoteProcMessager 8273157: Add convenience methods to Messager 2021-09-01 20:28:05 +00:00
NotInModuleOnModuleSourcePath
PackageClashFromRequires
PackageClashFromRequiresInUnnamed
PackageEmptyOrNotFoundError
PackageEmptyOrNotFoundWarning
PackageInfoAlreadySeen
PackageInOtherModule
PkgClashWithClass/p
PoorChoiceForModuleName
PreviewPlural 8293051: Further refactor javac after removal of -source/-target/--release 7 2022-09-08 14:36:19 +00:00
PrintProcessorInfo
PrintRounds
ProcCantFindClass
ProcessorCantInstantiate
ProcessorPathNoProcessorModulePath
ProcessorWrongType
ProcFileCreateLastRound 8302685: Some javac unit tests aren't reliably closing open files 2023-02-27 16:21:57 +00:00
ProcFileReopening 8302685: Some javac unit tests aren't reliably closing open files 2023-02-27 16:21:57 +00:00
ProcIllegalFileName 8302685: Some javac unit tests aren't reliably closing open files 2023-02-27 16:21:57 +00:00
ProcIncompatibleSourceVersion
ProcPackageDoesNotExist
ProcSuspiciousClassName 8273157: Add convenience methods to Messager 2021-09-01 20:28:05 +00:00
ProcTypeRecreate 8302685: Some javac unit tests aren't reliably closing open files 2023-02-27 16:21:57 +00:00
ProcUnclosedTypeFiles 8273157: Add convenience methods to Messager 2021-09-01 20:28:05 +00:00
ProcUseImplicit 8302685: Some javac unit tests aren't reliably closing open files 2023-02-27 16:21:57 +00:00
ProcUseProcOrImplicit 8321314: Reinstate disabling the compiler's default active annotation processing 2024-05-30 19:57:21 +00:00
RedundantTypesWithWildcardProc 8237450: JDK13 annotation processors not run when a supported annotation type specifies a module 2020-02-18 17:03:54 -08:00
RemovalPlural
RemovalPluralAdditional
RepeatedProvidesForService
RequiresAutomatic
RequiresTransitiveAutomatic
ServiceDefinitionIsEnum
ServiceImplementationDoesntHaveANoArgsConstructor
ServiceImplementationIsAbstract
ServiceImplementationIsInner
ServiceImplementationNoArgsConstructorNotPublic
ServiceImplementationNotInRightModule
ServiceImplMustBeSubtypeOfServiceIntf
ServiceImplNotPublic
ServiceImplProviderReturnMustBeSubtypeOfServiceIntf
ServiceProvidedButNotExportedOrUsed
StaticImportOnlyClassesAndInterfaces
SunApiPlural
SunApiPluralAdditional
TooManyModules
TooManyPatchedModules
UncheckedPlural
UncheckedPluralAdditional
UnexpectedTokenInModuleInfo
UnmatchedProcessorOptions
UnnamedPackageInNamedModule
WarnDefaultCtor 8071961: Add javac lint warning when a default constructor is created 2020-08-17 18:58:20 -07:00
WarnModuleNotFound
WarnProcMessager 8273157: Add convenience methods to Messager 2021-09-01 20:28:05 +00:00
WithExpected
AbstractCantBeAccessed.java
AbstractCantBeInstantiated.java
AbstractMethodCantHaveBody.java
AccessorCantBeGeneric.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
AccessorCantThrowException.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
AccessorMethodCantBeStatic.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
AccessorReturnTypeDoesntMatch.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
AddExportsWithRelease.java
AddOpensIgnored.java
AddReadsWithRelease.java
AlreadyDefined.java
AlreadyDefinedClinit.java
AlreadyDefinedImport.java
AnnoMustBeClasLiteral.java
AnnoNotApplicable.java 8214902: Pretty-printing marker annotations add unnecessary parenthesis 2018-12-05 11:31:20 -08:00
AnnoNotValidForType.java
AnnotationMissingElementValue.java 8036019: Insufficient alternatives listed in some errors produced by the parser 2022-01-24 15:09:17 +00:00
AnnotationMissingValue.java
AnnotationMissingValues1.java
AnnotationMustBeConstant2.java
AnnotationMustBeConstant.java
AnnotationMustBeNameValue.java
AnnoValueMustBeAnnotation.java
AnnoValueMustBeClassLiteral.java
AnonClassImplInterfaceNoArgs.java
AnonClassImplInterfaceNoQualForNew.java
AnonClassImplInterfaceNoTypeArgs.java
AnonymousCantInheritFromSealed.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
AnonymousClass.java
ApplicableMethodFound1.java
ApplicableMethodFound.java
ArrayAndReceiver.java
ArrayAndVarargs.java
ArrayDimMissing.java
ArrayRequired.java
AssertAsIdentifier2.java
AttemptToSynchronizeOnInstanceOfVbc.java 8257845: Integrate JEP 390 2020-12-08 23:04:01 +00:00
AttrMustBeConstant.java
BadArgTypesInLambda.java
BadEntity.java
BadFunctionalIntfAnno.java
BadInlineTag.java
BadInstanceMethodInUnboundLookup.java
BadNameForOption_Error.java
BadNameForOption_Warning.java
BadReference.java
BadStaticMethodInBoundLookup.java
BadStaticMethodInUnboundLookup.java
BoundUnboundMethRefSearch2.java 8231461: static/instance overload leads to 'unexpected static method found in unbound lookup' when resolving method reference 2021-01-13 17:27:32 +00:00
BoundUnboundMethRefSearch.java 8231461: static/instance overload leads to 'unexpected static method found in unbound lookup' when resolving method reference 2021-01-13 17:27:32 +00:00
BracketsNotAllowedImplicitLambda.java 8223305: Compiler support for Switch Expressions 2019-06-10 05:09:52 +02:00
BreakOutsideSwitchExpression.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
BreakOutsideSwitchLoop.java
CallOnlyInConstructor.java 8194743: Compiler implementation for Statements before super() 2023-11-27 17:26:52 +00:00
CallsNotAllowedHere.java 8194743: Compiler implementation for Statements before super() 2023-11-27 17:26:52 +00:00
CannotAssignNotDeclaredGuard.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
CannotCreateArrayWithDiamond.java
CannotCreateArrayWithTypeArgs.java
CanonicalCantHaveStrongerAccessPrivileges.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
CanonicalCantInvokeOtherConstructor.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
CanonicalConstructorArgumentMismatch.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
CanonicalConstructorCantHaveReturn.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
CanonicalConstructorCantHaveThrowsClause.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
CanonicalMustNotDeclareTypeVariables.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
CantAnnotateScoping1.java 8043226: Better diagnostics for non-applicable type annotations 2024-06-04 17:18:53 +00:00
CantAnnotateScoping.java 8043226: Better diagnostics for non-applicable type annotations 2024-06-04 17:18:53 +00:00
CantApplyDiamond1.java
CantApplyDiamond.java
CantApplySymbolFragment.java 8029301: Confusing error message for array creation method reference 2023-03-22 21:00:27 +00:00
CantApplySymbolsFragment.java
CantAssignInitializedBeforeCtorCalled.java 8325805: Compiler Implementation for Flexible Constructor Bodies (Second Preview) 2024-05-28 13:15:20 +00:00
CantAssignToFinal.java 8221580: Confusing diagnostic for assigning a static final field in a constructor 2023-02-06 18:22:22 +00:00
CantAssignToThis.java
CantDeref.java
CantExtendIntfAnno.java
CantImplement.java
CantInheritDiffArg.java
CantInheritFromSealed2.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
CantInheritFromSealed.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
CantRefBeforeConstr.java
CantRefNonEffectivelyFinalVar.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
CantResolve.java
CantResolveArgs.java
CantResolveArgsParams.java
CantResolveLocation.java
CantResolveLocationArgs.java
CantResolveLocationArgsFragment.java
CantResolveLocationArgsParams.java
CantResolveLocationArgsParamsFragment.java
CaseNull.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
CatchWithoutTry.java
ClashesWith.java
ClassCantWrite.java
ClassMethodOrFieldExpected.java 8338301: Error recovery and reporting should be improved for erroneous implicitly declared classes 2024-08-30 08:11:49 +00:00
ClassPublicInFile.java
CompressedDiags.java
ConcreteInheritanceConflict.java
ConditionalTargetCantBeVoid.java
ConstantLabelNotCompatible.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
ConstantSVUID.java
ConstExprRequired.java
ConstructorWithSameErasureAsCanonical.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
ContinueOutsideLoop.java
ContinueOutsideSwitchExpression.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
CountError.java
CountErrorPlural.java
CountErrorRecompile.java 8220632: Suggest recompiling with a larger value of -Xmaxerrs/-Xmaxwarns if diagnostics were suppressed 2019-03-26 16:09:33 -07:00
CountWarn.java
CountWarnPlural.java
CountWarnRecompile.java 8220632: Suggest recompiling with a larger value of -Xmaxerrs/-Xmaxwarns if diagnostics were suppressed 2019-03-26 16:09:33 -07:00
CyclicAnnoElement.java
CyclicInheritance.java
DeconstructionPatternOnlyRecords.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
DeconstructionpatternsNonVar.java 8305582: Compiler crash when compiling record patterns with var 2023-05-23 11:18:55 +00:00
DefaultAllowedInIntfAnnotationMember.java
DefaultAndBothBoolean.java 8330197: Make javac/diags/example release agnostic 2024-04-15 15:11:53 +00:00
DefaultLabelNotAllowed.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
DefaultOverridesObjectMember.java
DeferredMethodInst.java
DeprecatedFilename.java
DeprecatedFilenameAdditional.java
DiamondAndAnonClass.java 8207248: Reduce incidence of compiler.warn.source.no.bootclasspath in javac tests 2018-07-16 21:53:49 -07:00
DiamondAndExplicitParams.java
DiamondAndNonDenotableTypes.java
DiamondMethodDoesNotOverride.java
DiamondNonGeneric.java
DiamondNotSupported.java 8028563: Remove javac support for 6/1.6 source and target values 2018-07-12 14:13:15 -07:00
DiamondRedundantArgs.java
DirPathElementNotFound.java 8207248: Reduce incidence of compiler.warn.source.no.bootclasspath in javac tests 2018-07-16 21:53:49 -07:00
DivZero.java
DoesNotOverride.java
DoesntExist.java
DotClassExpected.java
DuplicateAnnotationJava8.java
DuplicateAnnotationMemberValue.java
DuplicateCaseLabel.java
DuplicateClass.java
DuplicateDefaultLabel.java
DuplicateTypeInPermits.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
DuplicateUnconditionalPattern.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
ElseWithoutIf.java
EmptyCharLiteral.java
EmptyIf.java
EnclClassRequired.java
EnumAnnoValueMustBeEnumConst2.java
EnumAnnoValueMustBeEnumConst.java
EnumAsIdentifier2.java
EnumCantBeInstantiated.java
EnumConstantExpected.java 8228647: Broken enum produce inconvenient errors and AST 2019-08-13 10:27:33 +02:00
EnumConstantNotExpected.java 8228647: Broken enum produce inconvenient errors and AST 2019-08-13 10:27:33 +02:00
EnumLabelMustBeEnumConstant.java 8309336: Incorrect switch in enum not reported properly 2023-06-05 06:25:00 +00:00
EnumLabelUnqualified.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
EnumNoFinalize.java
EnumNoSubclassing.java 8210031: implementation for JVM Constants API 2018-12-09 12:36:24 -05:00
EnumsCantBeGeneric.java 8286057: Make javac error on a generic enum friendlier 2022-05-24 10:31:11 +00:00
EnumsMustBeStatic.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
EnumTypesNotExtensible.java
Error.java
ErrorReadingFile.java
ErrSyntheticNameConflict.java 8271623: Omit enclosing instance fields from inner classes that don't use it 2021-11-23 18:14:47 +00:00
ExceptAlreadyCaught.java
ExceptNeverThrown.java
Expected2.java
Expected3.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
ExpectedModule.java
ExplicitImplicitLambda.java
ExplicitParamsDoNotConformToBounds.java 8043251: Bogus javac error: required: no arguments, found: no arguments 2023-01-09 18:38:15 +00:00
ExtraImportSemicolonError.java 8027682: javac wrongly accepts semicolons in package and import decls 2023-03-23 16:04:35 +00:00
ExtraImportSemicolonWarning.java 8027682: javac wrongly accepts semicolons in package and import decls 2023-03-23 16:04:35 +00:00
FeatureDeconstructionPatterns.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
FeatureFlexibleConstructors.java 8325805: Compiler Implementation for Flexible Constructor Bodies (Second Preview) 2024-05-28 13:15:20 +00:00
FeatureReifiableTypesInstanceof.java 8250625: Compiler implementation of Pattern Matching for instanceof (Final) 2020-11-05 08:01:33 +00:00
FeatureUnconditionalPatternsInInstanceof.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
FinallyCannotComplete.java
FinallyWithoutTry.java
FinalParamCantBeAssigned.java
FirstInvocationMustBeAnotherConstructor.java 8194743: Compiler implementation for Statements before super() 2023-11-27 17:26:52 +00:00
FloatNumberTooLarge.java
FloatNumberTooSmall.java
FlowsThroughFromPattern.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
FlowsThroughToPattern.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
ForeachBadInitialization.java
ForeachNotApplicable.java
FutureVarNotAllowed.java 8223305: Compiler support for Switch Expressions 2019-06-10 05:09:52 +02:00
GenericArrayCreation.java
GenericThrowable.java
GreaterThanExpected.java
GuardHasConstantFalse.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
GuardNotAllowed.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
HasBeenDeprecated.java
HideStatic.java
IdentifierExpected.java
IllegalAnnotationDeclaration.java
IllegalArrayCreation.java
IllegalChar.java 8206981: Compiler support for Raw String Literals 2018-09-12 14:19:36 -03:00
IllegalComboModifiers.java
IllegalDigitInBinaryLiteral.java 8325440: Confusing error reported for octal literals with wrong digits 2024-02-09 11:51:05 +00:00
IllegalDigitInOctalLiteral.java 8325440: Confusing error reported for octal literals with wrong digits 2024-02-09 11:51:05 +00:00
IllegalDot.java
IllegalEnumStaticRef.java
IllegalEscapeChar.java
IllegalForwardRef.java
IllegalInitializer.java
IllegalLineEndInCharLit.java
IllegalNonAsciiDigit.java
IllegalParanthesisExpression.java
IllegalQualNotIcls.java
IllegalRecordComponentName.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
IllegalRefToRestrictedType.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
IllegalRefToVarType.java 8223305: Compiler support for Switch Expressions 2019-06-10 05:09:52 +02:00
IllegalSelfRef.java
IllegalSignature.java 8211004: javac is complaining about non-denotable types and refusing to generate the class file 2022-01-06 05:58:17 +00:00
IllegalStartOfExpr.java
IllegalStartOfStmt.java 8267465: remove superfluous preview related annotations and test options 2021-06-07 13:57:15 +00:00
IllegalStartOfType.java
IllegalStaticIntfMethCall.java
IllegalUnderscore.java
IllegalUnicodeEscape.java
ImplicitClass.java 8305457: Implement java.io.IO 2024-05-24 13:37:14 +00:00
ImplicitClassBad-Filename.java 8315458: Implement JEP 463: Implicitly Declared Classes and Instance Main Method (Second Preview) 2023-11-30 12:49:49 +00:00
ImplicitClassHasPackage.java 8315458: Implement JEP 463: Implicitly Declared Classes and Instance Main Method (Second Preview) 2023-11-30 12:49:49 +00:00
ImplicitClassNoMain.java 8315458: Implement JEP 463: Implicitly Declared Classes and Instance Main Method (Second Preview) 2023-11-30 12:49:49 +00:00
ImportModule.java 8328481: Implement JEP 476: Module Import Declarations (Preview) 2024-05-06 05:49:28 +00:00
ImportModuleDoesNotReadUnnamed.java 8328481: Implement JEP 476: Module Import Declarations (Preview) 2024-05-06 05:49:28 +00:00
ImportModuleNotFound.java 8328481: Implement JEP 476: Module Import Declarations (Preview) 2024-05-06 05:49:28 +00:00
ImproperSPF.java 8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields 2021-10-21 21:11:01 +00:00
ImproperSVUID.java 8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields 2021-10-21 21:11:01 +00:00
ImproperTypeInnerRawParam.java
ImproperTypeParamMissing.java
InapplicableSymbols.java
IncomparableTypes.java
IncompatibleAbstracts.java
IncompatibleArgTypesInLambda.java
IncompatibleArgTypesInMethodRef.java
IncompatibleDescsInFunctionalIntf.java
IncompatibleDiffRetSameType.java 7039014: Confusing error message for method conflict 2022-10-20 13:58:09 +00:00
IncompatibleEqUpperBounds.java
IncompatibleRetTypeInLambda.java
IncompatibleRetTypeInMref.java
IncompatibleThrownTypesInMref.java
IncompatibleTypes1.java
IncompatibleTypesInConditional.java
IncompatibleTypesInSwitchExpression.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
IncompatibleUpperBounds.java
InconvertibleTypes.java
IncorrectConstructorReceiverName.java
IncorrectConstructorReceiverType.java
IncorrectNumberOfNestedPatterns.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
IncorrectReceiverName.java
IncorrectReceiverType.java
IncorrectRecordDeclaration.java 8294020: improve errors for record declarations 2022-11-07 20:16:04 +00:00
IneffectualExternEnum.java 8310835: Address gaps in -Xlint:serial checks 2023-07-20 01:10:46 +00:00
IneffectualExternRecord.java 8310835: Address gaps in -Xlint:serial checks 2023-07-20 01:10:46 +00:00
IneffectualSerialEnum.java 8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields 2021-10-21 21:11:01 +00:00
IneffectualSerialExtern.java 8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields 2021-10-21 21:11:01 +00:00
IneffectualSerialRecord.java 8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields 2021-10-21 21:11:01 +00:00
InexactVarargsCall.java
InferArgsLengthMismatch.java
InferNoConformingAssignment.java
InferVarargsArgumentMismatch.java
InheritFromFinal.java
InitializerMustComplete.java
InitializerNotAllowed.java
InnerClassCantHaveStatic.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
InstanceInitializersNotAllowedInRecords.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
InstanceofReifiableNotSafe.java 8250625: Compiler implementation of Pattern Matching for instanceof (Final) 2020-11-05 08:01:33 +00:00
InterfaceExpected.java
InterfaceNotAllowed.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
IntfAnnotationCantHaveTypeParams.java
IntfAnnotationMemberClash.java
IntfAnnotationsCantHaveParams.java
IntfAnnotationsCantHaveTypeParams.java
IntfMethodCantHaveBody.java
IntNumberTooLarge.java
InvalidAnnoMemberType.java
InvalidBinaryNumber.java 8325440: Confusing error reported for octal literals with wrong digits 2024-02-09 11:51:05 +00:00
InvalidCaseLabelCombination.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
InvalidDuplicateAnnotation.java
InvalidGenericLambdaTarget.java
InvalidHexNumber.java
InvalidHtml.java 8288699: cleanup HTML tree in HtmlDocletWriter.commentTagsToContent 2022-07-08 19:33:03 +00:00
InvalidMethodDecl.java
InvalidSuperTypeRecord.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
InvalidTypeContextRepeatableAnnotation.java
InvalidYield.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
InvalidYieldWarning.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
KindnameClass.java
KindnameConstructor.java
KindnameInstanceInit.java
KindnameMethod.java
KindnameRecord.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
KindnameStaticInit.java
KindnameVariable.java
LabelInUse.java
LambdaBodyNeitherValueNorVoidCompatible.java
LambdaDeduplicate.java 8275233: Incorrect line number reported in exception stack trace thrown from a lambda expression 2021-12-07 18:44:39 +00:00
LambdaStat.java
LocalArrayMissingTarget.java
LocalCantInferNull.java 8213263: fix legal headers in test/langtools 2018-11-01 14:32:55 -07:00
LocalCantInferVoid.java 8213263: fix legal headers in test/langtools 2018-11-01 14:32:55 -07:00
LocalCantInheritFromSealed.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
LocalClassCantBeInstStatic.java 8338288: Compiler Implementation for Flexible Constructor Bodies (Third Preview) 2024-11-15 10:07:18 +00:00
LocalEnum.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
LocalLambdaMissingTarget.java 8213263: fix legal headers in test/langtools 2018-11-01 14:32:55 -07:00
LocalMissingInit.java 8213263: fix legal headers in test/langtools 2018-11-01 14:32:55 -07:00
LocalMrefMissingTarget.java 8213263: fix legal headers in test/langtools 2018-11-01 14:32:55 -07:00
LocalRedundantType.java 8213263: fix legal headers in test/langtools 2018-11-01 14:32:55 -07:00
LocalSelfRef.java 8213263: fix legal headers in test/langtools 2018-11-01 14:32:55 -07:00
Location1.java
Location.java
LongSVUID.java
LossyConversion.java 8244681: Add a warning for possibly lossy conversion in compound assignments 2022-09-15 10:10:23 +00:00
MalformedFpLit.java
MalformedHTML.java
MatchBindingExists.java 8250625: Compiler implementation of Pattern Matching for instanceof (Final) 2020-11-05 08:01:33 +00:00
MethodDoesNotOverride.java
MethodMustBePublic.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
MethodRedundantTypeargs.java
MightBeAssignedInLoop.java
MissingDeprecatedAnnotation.java
MissingMethodBody.java
MissingReturnStatement.java
MissingReturnValue.java
MissingReturnValueFragment.java
MissingSemicolon.java
MissingSVUID.java
ModifierNotAllowed.java
ModuleDeclSbInModuleInfoJava.java
ModuleForOptionNotFound.java
MrefInferAndExplicitParams.java
MrefStat1.java
MrefStat.java
MulticatchCantBeAssigned.java
MulticatchTypesMustBeDisjoint.java
MultipleCaseLabels.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
NameClashSameErasure.java
NameClashSameErasureNoHide.java
NameClashSameErasureNoOverride1.java
NameClashSameErasureNoOverride.java
NativeMethodCantHaveBody.java
NewNotAllowedInAnno.java
NoAbstracts.java
NoAnnotationsInLink.java 8266082: AssertionError in Annotate.fromAnnotations with -Xdoclint 2021-06-21 08:39:35 +00:00
NoAnnotationsOnDotClass.java
NoArgs.java
NoContent.java
NoExplicitAnnoProcRequested.java
NoInterfaceExpected.java
NoInterfaceHere.java
NoJavaLang.java 8173605: Remove support for source and target 1.7 option in javac 2022-09-01 16:43:50 +00:00
NonApplicableRepeatingAnno.java
NonSealedWithNoSealedSuper.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
NonStaticCantBeRef.java
NoSuitableFunctionalIntfInst.java
NoSwitchExpression.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
NoSwitchExpressionQualify.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
NotAFunctionalIntf.java
NoTagName.java
NotAllowedClass.java
NotAllowedVariable.java
NotAnInterfaceComponent.java
NotApplicableMethodFound.java
NotAStatement.java
NotDefAccessClassIntfCantAccessFragment.java
Note.java
NotEnclClass.java
NotExhaustive.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
NotExhaustiveStatement.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
NotInProfile.java 8173605: Remove support for source and target 1.7 option in javac 2022-09-01 16:43:50 +00:00
NoTitle.java 6251738: Want a top-level summary page that itemizes all spec documents referenced from javadocs (OEM spec) 2022-09-26 21:28:39 +00:00
NotLoopLabel.java
NotWithinBounds.java
NoURL.java 6251738: Want a top-level summary page that itemizes all spec documents referenced from javadocs (OEM spec) 2022-09-26 21:28:39 +00:00
ObsoleteSourceAndTarget.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
OperatorCantBeApplied1.java
OperatorCantBeApplied.java
OptionRemovedSource.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
OptionRemovedTarget.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
Orphaned.java
OverriddenDefault.java
OverrideAnnotatedStaticMethod.java
OverrideDoesntThrow.java
OverrideIncompatibleReturn.java
OverrideMeth.java
OverrideStatic.java
OverrideUncheckedReturn.java
OverrideUncheckedThrown.java
OverrideVarargsExtra.java
OverrideVarargsMissing.java
OverrideWeakerAccess.java
PackageAnnos.java
PartialInstSig.java
PathElementNotFound.java
PatternDominated.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
PatternExpected.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
PatternMatchingInstanceof.java 8250625: Compiler implementation of Pattern Matching for instanceof (Final) 2020-11-05 08:01:33 +00:00
PatternOrEnumReq.java 8309336: Incorrect switch in enum not reported properly 2023-06-05 06:25:00 +00:00
PatternSwitch.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
PatternTypeCannotInfer.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
PermitsCantListDeclaringClass.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
PermitsCantListSuperType.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
PermitsInNoSealedClass.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
PluginNotFound.java
PossibleFallThrough.java
PossibleLossPrecision.java
PotentialLambdaFound.java
PotentiallyAmbiguousOverload.java
PrematureEOF.java
PreviewFeatureDisabled.java 8293051: Further refactor javac after removal of -source/-target/--release 7 2022-09-08 14:36:19 +00:00
PreviewFeatureDisabledPlural.java 8293051: Further refactor javac after removal of -source/-target/--release 7 2022-09-08 14:36:19 +00:00
PreviewFeatureUse.java 8293051: Further refactor javac after removal of -source/-target/--release 7 2022-09-08 14:36:19 +00:00
PreviewFilename.java 8293051: Further refactor javac after removal of -source/-target/--release 7 2022-09-08 14:36:19 +00:00
PreviewFilenameAdditional.java 8293051: Further refactor javac after removal of -source/-target/--release 7 2022-09-08 14:36:19 +00:00
PrimitivePatternMatching.java 8303374: Implement JEP 455: Primitive Types in Patterns, instanceof, and switch (Preview) 2024-01-31 14:18:13 +00:00
PrivateInterfaceMethodsNotSupported.java 8207248: Reduce incidence of compiler.warn.source.no.bootclasspath in javac tests 2018-07-16 21:53:49 -07:00
ProbFoundReqFragment.java
ProcessorNotFound.java
ProcOnlyNoProcs.java
QualifiedNewStaticClass.java
RawClassUse.java
ReceiverParameterNotApplicableConstructor.java
RecordPatternsAnnotationsNotAllowed.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
Records.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
RecordsCanNotDeclareInstanceFields.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
RecordsCantDeclareComponentModifiers.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
RecordsComponentsCanNotDeclareCStyleArrays.java 8255013: implement Record Classes as a standard feature in Java, follow-up 2020-10-28 17:18:46 +00:00
RecursiveConstrInvocation.java
RedundantCast.java
RedundantSuperclassInit.java 8194743: Compiler implementation for Statements before super() 2023-11-27 17:26:52 +00:00
RedundantSupertype.java
RefAmbiguous.java
RefAmbiguousFragment.java
RefBadParens1.java 8264181: javadoc tool Incorrect error message about malformed link 2021-05-19 17:17:50 +00:00
RefBadParens.java
RefIdentifierExpected.java
RefSyntaxError.java
RefUnexpectedInput1.java 8264181: javadoc tool Incorrect error message about malformed link 2021-05-19 17:17:50 +00:00
RefUnexpectedInput.java
RemovalFilename.java
RemovalFilenameAdditional.java
RepeatableDocumentedMismatch.java
RepeatableInheritedMismatch.java
RepeatableNonDefault.java
RepeatableNoValue.java
RepeatableRetentionMismatch.java
RepeatableTargetMismatch.java
RepeatableWrongValueType.java
RepeatedAnnotationTarget.java
RepeatedInterface.java
RepeatedModifier.java
RepeatingAnnotationAndContainer.java
ReportAccess.java
ReportAccessFragment.java
ResourceClosed.java
ResourceMayNotBeAssigned.java
ResourceNotApplicableToType.java
ResourceNotReferenced.java
ReturnBeforeSuperclassInit.java 8194743: Compiler implementation for Statements before super() 2023-11-27 17:26:52 +00:00
ReturnOutsideMethod.java
ReturnOutsideSwitchExpression.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
RuleCompletesNormally.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
SafeVarargsNotApplicableToRecordAccessors.java 8257855: Example SafeVarargsNotApplicableToRecordAccessors breaks test tools/javac/diags/CheckExamples.java 2020-12-08 04:07:38 +00:00
SameBinaryName.java
SealedMustHaveSubtypes.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
SealedNotAllowedInLocalClass.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
SealedTypes.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
SerialInterfaceMethodsAndFields.java 8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields 2021-10-21 21:11:01 +00:00
SerialMissingNoArgCtor.java 8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields 2021-10-21 21:11:01 +00:00
SerialNonPrivateMethod.java 8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields 2021-10-21 21:11:01 +00:00
SourceNoBootclasspath.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
SourceNoSystemModulesPath.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
SourceNoSystemModulesPathWithTarget.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
StatementNotExpected.java 8337976: Insufficient error recovery in parser for switch inside class body 2024-08-14 12:20:17 +00:00
StatExprExpected.java 8213263: fix legal headers in test/langtools 2018-11-01 14:32:55 -07:00
StaticMrefWithTargs.java
StaticNotQualifiedByType.java 8285935: Spurious lint warning for static method accessed through instance qualifier 2022-08-04 17:57:28 +00:00
StringConstRequired.java
SubtypeDoesntExtendSealed.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
SunApiFilename.java
SunApiFilenameAdditional.java
SunProprietary.java
SuperNotAllowedInEnum.java
SwitchCaseUnexpectedStatement.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
SwitchExpressionCompletesNormally.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
SwitchExpressionEmpty.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
SwitchExpressionNoResultExpressions.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
SwitchExpressions.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
SwitchExpressionTargetCantBeVoid.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
SwitchMixingCaseTypes.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
SwitchRules.java 8232684: Make switch expressions final 2019-11-12 06:32:13 +00:00
TextBlockCloseDelimiter.java 8241741: Implement Text Blocks as a standard feature in javac 2020-04-09 10:55:01 -03:00
TextBlockOpenDelimiter.java 8241741: Implement Text Blocks as a standard feature in javac 2020-04-09 10:55:01 -03:00
TextBlockSource.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
TextBlockWhitespace.java 8241741: Implement Text Blocks as a standard feature in javac 2020-04-09 10:55:01 -03:00
ThisAsIdentifier.java
ThisEscape.java 8015831: Add lint check for calling overridable methods from a constructor 2023-03-17 22:05:50 +00:00
ThrowsNotAllowedInAnno.java
TrustMeOnNonVarargsMeth.java
TrustMeOnReifiableVarargsParam.java
TrustMeOnVirtualMethod.java
TryResourceThrowsInterruptedExc.java
TryWithoutCatchOrFinallyOrResource.java
TryWithResourcesExprEffectivelyFinalVar.java
TryWithResourcesExprNeedsVar.java
TypeAnnoNotApplicableInTypeContext.java
TypeFoundRequired.java
TypeNoParams.java
TypeReqClassArray.java 8303374: Implement JEP 455: Primitive Types in Patterns, instanceof, and switch (Preview) 2024-01-31 14:18:13 +00:00
TypeReqRef.java 8303374: Implement JEP 455: Primitive Types in Patterns, instanceof, and switch (Preview) 2024-01-31 14:18:13 +00:00
TypesIncompatible.java
TypesIncompatibleAbstractDefault.java
TypesIncompatibleUnrelatedDefaults.java
TypeVarCantBeDeref.java
TypeVarInPermits.java 8260517: implement Sealed Classes as a standard feature in Java 2021-05-20 09:11:08 +00:00
TypeVarMayNotBeFollowedByOtherBounds.java
UncheckedAssign.java
UncheckedAssignToVar.java
UncheckedCall.java
UncheckedCast.java
UncheckedClash.java
UncheckedFilename.java
UncheckedFilenameAdditional.java
UncheckedGenericArrayCreation.java
UncheckedImplement.java
UncheckedMethodInvocation.java
UnclosedCharLiteral.java
UnclosedComment.java
UnclosedStringLiteral.java
UnconditionalPatternAndBothBoolean.java 8330197: Make javac/diags/example release agnostic 2024-04-15 15:11:53 +00:00
UnconditionalPatternAndDefault.java 8300543: Compiler Implementation for Pattern Matching for switch 2023-05-22 04:24:06 +00:00
UndefinedLabel.java
UnderscoreAsIdentifierError.java 8315532: Compiler Implementation for Unnamed Variables & Patterns 2023-10-30 10:28:48 +00:00
UnderscoreAsIdentifierWarning.java
UnderscoreInLambdaExpression.java 8308399: Recommend --release when -source and -target are misused 2023-11-29 12:27:54 +00:00
UnexpectedContent.java
UnexpectedLambda.java
UnexpectedMref.java
UnexpectedReturnValue.java
UnnamedPackage.java
UnnamedVariables.java 8315532: Compiler Implementation for Unnamed Variables & Patterns 2023-10-30 10:28:48 +00:00
UnneededStrictfpWarning.java 8244146: javac changes for JEP 306 2021-06-01 21:59:39 +00:00
UnreachableCatch1.java
UnreachableCatch.java
UnreachableStatement.java
UnreportedException.java
UnreportedExceptionDefaultConstructor.java
UnreportedExceptionImplicitClose.java
UnsafeUseOfVarargsParam.java
UnsupportedEncoding.java
UnterminatedInlineTag.java
UnterminatedSignature1.java 8264181: javadoc tool Incorrect error message about malformed link 2021-05-19 17:17:50 +00:00
UnterminatedSignature.java
UseOfUnderscoreNotAllowed.java 8315532: Compiler Implementation for Unnamed Variables & Patterns 2023-10-30 10:28:48 +00:00
UseOfUnderscoreNotAllowedNonVar.java 8315532: Compiler Implementation for Unnamed Variables & Patterns 2023-10-30 10:28:48 +00:00
UseOfUnderscoreNotAllowedWithBrackets.java 8315532: Compiler Implementation for Unnamed Variables & Patterns 2023-10-30 10:28:48 +00:00
VarAllOrNothing.java
VarargsAndOldArraySyntax.java
VarargsAndReceiver.java
VarargsArgumentMismatch.java
VarargsClash.java
VarargsFinalOnly.java
VarargsImplement.java
VarargsMustBeLast.java
VarargsNonReifiableType.java
VarargsOverride.java
VarExplicitLambda.java
VarInImplicitLambda.java 8211148: var in implicit lambdas shouldn't be accepted for source < 11 2018-10-04 08:37:08 -07:00
VarInTryWithResourcesNotSupportedInSource.java 8207248: Reduce incidence of compiler.warn.source.no.bootclasspath in javac tests 2018-07-16 21:53:49 -07:00
VarMightAlreadyBeAssigned.java
VarMightNotHaveBeenInitialized.java
VarNotAllowed.java 8223305: Compiler support for Switch Expressions 2019-06-10 05:09:52 +02:00
VarNotAllowedArray.java 8223305: Compiler support for Switch Expressions 2019-06-10 05:09:52 +02:00
VarNotAllowedCompound.java 8223305: Compiler support for Switch Expressions 2019-06-10 05:09:52 +02:00
VarNotAllowedExplicitLambda.java 8213263: fix legal headers in test/langtools 2018-11-01 14:32:55 -07:00
VarNotAllowedHere.java 8223305: Compiler support for Switch Expressions 2019-06-10 05:09:52 +02:00
VarNotIntializedInDefaultConstructor.java
Verbose.java
VerboseResolveMulti1.java
VerboseResolveMulti.java
VoidNotAllowed.java
WarnForwardRef.java
WarningAndWerror.java
WarnSelfRef.java
WarnSerializableLambda.java
WhereCaptured1.java
WhereCaptured.java
WhereFreshTvar.java
WhereIntersection2.java
WhereIntersection.java
WhereTypeVar2.java
WhereTypeVar.java
WrongNumberTypeArgs.java
WrongNumberTypeArgsFragment.java 8043251: Bogus javac error: required: no arguments, found: no arguments 2023-01-09 18:38:15 +00:00
WrongReceiver.java