Uploaded image for project: 'Corda'
  1. CORDA-1315

Java example in "Upgrading cordapps" documentation contains incorrect Java

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Low
    • Resolution: Done
    • Affects versions: None
    • Fix versions: Corda 3.3
    • Components: None
    • Labels:
      None

      Description

      In docs/source/upgrading-cordapps.rst, the ObligationSchemaV1.java class incorrectly maps Kotlin's ByteArray type.

      @Column(name = "lender") @Lob private final Byte[] lender;
      @Column(name = "borrower") @Lob private final Byte[] borrower;
      

      and

      public ByteArray getLender() {
          return lender;
      }
      
      public ByteArray getBorrower() {
          return borrower;
      }
      

      The actual Java equivalent of ByteArray is byte[].

      This problem exists for both declarations of ObligationSchemaV1.java.

        Attachments

          Activity

            People

            • Assignee:
              Tudor.Malene Tudor Malene
              Reporter:
              chris.rankin Chris Rankin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: