Changeset 2561


Ignore:
Timestamp:
01/31/05 13:07:40 (8 years ago)
Author:
hauma
Message:
  • Bugfix: Late source file generation for transformed replicated classes. The transformation result of replicated classes was not saved immediately after the replicated class transformation. If the compiler stops because of errors after the replicated class transformation, no transformation result was ever saved. This is especially bad for debugging the replicated class transformation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gj/src/gjc/v6/JPCompiler.java

    r2559 r2561  
    251251        String fileName = getSourceFileName(sourceDir, clazzName); 
    252252 
     253        writeSource(sourceDir, fileName, src); 
     254 
     255        trafoTrees.append(parse(fileName, src.getInputStream())); 
     256    } 
     257 
     258    private void writeSource(String sourceDir, String fileName, SourceGenerator src) { 
    253259        if (sourceDir != null) { 
    254260            try { 
     
    274280            } 
    275281        } 
    276  
    277         trafoTrees.append(parse(fileName, src.getInputStream())); 
    278282    } 
    279283 
     
    285289        String fileName0 = getSourceFileName(sourceDir, clazzNames[0]); 
    286290        String fileName1 = getSourceFileName(sourceDir, clazzNames[1]); 
     291 
     292        writeSource(sourceDir, fileName0, srcs[0]); 
     293        writeSource(sourceDir, fileName1, srcs[1]); 
    287294         
    288295        treesForSecondRun.append(parse(fileName0, srcs[0].getInputStream())); 
Note: See TracChangeset for help on using the changeset viewer.