Apache Jena
  1. Apache Jena
  2. JENA-333

Using javadoc 7 causes warning exception in build (DAMLVocabulary, DAML_OIL)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Done
    • Affects Version/s: Jena 2.7.4
    • Fix Version/s: Jena 2.11.0
    • Component/s: Build, Ontology API
    • Labels:
      None
    • Environment:

      Java 7 (1.7.0_07) Linux 64 bit. (but not Java 1.6.0_24)

      Description

      Under java7, the build of jena core gets two stacktraces (marked as warning) in javadoc production. Unclear if the javadoc output is materially affected.

      The following two files are:

      com/hp/hpl/jena/vocabulary/DAMLVocabulary.java
      com/hp/hpl/jena/vocabulary/DAML_OIL.java

      It's unclear as to whether DAML_OIL.java problems maybe due to implementing DAMLVocabulary and nothing more.

      /usr/lib/jvm/java-7-openjdk-amd64/bin/javadoc \
      -classpath fuseki-server.jar \ – just a source of compiled Jena and all dependencies
      -encoding utf-8 \
      -d jdoc I.java

      The core problem is the form:

      -----------------------------------------------------
      import com.hp.hpl.jena.rdf.model.Resource ;
      import com.hp.hpl.jena.rdf.model.Property ;

      public interface I

      { public Resource Property(); }

      -----------------------------------------------------

      where Property is a class and a method name, which is legal, it just breaks javadoc (standard doclet).

        Activity

        Andy Seaborne created issue -
        Andy Seaborne made changes -
        Field Original Value New Value
        Summary Using javadoc 7 causes exception in build (DAMLVocabulary, DAML_OIL) Using javadoc 7 causes warning exception in build (DAMLVocabulary, DAML_OIL)
        Description The following two files cause javadoc production under java 7 to throw an exception:

        com/hp/hpl/jena/vocabulary/DAMLVocabulary.java
        com/hp/hpl/jena/vocabulary/DAML_OIL.java

        DAML_OIL.java seems to have other problems as well.

        /usr/lib/jvm/java-7-openjdk-amd64/bin/javadoc \
            -classpath fuseki-server.jar \ -- just a source of compiled Jena and all dependencies
            -encoding utf-8 \
            -d jdoc


        The core problem is the form:

        -----------------------------------------------------
        import com.hp.hpl.jena.rdf.model.Resource ;
        import com.hp.hpl.jena.rdf.model.Property ;

        public interface I
        {
        public Resource Property();
        }
        -----------------------------------------------------

        where Property is a class and a method name, which is legal, it just breaks javadoc (standard doclet).

        Under java7, the build of jena core gets two stacktraces (marked as warning) in javadoc production. Unclear if the javadoc output is materially affected.

        The following two files are:

        com/hp/hpl/jena/vocabulary/DAMLVocabulary.java
        com/hp/hpl/jena/vocabulary/DAML_OIL.java

        It's unclear as to whether DAML_OIL.java problems maybe due to implementing DAMLVocabulary and nothing more.

        /usr/lib/jvm/java-7-openjdk-amd64/bin/javadoc \
            -classpath fuseki-server.jar \ -- just a source of compiled Jena and all dependencies
            -encoding utf-8 \
            -d jdoc I.java

        The core problem is the form:

        -----------------------------------------------------
        import com.hp.hpl.jena.rdf.model.Resource ;
        import com.hp.hpl.jena.rdf.model.Property ;

        public interface I
        {
        public Resource Property();
        }
        -----------------------------------------------------

        where Property is a class and a method name, which is legal, it just breaks javadoc (standard doclet).

        Ian Dickinson made changes -
        Assignee Ian Dickinson [ ijd ]
        Andy Seaborne made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Andy Seaborne made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Andy Seaborne made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Andy Seaborne made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Done [ 11 ]
        Fix Version/s Jena 2.11.0 [ 12324437 ]

          People

          • Assignee:
            Ian Dickinson
            Reporter:
            Andy Seaborne
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development