Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-2052

[drlvm][kernel] Improve/re-implement a parser of generic signatures

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib, DRLVM
    • Labels:
      None
    • Estimated Complexity:
      Moderate

      Description

      Improve/re-implement a parser of generic signatures in DRLVM kernel classes [1], and move this functionality to classlib (luni ?), so other VMs could reuse it for 1.5 support. The current impl is somewhat messy and half-baked, one need to invent more shaped and modular API to the parser. One more possible issue is parser's dependency on antlr, which may be considered overkill for this duty. I think antlr has its pros, like more illustrative code with clear correlation to formal grammar [2]; unfortunately this is not the case with the impl in question. OTOH minimizing number of dependencies for VM is always good.

      [1] working_vm\vm\vmcore\src\kernel_classes\javasrc\org\apache\harmony\lang\reflect**
      [2] http://java.sun.com/docs/books/vmspec/2nd-edition/ClassFileFormat-Java5.pdf Para 4.4.4

        Attachments

        1. HARMONY-2052-1.diff
          106 kB
          Vladimir Beliaev
        2. HARMONY-2052-1.diff
          105 kB
          Vladimir Beliaev
        3. antlr-2.7.5.jar
          425 kB
          Vladimir Beliaev
        4. HARMONY-2052-1.diff
          105 kB
          Paulex Yang

          Issue Links

            Activity

              People

              • Assignee:
                paulex Paulex Yang
                Reporter:
                varlax Alexey Varlamov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: