summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-04-29 16:15:10 +0000
committerPaul Phillips <paulp@improving.org>2009-04-29 16:15:10 +0000
commit7acc55b2dc16a8981ac6572eb65b689e1d2622a1 (patch)
treec0469190a90b08356ac241d196cb9352394f6b0e /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parenta79e84b239673838ee64fc232d8a27e766c47730 (diff)
downloadscala-7acc55b2dc16a8981ac6572eb65b689e1d2622a1.tar.gz
scala-7acc55b2dc16a8981ac6572eb65b689e1d2622a1.tar.bz2
scala-7acc55b2dc16a8981ac6572eb65b689e1d2622a1.zip
Removed various now-unnecessary java 1.4 workar...
Removed various now-unnecessary java 1.4 workarounds and conditional behavior.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 35442e10e7..41b6c61d74 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -69,11 +69,6 @@ trait Typers { self: Analyzer =>
private class NormalTyper(context : Context) extends Typer(context)
// hooks for auto completion
- /** when in 1.4 mode the compiler accepts and ignores useless
- * type parameters of Java generics
- */
- def onePointFourMode = true // todo changeto: settings.target.value == "jvm-1.4"
-
// Mode constants
/** The three mode <code>NOmode</code>, <code>EXPRmode</code>
@@ -2154,9 +2149,6 @@ trait Typers { self: Analyzer =>
error(annot.constr.pos, "attribute " + annType.typeSymbol.fullNameString + " is missing element " + name.name)
}
}
- if (annType.typeSymbol.hasFlag(JAVA) && settings.target.value == "jvm-1.4") {
- context.warning (annot.constr.pos, "Java annotation will not be emitted in classfile unless you use the '-target:jvm-1.5' option")
- }
if (attrError) annotationError
else AnnotationInfo(annType, constrArgs, nvPairs)
}
@@ -3181,8 +3173,7 @@ trait Typers { self: Analyzer =>
}}
TypeTree(owntype) setOriginal(tree) // setPos tree.pos
} else if (tparams.length == 0) {
- if (onePointFourMode && (tpt1.symbol hasFlag JAVA)) tpt1
- else errorTree(tree, tpt1.tpe+" does not take type parameters")
+ errorTree(tree, tpt1.tpe+" does not take type parameters")
} else {
//Console.println("\{tpt1}:\{tpt1.symbol}:\{tpt1.symbol.info}")
if (settings.debug.value) Console.println(tpt1+":"+tpt1.symbol+":"+tpt1.symbol.info);//debug