Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8294957 Consolidate JDK class files parsing, generating, and transforming (umbrella)
  3. JDK-8313422

test/langtools/tools/javac 144 test classes uses com.sun.tools.classfile library

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P4
    • 22
    • None
    • tools
    • None
    • b15

    Description

      There are 144 tests to convert to the new Class-File API. Here's the list of tests

      test/langtools/tools/javac/diags/examples/InvalidStaticInterface/InvalidStaticInterface.java
      test/langtools/tools/javac/diags/examples/InvalidDefaultInterface/InvalidDefaultInterface.java
      test/langtools/tools/javac/diags/examples/BadConstantValueType/BadConstantValueType.java
      test/langtools/tools/javac/MethodParameters/Constructors.java
      test/langtools/tools/javac/MethodParameters/EnumTest.java
      test/langtools/tools/javac/MethodParameters/InstanceMethods.java
      test/langtools/tools/javac/MethodParameters/StaticMethods.java
      test/langtools/tools/javac/MethodParameters/LambdaTest.java
      test/langtools/tools/javac/MethodParameters/AnnotationTest.java
      test/langtools/tools/javac/linenumbers/NestedLineNumberTest.java
      test/langtools/tools/javac/MethodParameters/LocalClassTest.java
      test/langtools/tools/javac/launcher/GetResourceTest.java
      test/langtools/tools/javac/jvm/ClassRefDupInConstantPoolTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ConstructorInvocationTypeArgument.java
      test/langtools/tools/javac/MethodParameters/UncommonParamNames.java
      test/langtools/tools/javac/MethodParameters/AttributeVisitor.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodThrows.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/RepeatingTypeAnnotations.java
      test/langtools/tools/javac/T7053059/DoubleCastTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ResourceVariable.java
      test/langtools/tools/javac/annotations/ApplicableAnnotationsOnRecords.java
      test/langtools/tools/javac/diags/examples/InvalidDefaultInterface/processors/CreateBadClassFile.java
      test/langtools/tools/javac/defaultMethods/TestNoBridgeOnDefaults.java
      test/langtools/tools/javac/linenumbers/NullCheckLineNumberTest.java
      test/langtools/tools/javac/diags/examples/InvalidStaticInterface/processors/CreateBadClassFile.java
      test/langtools/tools/javac/MethodParameters/MemberClassTest.java
      test/langtools/tools/javac/T8187805/BogusRTTAForUnusedVarTest.java
      test/langtools/tools/javac/recovery/AttrRecovery.java
      test/langtools/tools/javac/file/SymLinkArchiveTest.java
      test/langtools/tools/javac/diags/examples/BadConstantValueType/processors/CreateBadClassFile.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MultiCatch.java
      test/langtools/tools/javac/defaultMethods/CheckACC_STRICTFlagOnDefaultMethodTest.java
      test/langtools/tools/javac/file/SymLinkShortNameTest.java
      test/langtools/tools/javac/T8203892/CheckTargetIsNotAddedAsMarkerInterfaceTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodInvocationTypeArgument.java
      test/langtools/tools/javac/classfiles/InnerClasses/SyntheticClasses.java
      test/langtools/tools/javac/defaultMethods/BadClassfile.java
      test/langtools/tools/javac/T8209173/CodeCompletionExceptTest.java
      test/langtools/tools/javac/multicatch/7005371/T7005371.java
      test/langtools/tools/javac/classfiles/T8255757/T8255757.java
      test/langtools/tools/javac/StringConcat/TestIndyStringConcat.java
      test/langtools/tools/javac/recovery/LambdaRecovery.java
      test/langtools/tools/javac/T6695379/AnnotationsAreNotCopiedToBridgeMethodsTest.java
      test/langtools/tools/javac/MethodParameters/AnonymousClass.java
      test/langtools/tools/javac/file/SymLinkTest.java
      test/langtools/tools/javac/7166455/CheckACC_STRICTFlagOnclinitTest.java
      test/langtools/tools/javac/defaultMethods/super/TestDirectSuperInterfaceInvoke.java
      test/langtools/tools/javac/lambda/lambdaNaming/TestNonSerializableLambdaNameStability.java
      test/langtools/tools/javac/patterns/NoUnnecessaryCast.java
      test/langtools/tools/javac/patterns/NestedPatternVariablesBytecode.java
      test/langtools/tools/javac/linenumbers/FinallyLineNumberTest.java
      test/langtools/tools/javac/recovery/AnnotationRecovery.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/FromSpecification.java
      test/langtools/tools/javac/MethodParameters/LegacyOutputTest/LegacyOutputTest.java
      test/langtools/tools/javac/multicatch/Pos05.java
      test/langtools/tools/javac/StringConcat/WellKnownTypeSignatures.java
      test/langtools/tools/javac/8000518/DuplicateConstantPoolEntry.java
      test/langtools/tools/javac/T6970173/DebugPointerAtBadPositionTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodReceivers.java
      test/langtools/tools/javac/defaultMethods/TestDefaultBody.java
      test/langtools/tools/javac/T7008643/InlinedFinallyConfuseDebuggersTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/Constructors.java
      test/langtools/tools/javac/cast/intersection/DuplicatedCheckcastTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java
      test/langtools/tools/javac/8005931/CheckACC_STRICTFlagOnPkgAccessClassTest.java
      test/langtools/tools/javac/modules/ModuleVersion.java
      test/langtools/tools/javac/T8024039/NoDeadCodeGenerationOnTrySmtTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/Initializers.java
      test/langtools/tools/javac/NoStringToLower.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ClassExtends.java
      test/langtools/tools/javac/annotations/typeAnnotations/VariablesDeclaredWithVarTest.java
      test/langtools/tools/javac/7199823/InnerClassCannotBeVerified.java
      test/langtools/tools/javac/AnonymousClass/AnonymousClassFlags.java
      test/langtools/tools/javac/patterns/MatchExceptionTest.java
      test/langtools/tools/javac/patterns/Annotations.java
      test/langtools/tools/javac/TryWithResources/TwrSimpleClose.java
      test/langtools/tools/javac/recovery/MethodModifiers.java
      test/langtools/tools/javac/patterns/LocalVariableTable.java
      test/langtools/tools/javac/records/recordComponent/RecordComponentTypeTest.java
      test/langtools/tools/javac/meth/TestCP.java
      test/langtools/tools/javac/options/release/ReleaseOption9.java
      test/langtools/tools/javac/expression/_super/NonDirectSuper/NonDirectSuper.java
      test/langtools/tools/javac/T8180660/MissingLNTEntryForFinalizerTest.java
      test/langtools/tools/javac/launcher/src/CLTest.java
      test/langtools/tools/javac/T8180141/MissingLNTEntryForBreakContinueTest.java
      test/langtools/tools/javac/code/CharImmediateValue.java
      test/langtools/tools/javac/importscope/T8193717.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/TypeTests.java
      test/langtools/tools/javac/7153958/CPoolRefClassContainingInlinedCts.java
      test/langtools/tools/javac/T8019486/WrongLNTForLambdaTest.java
      test/langtools/tools/javac/StringConcat/access/Test.java
      test/langtools/tools/javac/RequiredParameterFlags/ImplicitParameters.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/Fields.java
      test/langtools/tools/javac/preview/PreviewAutoSuppress.java
      test/langtools/tools/javac/T7093325.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ReferenceInfoUtil.java
      test/langtools/tools/javac/lambda/LocalVariableTable.java
      test/langtools/tools/javac/generics/bridges/BridgeHarness.java
      test/langtools/tools/javac/4241573/T4241573.java
      test/langtools/tools/javac/classreader/8171132/BadConstantValue.java
      test/langtools/tools/javac/lambda/TestBootstrapMethodsCount.java
      test/langtools/tools/javac/T8003967/DetectMutableStaticFields.java
      test/langtools/tools/javac/7003595/T7003595.java
      test/langtools/tools/javac/annotations/typeAnnotations/TypeAnnotationsPositionsOnRecords.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/NewObjects.java
      test/langtools/tools/javac/T8022186/DeadCodeGeneratedForEmptyTryTest.java
      test/langtools/tools/javac/T8010737/ParameterNamesAreNotCopiedToAnonymousInitTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ClassTypeParam.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodParameters.java
      test/langtools/tools/javac/classwriter/IndyCorrectInvocationName.java
      test/langtools/tools/javac/modules/JavaBaseTest.java
      test/langtools/tools/javac/modules/IncubatingTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodReturns.java
      test/langtools/tools/javac/modules/OpenModulesTest.java
      test/langtools/tools/javac/flow/LVTHarness.java
      test/langtools/tools/javac/options/release/ReleaseOptionUnsupported.java
      test/langtools/tools/javac/varargs/6199075/T6199075.java
      test/langtools/tools/javac/lambda/bytecode/TestLambdaBytecode.java
      test/langtools/tools/javac/lambda/bytecode/TestLambdaBytecodeTargetRelease14.java
      test/langtools/tools/javac/records/RecordsBinaryCompatibilityTests.java
      test/langtools/tools/javac/varargs/7042566/T7042566.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/TypeCasts.java
      test/langtools/tools/javac/T8222949/TestConstantDynamic.java
      test/langtools/tools/javac/lambda/deduplication/DeduplicationTest.java
      test/langtools/tools/javac/MethodParametersTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/Driver.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodTypeParam.java
      test/langtools/tools/javac/processing/model/element/TestOrigin.java
      test/langtools/tools/javac/MethodParameters/ClassFileVisitor.java
      test/langtools/tools/javac/lambda/TestInvokeDynamic.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java
      test/langtools/tools/javac/preview/PreviewTest.java
      test/langtools/tools/javac/preview/PreviewErrors.java
      test/langtools/tools/javac/diags/CheckResourceKeys.java
      test/langtools/tools/javac/processing/model/element/TestFileObjectOf.java
      test/langtools/tools/javac/sealed/BinaryCompatibilityTests.java
      test/langtools/tools/javac/lambda/ByteCodeTest.java
      test/langtools/tools/javac/sym/ElementStructureTest.java
      test/langtools/tools/javac/sealed/SealedDiffConfigurationsTest.java
      test/langtools/tools/javac/modules/AnnotationsOnModules.java
      test/langtools/tools/javac/diags/Example.java
      test/langtools/tools/javac/launcher/SourceLauncherTest.java
      test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java
      test/langtools/tools/javac/records/RecordCompilationTests.java

      Other 3 test files below use the sun.tools.classfile but import CreateSymbols tool (related to JDK-8310310). They should not be modified in the current version. Here is the list:
      test/langtools/tools/javac/platform/CanHandleClassFilesTest.java
      test/langtools/tools/javac/platform/createsymbols/CreateSymbolsTest.java
      test/langtools/tools/javac/platform/createsymbols/CreateSymbolsTestImpl.java

      Attachments

        Issue Links

          Activity

            People

              qxiao Qing Xiao (Inactive)
              qxiao Qing Xiao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: