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

processor path doesn't always get picked up when using JSR199 API

    XMLWordPrintable

Details

    • b91
    • generic
    • generic

    Description

      With JSR199, it is reasonable to set locations directly on the file manager, rather than going via the compiler's option processing code. If you do, JavacProcessingEnvironment does not pick up the correct values for the processor path and class path, because it assumes they will be set via options.

      This is because of the following...
      -- JavacProcessingEnvironment.java, line 189
      if ((postfixPath = options.get("-processorpath")) == null )
      if ((postfixPath = options.get("-classpath")) == null )
      postfixPath = ".";
      -- DefaultFileManager.java
            handleOptions propogates its options into the main option table, but
            setLocation does not propogate locations to the main option table.

      Attachments

        Activity

          People

            darcy Joe Darcy
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: