src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java

changeset 3814
12045c5cae33
parent 2306
ac7450d1ac51
child 3826
3fdfb200c295
equal deleted inserted replaced
3813:3cfb1fd0590a 3814:12045c5cae33
1 /* 1 /*
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
348 return iterator.hasNext(); 348 return iterator.hasNext();
349 } catch(ServiceConfigurationError sce) { 349 } catch(ServiceConfigurationError sce) {
350 log.error("proc.bad.config.file", sce.getLocalizedMessage()); 350 log.error("proc.bad.config.file", sce.getLocalizedMessage());
351 throw new Abort(sce); 351 throw new Abort(sce);
352 } catch (Throwable t) { 352 } catch (Throwable t) {
353 log.error("proc.bad.config.file", t.getLocalizedMessage());
353 throw new Abort(t); 354 throw new Abort(t);
354 } 355 }
355 } 356 }
356 357
357 public Processor next() { 358 public Processor next() {
358 try { 359 try {
359 return iterator.next(); 360 return iterator.next();
360 } catch (ServiceConfigurationError sce) { 361 } catch (ServiceConfigurationError sce) {
361 log.error("proc.bad.config.file", sce.getLocalizedMessage()); 362 log.error("proc.bad.config.file", sce.getLocalizedMessage());
362 throw new Abort(sce); 363 throw new Abort(sce);
364 } catch (UnsupportedClassVersionError ucve) {
365 log.error("proc.cant.load.class", ucve.getLocalizedMessage());
366 throw new Abort(ucve);
367 } catch (ClassFormatError cfe) {
368 log.error("proc.cant.load.class", cfe.getLocalizedMessage());
369 throw new Abort(cfe);
363 } catch (Throwable t) { 370 } catch (Throwable t) {
371 log.error("proc.bad.config.file", t.getLocalizedMessage());
364 throw new Abort(t); 372 throw new Abort(t);
365 } 373 }
366 } 374 }
367 375
368 public void remove() { 376 public void remove() {

mercurial