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

Incorrect encoding in generated java stubs

    XMLWordPrintableJSON

Details

    Description

      It seems that JavaStubGenerator sometimes generates stub files with incorrect encodings

      see attached files and http://youtrack.jetbrains.com/issue/IDEA-106154 for details.

      Compilatation fails with message:

      {USER_HOME}

      \.IntelliJIdea12\system\compile-server\test_3f67e250\groovyStubs\test\java-production\Test.java
      Error:(16,29) java: illegal character: \65533
      Error:(16,30) java: illegal character: \65533
      Error:(16,31) java: invalid method declaration; return type required
      Error:(16,47) java: cannot return a value from method whose result type is void

      Attachments

        1. project (1).zip
          9 kB
          Maximilian Michels
        2. Test+%28generated+stub%29 (1).java
          0.7 kB
          Maximilian Michels

        Activity

          People

            melix C├ędric Champeau
            mxm-groovy Maxim Medvedev
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: