Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-1213

Filtering bug: java.lang.IllegalArgumentException: newPosition < 0: (-1 < 0)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • maven-filtering-3.2.0, maven-filtering-3.3.0
    • maven-filtering-3.3.1
    • maven-filtering
    • None

    Description

      There is a bug in FilteringUtils.copyFile:

      Caused by: java.lang.IllegalArgumentException: newPosition < 0: (-1 < 0)
          at java.nio.Buffer.createPositionException (Buffer.java:318)
          at java.nio.Buffer.position (Buffer.java:293)
          at java.nio.ByteBuffer.position (ByteBuffer.java:1094)
          at java.nio.ByteBuffer.position (ByteBuffer.java:262)
          at org.apache.maven.shared.filtering.FilteringUtils.copyFile (FilteringUtils.java:425)
          at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile (DefaultMavenFileFilter.java:102)
          at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile (DefaultMavenFileFilter.java:85)
          at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile (DefaultMavenFileFilter.java:66) 

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              cstamas Tamas Cservenak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: