RFR: JDK-8140484: Vardeps broken when variable value contains '$'

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Wed Oct 28 08:52:00 UTC 2015


The fix looks good. I'm just wondering if there are any other problematic characters that needs to be escaped, such as \. Or should we address such issues when they arise?

/Magnus

> 26 okt. 2015 kl. 11:55 skrev Erik Joelsson <erik.joelsson at oracle.com>:
> 
> When I optimized the vardeps functionality in JDK-8136385, I caused a regression when the variable contained '$' characters. By reading the old value as a makefile using "include", variable substitution is applied. To work around this, dollar characters need to be escaped (doubled) prior to printing the variable value to the vardeps makefile.
> 
> This causes native libraries to be relinked every time they are incrementally built because of the "\$ORIGIN" string.
> 
> Also updating tests to cover this.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8140484
> Webrev: http://cr.openjdk.java.net/~erikj/8140484/webrev.01/
> 
> /Erik



More information about the build-dev mailing list