Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1165

Tooling Support: Compile with -parameters

    XMLWordPrintableJSON

    Details

      Description

      For tools that provide content assist of parameter names for methods, it would be good to have parameter names retained within the compiled class files. There may be a good reason I can't think of not to enable this, but enabling it is as simple as adding -parameters to the maven compile plugin configuration:

                  <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-compiler-plugin</artifactId>
                          <version>3.1</version>
                          <configuration>
                              <source>1.8</source>
                              <target>1.8</target>
                              <compilerArgs>
                                      <arg>-parameters</arg> 
                              </compilerArgs>
                          </configuration>
                      </plugin>
      

      In the root pom.xml of the project.

      Of course there are other ways to go about this processing the sources or javadoc(provided every public method is very well documented), but this is the simplest way to expose the meaningful param names to tooling.

        Attachments

          Activity

            People

            • Assignee:
              spmallette Stephen Mallette
              Reporter:
              zackurey Zachary Kurey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: