< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties

Print this page
@@ -231,13 +231,21 @@
      switch expression does not have any case clauses
  
  compiler.err.switch.expression.no.result.expressions=\
      switch expression does not have any result expressions
  
- # 0: name
- compiler.err.call.must.be.first.stmt.in.ctor=\
-     call to {0} must be first statement in constructor
+ compiler.err.call.must.only.appear.in.ctor=\
+     explicit constructor invocation may only appear within a constructor body
+ 
+ compiler.err.redundant.superclass.init=\
+     redundant explicit constructor invocation
+ 
+ compiler.err.ctor.calls.not.allowed.here=\
+     explicit constructor invocation not allowed here
+ 
+ compiler.err.return.before.superclass.initialized=\
+     ''return'' not allowed before explicit constructor invocation
  
  # 0: symbol kind, 1: name, 2: symbol kind, 3: type, 4: message segment
  compiler.err.cant.apply.symbol.noargs=\
      {0} {1} in {2} {3} cannot be applied to given types;\n\
      reason: {4}

@@ -385,11 +393,11 @@
  
  # 0: symbol
  compiler.err.cant.inherit.from.final=\
      cannot inherit from final {0}
  
- # 0: symbol or string
+ # 0: symbol or name
  compiler.err.cant.ref.before.ctor.called=\
      cannot reference {0} before supertype constructor has been called
  
  compiler.err.cant.select.static.class.from.param.type=\
      cannot select a static class from a parameterized type

@@ -752,11 +760,11 @@
  # 0: symbol
  compiler.err.import.requires.canonical=\
      import requires canonical name for {0}
  
  compiler.err.improperly.formed.type.param.missing=\
-     improperly formed type, some parameters are missing
+     improperly formed type, some parameters are missing or misplaced
  
  compiler.err.improperly.formed.type.inner.raw.param=\
      improperly formed type, type arguments given on a raw type
  
  # 0: type, 1: type

@@ -2692,10 +2700,13 @@
      reference
  
  compiler.misc.type.req.exact=\
      class or interface without bounds
  
+ compiler.misc.type.req.identity=\
+     a type with identity
+ 
  # 0: type
  compiler.misc.type.parameter=\
      type parameter {0}
  
  #####

@@ -3191,10 +3202,13 @@
      unconditional patterns in instanceof
  
  compiler.misc.feature.unnamed.classes=\
      unnamed classes
  
+ compiler.misc.feature.super.init=\
+     statements before super()
+ 
  compiler.warn.underscore.as.identifier=\
      as of release 9, ''_'' is a keyword, and may not be used as an identifier
  
  compiler.err.underscore.as.identifier=\
      as of release 9, ''_'' is a keyword, and may not be used as an identifier

@@ -3700,10 +3714,13 @@
      cannot resolve modules
  
  compiler.misc.bad.requires.flag=\
      bad requires flag: {0}
  
+ compiler.misc.bad.access.flags=\
+     bad access flags combination: {0}
+ 
  # 0: string
  compiler.err.invalid.module.specifier=\
      module specifier not allowed: {0}
  
  # 0: symbol

@@ -3893,12 +3910,12 @@
  # 0: symbol
  compiler.err.invalid.supertype.record=\
      classes cannot directly extend {0}
  
  # 0: symbol
- compiler.err.first.statement.must.be.call.to.another.constructor=\
-     constructor is not canonical, so its first statement must invoke another constructor of class {0}
+ compiler.err.non.canonical.constructor.invoke.another.constructor=\
+     constructor is not canonical, so it must invoke another constructor of class {0}
  
  compiler.err.instance.initializer.not.allowed.in.records=\
      instance initializers not allowed in records
  
  compiler.err.static.declaration.not.allowed.in.inner.classes=\

@@ -4031,10 +4048,25 @@
      (preview language features are only supported for release {1})
  
  compiler.err.preview.without.source.or.release=\
      --enable-preview must be used with either -source or --release
  
+ compiler.misc.feature.value.classes=\
+     value classes
+ 
+ # 0: type, 1: type
+ compiler.err.value.type.has.identity.super.type=\
+     The identity type {1} cannot be a supertype of the value type {0}
+ 
+ # 0: symbol, 1: type
+ compiler.err.concrete.supertype.for.value.class=\
+     The concrete class {1} is not allowed to be a super class of the value class {0} either directly or indirectly
+ 
+ # 0: symbol, 1: symbol, 2: type
+ compiler.err.super.class.method.cannot.be.synchronized=\
+     The method {0} in the super class {2} of the value class {1} is synchronized. This is disallowed
+ 
  # 0: symbol
  compiler.err.deconstruction.pattern.only.records=\
      deconstruction patterns can only be applied to records, {0} is not a record
  
  compiler.err.deconstruction.pattern.var.not.allowed=\
< prev index next >