Please review a fix for jdk9 where it is seen that LinearGradientPaint
is not getting printed on osx.
The below webrev is only for LinearGradientPaint
and RadialGradientPaint will be handled separately.
Issue was LinearGradientPaint is not handled in osx from jdk7 onwards.
It handles simple GradientPaint.
Code is added as per
to use "CGGradientRef" quartz datatype to support LinearGradientPaint.
CGGradientRef is used compared to CGShadingRef because it is mentioned
in CGGradientRef, i is "Easy to define more than two locations and
colors." as we set 2 or more colors and 2 or more fractions in