Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Scaladoc Tool
    • Labels:
    • Environment:

      r25446

      Description

      Adding a use case and a link in the same comment crashes scaladoc:

      package test
      class A {
        /** This will crash scaladoc: [[test.A]]
         * @usecase def f(t:Int):Int
         */
        def f[T](t:T): T = t
      }
      

      results in:

      sun@sun-laptop:~/Desktop$ ~/scala-trunk/build/pack/bin/scaladoc test.scala 
      Exception in thread "main" java.lang.RuntimeException: cannot find template in unfinished universe
      	at scala.sys.package$.error(package.scala:27)
      	at scala.tools.nsc.doc.model.ModelFactory.findTemplate(ModelFactory.scala:62)
              ...
      

        Activity

        Hide
        Commit Message Bot added a comment -

        (ureche in r26048) Changed the way use cases are handled in scaladoc.

        If use cases are present, the original member disappears from the list. References SI-5054, but needs more work on the html part.
        If use cases are present along with links, scaladoc doesn't crash anymore. Closes SI-4898.

        Review by kzys.

        Show
        Commit Message Bot added a comment - (ureche in r26048 ) Changed the way use cases are handled in scaladoc. If use cases are present, the original member disappears from the list. References SI-5054 , but needs more work on the html part. If use cases are present along with links, scaladoc doesn't crash anymore. Closes SI-4898 . Review by kzys.

          People

          • Assignee:
            Unassigned
            Reporter:
            Vlad Ureche
            TracCC:
            Vlad Ureche
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development