David_W (70) [Avatar] Offline
#1
In 11.1, you state:
While the figure [11.2] shows the use of build-time source weaving, other mechanisms such as load-time weaving work as well.

How would load-time weaving deal with declare error?
ramnivas (171) [Avatar] Offline
#2
Re: declare error, declare warning and LTW?
By default, load-time weaver prints errors and warnings. One could write a weave message listener to process them in a different manner.

-Ramnivas
David_W (70) [Avatar] Offline
#3
Re: declare error, declare warning and LTW?
But load-time weaving implies that you are compiling the code using javac. Javac is going to display error or warning messages during compiling? Or will error/warning messages get displayed on the console/logged when a class is loaded and errors are detected?
ramnivas (171) [Avatar] Offline
#4
Re: declare error, declare warning and LTW?
Errors and warnings get displayed during class loading, when classes are woven.

-Ramnivas