Class BridgeTck


public abstract class BridgeTck extends AbstractByteCodeWriterTck
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
  • Constructor Details

    • BridgeTck

      public BridgeTck()
  • Method Details

    • abstractSpecializationProvidesExecutableBridge

      @Test public void abstractSpecializationProvidesExecutableBridge() throws Exception
      Throws:
      Exception
    • abstractInterfaceSpecializationProvidesDefaultBridge

      @Test public void abstractInterfaceSpecializationProvidesDefaultBridge() throws Exception
      Throws:
      Exception
    • bridgeDeclaresTheExceptionsOfTheInheritedMethod

      @Test public void bridgeDeclaresTheExceptionsOfTheInheritedMethod() throws Exception
      Throws:
      Exception
    • inheritedImplementationSatisfiesNewGenericInterface

      @Test public void inheritedImplementationSatisfiesNewGenericInterface() throws Exception
      Throws:
      Exception
    • concreteBridgeThroughMultipleGenericLevels

      @Test public void concreteBridgeThroughMultipleGenericLevels() throws Exception
      Throws:
      Exception
    • bridgesCovariantGenericMethodWithItsOwnVariable

      @Test public void bridgesCovariantGenericMethodWithItsOwnVariable() throws Exception
      Throws:
      Exception
    • rawGenericSuperclassDoesNotSpecializeItsMethod

      @Test public void rawGenericSuperclassDoesNotSpecializeItsMethod() throws Exception
      Throws:
      Exception
    • genericArrayBridgePreservesRuntimeArray

      @Test public void genericArrayBridgePreservesRuntimeArray() throws Exception
      Throws:
      Exception
    • bridgeUsesTheMethodsNamedTypeVariableBound

      @Test public void bridgeUsesTheMethodsNamedTypeVariableBound() throws Exception
      Throws:
      Exception
    • inheritedGeneratedBridgeKeepsSuperclassVariableScope

      @Test public void inheritedGeneratedBridgeKeepsSuperclassVariableScope() throws Exception
      Throws:
      Exception
    • inheritedSpecializedImplementationGetsInterfaceBridge

      @Test public void inheritedSpecializedImplementationGetsInterfaceBridge() throws Exception
      Throws:
      Exception
    • abstractInterfaceRedeclarationPreservesBothErasedContracts

      @Test public void abstractInterfaceRedeclarationPreservesBothErasedContracts() throws Exception
      Throws:
      Exception
    • boundedGeneratedClassBridgesItsVariableParameter

      @Test public void boundedGeneratedClassBridgesItsVariableParameter() throws Exception
      Throws:
      Exception
    • inheritedMethodBoundsAreSpecializedForBridgeMatching

      @Test public void inheritedMethodBoundsAreSpecializedForBridgeMatching() throws Exception
      Throws:
      Exception
    • privateSuperclassMethodDoesNotSuppressRequiredBridge

      @Test public void privateSuperclassMethodDoesNotSuppressRequiredBridge() throws Exception
      Throws:
      Exception
    • twoInterfacesNeedingTheSameBridgeGetOne

      @Test public void twoInterfacesNeedingTheSameBridgeGetOne() throws Exception
      Throws:
      Exception
    • twoInterfacesNeedingDifferentBridgesGetBoth

      @Test public void twoInterfacesNeedingDifferentBridgesGetBoth() throws Exception
      Throws:
      Exception
    • genericSignaturesOfABridgedGenericMethodMatchJavac

      @Test public void genericSignaturesOfABridgedGenericMethodMatchJavac() throws Exception
      Throws:
      Exception
    • covariantReturnWithoutGenericsIsBridged

      @Test public void covariantReturnWithoutGenericsIsBridged() throws Exception
      Throws:
      Exception
    • covariantCloneIsBridged

      @Test public void covariantCloneIsBridged() throws Exception
      Throws:
      Exception
    • covariantCloneOfAnExplicitSuperclassIsBridged

      @Test public void covariantCloneOfAnExplicitSuperclassIsBridged() throws Exception
      Throws:
      Exception
    • bridgeOfAProtectedMethodIsProtected

      @Test public void bridgeOfAProtectedMethodIsProtected() throws Exception
      Throws:
      Exception
    • bridgeOfAFinalSynchronizedMethodIsNeither

      @Test public void bridgeOfAFinalSynchronizedMethodIsNeither() throws Exception
      Throws:
      Exception
    • defaultMethodOfAnInterfaceIsBridged

      @Test public void defaultMethodOfAnInterfaceIsBridged() throws Exception
      Throws:
      Exception
    • publicSubclassOfAPackagePrivateClassBridgesItsPublicMethods

      @Test public void publicSubclassOfAPackagePrivateClassBridgesItsPublicMethods() throws Exception
      Throws:
      Exception
    • enumImplementingAGenericInterfaceIsBridged

      @Test public void enumImplementingAGenericInterfaceIsBridged() throws Exception
      Throws:
      Exception
    • genericMethodOverriddenInAParameterizedSubclassIsBridged

      @Test public void genericMethodOverriddenInAParameterizedSubclassIsBridged() throws Exception
      Throws:
      Exception