< prev index next >
test/compiler/c2/stemmer/Stemmer.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
@@ -2,12 +2,13 @@
* @test
* @bug 7070134
* @summary Hotspot crashes with sigsegv from PorterStemmer
* @modules java.base/jdk.internal.misc
* @library /testlibrary
+ *
* @run driver jdk.test.lib.FileInstaller words words
- * @run main/othervm -Xbatch Stemmer words
+ * @run main/othervm -Xbatch compiler.c2.stemmer.Stemmer words
*/
/*
Porter stemmer in Java. The original paper is in
@@ -51,12 +52,16 @@
Release 4
*/
-import java.io.*;
+package compiler.c2.stemmer;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+
/**
* Stemmer, implementing the Porter Stemming Algorithm
*
* The Stemmer class transforms a word into its root form. The input
* word can be provided a character at time (by calling add()), or at once
< prev index next >