[foreign-jextract] RFR: 8252047: jextract generates uncompilable code with --source option
    Jorn Vernee 
    jvernee at openjdk.java.net
       
    Thu Aug 20 11:54:44 UTC 2020
    
    
  
On Wed, 19 Aug 2020 18:41:45 GMT, Athijegannathan Sundararajan <sundar at openjdk.org> wrote:
> Splitting constant helper class into multiple classes.
> Piggybacking to avoid generating "long double" fields, variables, arguments.
I wonder if the multiple constant class generation could be implemented as a decorator around ConstantHelper instead?
That way it could also be used for the ClassConstantHelper (it is needed there as well). i.e. basically:
class MultiConstantHelper implements ConstantHelper {
    ConstantHelper delegate;
    DirectMethodHandleDesct addConstant(...) {
        newConstantClass(); // might update `delegate`
        delegate.addConstant(...);
    }
}
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/286
    
    
More information about the panama-dev
mailing list