compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSCRoyale.java [572:620]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void processSourceMap(ByteArrayOutputStream sourceMapTemp, ByteArrayOutputStream baos, File outputClassFile, String symbol)
    {
        String sourceMapSourceRoot = project.config.getSourceMapSourceRoot();
        if(sourceMapSourceRoot != null && sourceMapSourceRoot.length() > 0)
        {
            String sourceMapContents = null;
            try
            {
                sourceMapContents = sourceMapTemp.toString("utf8");
            }
            catch(UnsupportedEncodingException e)
            {
                sourceMapContents = null;
            }
            if(sourceMapContents != null)
            {
                SourceMapConsumerV3 sourceMapConsumer = new SourceMapConsumerV3();
                try
                {
                    sourceMapConsumer.parse(sourceMapContents);
                }
                catch(SourceMapParseException e)
                {
                    sourceMapConsumer = null;
                }
                if (sourceMapConsumer != null && !sourceMapSourceRoot.equals(sourceMapConsumer.getSourceRoot()))
                {
                    SourceMapGeneratorV3 sourceMapGenerator = SourceMapUtils.sourceMapConsumerToGeneratorWithRemappedSourceRoot(sourceMapConsumer, sourceMapSourceRoot, symbol);
                    String newSourceMapContents = SourceMapUtils.sourceMapGeneratorToString(sourceMapGenerator, outputClassFile.getName());
                    try
                    {
                        IOUtils.write(newSourceMapContents, baos, Charset.forName("utf8"));
                    }
                    catch(IOException e)
                    {
                    }
                    return;
                }
            }
        }
        try
        {
            sourceMapTemp.writeTo(baos);
        }
        catch(IOException e)
        {

        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSCNative.java [505:553]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void processSourceMap(ByteArrayOutputStream sourceMapTemp, ByteArrayOutputStream baos, File outputClassFile, String symbol)
    {
        String sourceMapSourceRoot = project.config.getSourceMapSourceRoot();
        if(sourceMapSourceRoot != null && sourceMapSourceRoot.length() > 0)
        {
            String sourceMapContents = null;
            try
            {
                sourceMapContents = sourceMapTemp.toString("utf8");
            }
            catch(UnsupportedEncodingException e)
            {
                sourceMapContents = null;
            }
            if(sourceMapContents != null)
            {
                SourceMapConsumerV3 sourceMapConsumer = new SourceMapConsumerV3();
                try
                {
                    sourceMapConsumer.parse(sourceMapContents);
                }
                catch(SourceMapParseException e)
                {
                    sourceMapConsumer = null;
                }
                if (sourceMapConsumer != null && !sourceMapSourceRoot.equals(sourceMapConsumer.getSourceRoot()))
                {
                    SourceMapGeneratorV3 sourceMapGenerator = SourceMapUtils.sourceMapConsumerToGeneratorWithRemappedSourceRoot(sourceMapConsumer, sourceMapSourceRoot, symbol);
                    String newSourceMapContents = SourceMapUtils.sourceMapGeneratorToString(sourceMapGenerator, outputClassFile.getName());
                    try
                    {
                        IOUtils.write(newSourceMapContents, baos, Charset.forName("utf8"));
                    }
                    catch(IOException e)
                    {
                    }
                    return;
                }
            }
        }
        try
        {
            sourceMapTemp.writeTo(baos);
        }
        catch(IOException e)
        {

        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



