However, this in fact is determined at runtime, by:
- the fact that the BM jar in the classpath is preweaved
- the fact that the -javaagent:eclipselink1.0.2.jar option is present
If I were to change my runtime configuration and remove the javaagent option and add the preweaved jar, that should be enough to allow a correct start. However, now I still need to make a compile-time change to the configuration to set weaving to false.
Is it possible to detect at runtime if the agent is weaving so the option can be set correctly?
You should be able to always set weaving to true, as I think the inverse
will work even if weaving did not occur, then weaved features will not be
I think there are some features that currently auto-detect weaving, and
others that require the weaving option be set. You could log a bug to
have everything be able to auto-detect, in theory it seems that it would