Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2224

Java Source File Sequencer Problems When Sequencing Interfaces, Typed Collections, And Nested Types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.0.0.Beta1
    • 4.0.0.Alpha3, 3.8.0.Final
    • Sequencers
    • None

    Description

      I found these problems with the java source sequencer:

      • Collection types are missing. So Collection<Integer> is saved as Collection
      • Variables declared in the same statement are missing. For example, only variable j is persisted in this statement: int i, j;
      • The .* in wildcard imports is not saved. So import a.b.*; is saved as import.a.b
      • The array indicator is not saved in the type. So Object[] is saved as Object
      • AbstractMetadata.SYNCRHONIZED is misspelled.
      • Nested inner types (classes, interfaces, enums) are not saved.
      • enum parameters are missing. So A("a"), B("b") is saved as A, B
      • AbstractJavaMetadata.createTypeMetadata does not process modifiers for interfaces. So a public interface will end up being package scoped.
      • AbstractJavaMetadata.createTypeMetadata does not process methods for interfaces.
      • comments are lost
      • method body is missing

      Some of the above may require CND changes (like adding comments, method body, and nested types).

      Attachments

        Activity

          People

            dflorian@redhat.com Daniel Florian (Inactive)
            dflorian@redhat.com Daniel Florian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: