[10] RFR(L) 8187047: [AOT] jaotc --ignore-errors flag is ignored when class not found

Igor Veresov igor.veresov at oracle.com
Fri Sep 1 04:52:41 UTC 2017


Maybe there should be an interface to abstract the error-handling functionality?  Like make a ClassLoadingErrorHandler interface or something, and make Main implement it? Otherwise passing the concrete Main everything ties everything up too much.

igor

> On Aug 31, 2017, at 7:19 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
> 
> http://cr.openjdk.java.net/~kvn/8187047/webrev/
> https://bugs.openjdk.java.net/browse/JDK-8187047
> 
> Currently jaotc will exit with java.lang.ClassNotFoundException when referenced class not found regardless --ignore-errors flag.
> I fixed it by consolidating code how exceptions are processed during collecting classes and methods to compile. Now Main.handleClassLoadError(InternalError err) should be called. For that I have to path Main parameter to methods which collect classes.
> 
> Error during class loading and compilation now will be reported only with --verbose or if --exit-on-error is set. Stack trace will be printed with --debug only.
> No errors reporting with --info, only phases and times will be displayed.
> 
> Also added checks to exit early if no classes or methods were found.
> 
> And have to fix AOT junit tests accordingly.
> 
> Passed all AOT tests in JPRT.
> 
> Thanks,
> Vladimir



More information about the hotspot-compiler-dev mailing list