Menu

#58 problematic code related to sym files

self_reported
open
nobody
4
2006-05-25
2004-04-24
David Cok
No

The following excerpt from org/jmlspecs/checker/Main.java in
createTaskAfter looks fishy to me. If there is more than one
element in trees, only one will get saved. But I do not know
what the sym files are for or how to test a change I would make.

- David

if (//!hasOptionXsymw() &&
canStopSequenceBeforeAllPasses( oldTask )) {
// if not the main task
CompilerPassEnterable[] trees
= ((PreprocessTask) oldTask).trees();
JmlCompilationUnit cUnit;
for (int i=0; i<trees.length; i++) {
if (trees[i] instanceof JmlCompilationUnit) {
cUnit = (JmlCompilationUnit) trees[i];
String filePath = cUnit.getFilePath();
cUnit.setSuspendedTask(oldTask);
JmlTypeLoader.getJmlSingleton()
.savePartiallyProcessedTask(cUnit);
// System.out.println("stop:"+filePath);
return null;
}
}
return super.createTaskAfter( oldTask );
} else {

Discussion

  • Gary T. Leavens

    Gary T. Leavens - 2006-05-19
    • labels: 477027 --> checker (i.e., the jml tool)
     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-19
    • milestone: 248386 --> self_reported
    • priority: 7 --> 4
     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-25
    • assigned_to: cheon --> nobody
     

Log in to post a comment.