--- old/src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java 2019-01-31 16:20:54.711206513 +0000 +++ new/src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java 2019-01-31 16:20:54.647206258 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -360,6 +360,12 @@ } catch (ServiceConfigurationError sce) { log.error("proc.bad.config.file", sce.getLocalizedMessage()); throw new Abort(sce); + } catch (UnsupportedClassVersionError ucve) { + log.error("proc.cant.load.class", ucve.getLocalizedMessage()); + throw new Abort(ucve); + } catch (ClassFormatError cfe) { + log.error("proc.cant.load.class", cfe.getLocalizedMessage()); + throw new Abort(cfe); } catch (Throwable t) { throw new Abort(t); }