Class BridgeTck
java.lang.Object
io.micronaut.sourcegen.bytecode.tck.AbstractByteCodeWriterTck
io.micronaut.sourcegen.bytecode.tck.BridgeTck
Bridge methods: which bridges a generated class needs, their flags and descriptors, and the dispatch through
them, compared with the bridges javac writes.
A backend runs these tests by extending this class and implementing
AbstractByteCodeWriterTck.write(io.micronaut.sourcegen.model.ObjectDef).
- Since:
- 2.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA contract requiring a multidimensional generic array bridge.static classjavac's covariant clone.static interfacejavac's bridge of a default method.static classjavac's covariant clone below an explicit superclass.static classjavac's bridge of a final synchronized method.static interfaceA generic contract whose method declares a separate bounded variable.static classA generic superclass used raw by a generated subclass.static classA generic method of a generic class.static interfaceA second generic getter.static classjavac's narrowing override.static classjavac verifies the inherited generic method implements the contract.static interfaceA contract whose generic method erases to Object.static classBridgeTck.MethodBoundParent<T extends Number>A method bound depends on the class variable.static classA plain covariant return.static interfaceA covariant source.static interfaceA generic contract whose method declares a checked exception.static classA superclass declaring nothing.static classjavac emits a public accept(Object) bridge despite the private superclass method.static classPrivate erased overload cannot satisfy an inherited public interface contract.static classjavac's protected bridge.static classA protected generic method.static classjavac's one bridge for two interfaces.static interfaceAnother erased return contract.static classjavac's override in a parameterized subclass.static classAn inherited implementation that predates a subclass implementing Supplier.static classjavac's two bridges.static classjavac's visibility bridge. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class AbstractByteCodeWriterTck
assertCall, caller, callWithParameter, classShape, declaredFields, declaredMethods, define, defineInPackage, genericShape, invoke, list, load, outcome, run, run, run, selection, selection, shape, write
-
Constructor Details
-
BridgeTck
public BridgeTck()
-
-
Method Details
-
abstractSpecializationProvidesExecutableBridge
-
abstractInterfaceSpecializationProvidesDefaultBridge
-
bridgeDeclaresTheExceptionsOfTheInheritedMethod
-
inheritedImplementationSatisfiesNewGenericInterface
-
concreteBridgeThroughMultipleGenericLevels
-
bridgesCovariantGenericMethodWithItsOwnVariable
-
rawGenericSuperclassDoesNotSpecializeItsMethod
-
genericArrayBridgePreservesRuntimeArray
-
bridgeUsesTheMethodsNamedTypeVariableBound
-
inheritedGeneratedBridgeKeepsSuperclassVariableScope
-
inheritedSpecializedImplementationGetsInterfaceBridge
-
abstractInterfaceRedeclarationPreservesBothErasedContracts
-
boundedGeneratedClassBridgesItsVariableParameter
-
inheritedMethodBoundsAreSpecializedForBridgeMatching
-
privateSuperclassMethodDoesNotSuppressRequiredBridge
-
twoInterfacesNeedingTheSameBridgeGetOne
-
twoInterfacesNeedingDifferentBridgesGetBoth
-
genericSignaturesOfABridgedGenericMethodMatchJavac
-
covariantReturnWithoutGenericsIsBridged
-
covariantCloneIsBridged
-
covariantCloneOfAnExplicitSuperclassIsBridged
-
bridgeOfAProtectedMethodIsProtected
-
bridgeOfAFinalSynchronizedMethodIsNeither
-
defaultMethodOfAnInterfaceIsBridged
-
publicSubclassOfAPackagePrivateClassBridgesItsPublicMethods
-
enumImplementingAGenericInterfaceIsBridged
-
genericMethodOverriddenInAParameterizedSubclassIsBridged
-