[10] RFR: 8186930: Constant fold URI constants
Paul Sandoz
paul.sandoz at oracle.com
Wed Aug 30 17:11:42 UTC 2017
One way to proceed in the future is to use those static methods as constant producing functions (via condy), then at jlink time run the functions and possibly strip out the then redundant code.
Paul.
> On 30 Aug 2017, at 09:16, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
>
> Hi Claes,
>
> Maybe it could be interesting to leave the
> methods in a static inner class which is
> not referenced (except by whitebox tests) and
> have this inner class expose a static test()
> method that would test that the static fields
> in URI have the expected value?
>
> This is just a suggestion, and it
> could be done in a followup RFE...
>
> best regards,
>
> -- daniel
>
> On 31/08/2017 16:26, Claes Redestad wrote:
>> On 2017-08-30 17:17, Alan Bateman wrote:
>>> I think it could be useful as someone reading the code isn't going to immediately know to jump to URI.
>> Done: http://cr.openjdk.java.net/~redestad/8186930/jdk.01/
>> /Claes
>
More information about the net-dev
mailing list