Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6183495

Javac needs to use file offsets for positions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 2.0
    • tools
    • generic
    • generic

      Javac currently uses packed integers to store source file positions, which hold the line and column position. These packed integers suffer from two problems:

      1. very long source files, or files with very wide columns, can overrun the fields in the packed integer.

      2. tools that need to create source from the parse trees, such as when refactoring, cannot reliably recreate source offsets due to column tab-expansion problems.

      The agreed upon solution is to use source file character offsets instead of packed integers.
      ###@###.### 10/22/04 23:48 GMT

            tballsunw Tom Ball (Inactive)
            tballsunw Tom Ball (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: