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

changeset 3814
12045c5cae33
parent 2306
ac7450d1ac51
child 3826
3fdfb200c295
     1.1 --- a/src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java	Fri May 17 07:45:51 2019 +0100
     1.2 +++ b/src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java	Fri May 17 18:41:21 2019 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -350,6 +350,7 @@
    1.11                  log.error("proc.bad.config.file", sce.getLocalizedMessage());
    1.12                  throw new Abort(sce);
    1.13              } catch (Throwable t) {
    1.14 +                log.error("proc.bad.config.file", t.getLocalizedMessage());
    1.15                  throw new Abort(t);
    1.16              }
    1.17          }
    1.18 @@ -360,7 +361,14 @@
    1.19              } catch (ServiceConfigurationError sce) {
    1.20                  log.error("proc.bad.config.file", sce.getLocalizedMessage());
    1.21                  throw new Abort(sce);
    1.22 +            } catch (UnsupportedClassVersionError ucve) {
    1.23 +                log.error("proc.cant.load.class", ucve.getLocalizedMessage());
    1.24 +                throw new Abort(ucve);
    1.25 +            } catch (ClassFormatError cfe) {
    1.26 +                log.error("proc.cant.load.class", cfe.getLocalizedMessage());
    1.27 +                throw new Abort(cfe);
    1.28              } catch (Throwable t) {
    1.29 +                log.error("proc.bad.config.file", t.getLocalizedMessage());
    1.30                  throw new Abort(t);
    1.31              }
    1.32          }

mercurial