< prev index next >

langtools/test/tools/javap/T6824493.java

Print this page




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.io.*;
  25 import java.util.*;
  26 
  27 /*
  28  * @test
  29  * @bug 6824493
  30  * @summary experimental support for additional info for instructions
  31  * @modules jdk.compiler
  32  * @compile -g T6824493.java
  33  * @run main T6824493
  34  */
  35 public class T6824493 {
  36     public static void main(String... args) {
  37         new T6824493().run();
  38     }
  39 
  40     void run() {
  41         // for each of the options, we run javap and check for some
  42         // marker strings in the output that generally indicate the
  43         // presence of the expected output, without being as specific
  44         // as a full golden file test.
  45         test("-XDdetails:source",
  46             "for (int i = 0; i < 10; i++) {",
  47             "System.out.println(s + i);");
  48 
  49         test("-XDdetails:tryBlocks",
  50                 "try[0]",
  51                 "end try[0]",




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.io.*;
  25 import java.util.*;
  26 
  27 /*
  28  * @test
  29  * @bug 6824493
  30  * @summary experimental support for additional info for instructions
  31  * @modules jdk.jdeps
  32  * @compile -g T6824493.java
  33  * @run main T6824493
  34  */
  35 public class T6824493 {
  36     public static void main(String... args) {
  37         new T6824493().run();
  38     }
  39 
  40     void run() {
  41         // for each of the options, we run javap and check for some
  42         // marker strings in the output that generally indicate the
  43         // presence of the expected output, without being as specific
  44         // as a full golden file test.
  45         test("-XDdetails:source",
  46             "for (int i = 0; i < 10; i++) {",
  47             "System.out.println(s + i);");
  48 
  49         test("-XDdetails:tryBlocks",
  50                 "try[0]",
  51                 "end try[0]",


< prev index next >