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

Print this page

        

@@ -431,10 +431,12 @@
     error writing source; cannot overwrite input file {0}
 compiler.err.stack.sim.error=\
     Internal error: stack sim error on {0}
 compiler.err.static.imp.only.classes.and.interfaces=\
     static import only from classes and interfaces
+compiler.err.string.const.req=\
+    constant string expression required
 compiler.err.synthetic.name.conflict=\
     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
 compiler.warn.synthetic.name.conflict=\
     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
 

@@ -1224,10 +1226,14 @@
 
 compiler.err.diamond.not.supported.in.source=\
     diamond operator is not supported in -source {0}\n\
 (use -source 7 or higher to enable diamond operator)
 
+compiler.err.string.switch.not.supported.in.source=\
+    strings in switch are not supported in -source {0}\n\
+(use -source 7 or higher to enable strings in switch)
+
 ########################################
 # Diagnostics for where clause implementation
 # used by the RichDiagnosticFormatter.
 ########################################