equal
deleted
inserted
replaced
49 System.out.println("Round"+r+ ": " + t.toString()); |
49 System.out.println("Round"+r+ ": " + t.toString()); |
50 |
50 |
51 try { |
51 try { |
52 PackageElement PE = E.getPackageElement("dir1"); |
52 PackageElement PE = E.getPackageElement("dir1"); |
53 List<? extends Element> LEE = PE.getEnclosedElements(); /* <=This line elicits the error message. */ |
53 List<? extends Element> LEE = PE.getEnclosedElements(); /* <=This line elicits the error message. */ |
54 for(Element e : LEE) System.out.println("found " + e.toString() + " in dir1."); |
54 for(Element e : LEE) |
|
55 System.out.println("found " + e.toString() + " in dir1."); |
55 } |
56 } |
56 catch(NullPointerException npe) { |
57 catch(NullPointerException npe) { |
57 msgr.printMessage(ERROR,npe.toString()); |
58 msgr.printMessage(ERROR,npe.toString()); |
58 //npe.printStackTrace(); |
59 //npe.printStackTrace(); |
59 return false; |
60 return false; |
60 } |
61 } |
61 } |
62 } |
62 if( renv.errorRaised() ) { msgr.printMessage(ERROR, "FAILED");} |
63 // on round 1, expect errorRaised == false && processingOver == false |
|
64 // on round 2, expect errorRaised == true && processingOver == true |
|
65 if( renv.errorRaised() != renv.processingOver()) { |
|
66 msgr.printMessage(ERROR, "FAILED"); |
|
67 } |
63 return true; |
68 return true; |
64 } |
69 } |
65 |
70 |
66 @Override |
71 @Override |
67 public SourceVersion getSupportedSourceVersion() { |
72 public SourceVersion getSupportedSourceVersion() { |