aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorLiam Miller-Cushon <cushon@google.com>2021-09-21 09:30:47 -0700
committerJavac Team <javac-team+copybara@google.com>2021-09-21 09:31:20 -0700
commitd86501aa82c130c99eae56b2e525297aab992358 (patch)
treea5ea28b2d9f375926f124e17779ebcd29ef0727d /java
parent05192cfe1770cbb9827c7017906fdf2ab6db7038 (diff)
downloadturbine-d86501aa82c130c99eae56b2e525297aab992358.tar.gz
Don't assume synthetic contructors don't need signature attributes
in prepration for record support, which can result in synthetic record constructors with generic type information. PiperOrigin-RevId: 398013990
Diffstat (limited to 'java')
-rw-r--r--java/com/google/turbine/lower/LowerSignature.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/java/com/google/turbine/lower/LowerSignature.java b/java/com/google/turbine/lower/LowerSignature.java
index 3afba32..1960f8e 100644
--- a/java/com/google/turbine/lower/LowerSignature.java
+++ b/java/com/google/turbine/lower/LowerSignature.java
@@ -166,9 +166,6 @@ public class LowerSignature {
// JDK-8024694: javac always expects signature attribute for enum constructors
return true;
}
- if ((m.access() & TurbineFlag.ACC_SYNTH_CTOR) == TurbineFlag.ACC_SYNTH_CTOR) {
- return false;
- }
if (!m.tyParams().isEmpty()) {
return true;
}