Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3229

Can't subclass PrintWriter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.6-beta-2
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • None
    • None

    Description

      I'm sure this is a more general problem than this test case, but I was checking the 1.6 branch against IFCX Wings and discovered that some change within the last few weeks makes it impossible to subclass java.io.PrintWriter.

      The error is:

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, 
      /Users/jim/Projects/Groovy/groovy-svn/groovy-core/src/test/groovy/bugs/newbug.groovy: -1: 
      The return type of java.lang.Appendable append(java.lang.CharSequence) 
      in java.io.PrintWriter is incompatible with java.io.PrintWriter append(java.lang.CharSequence) 
      in java.io.PrintWriter.
      Node: org.codehaus.groovy.ast.MethodNode. At [-1:-1]  @ line -1, column -1.
      1 error
      

      Attachments

        1. Groovy3229.groovy
          0.3 kB
          James P. White

        Activity

          People

            blackdrag Jochen Theodorou
            jimwhite James P. White
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: