google/closure-compiler

need flag to enable `CompilerOptions.setAssumeStaticInheritanceRequired(true)`

オープン

#3,559 opened on 2020/02/25

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Java (1,197 件のフォーク)batch import
P3good first issue

Repository metrics

Stars
 (7,176 個のスター)
PR merge metrics
 (PR metrics pending)

説明

To avoid compilation breaking uses of this and super in static methods of ES6 classes, you have to get CommandLineRunner to do CompilerOptions.setAssumeStaticInheritanceRequired(true) when creating the Compiler object.

Unfortunately, there is no flag for this yet, and we can't make it the default behavior because of increase in output code size it causes for Google projects.

This would be a good community-volunteer thing to do.

コントリビューターガイド