test/langtools/tools/javac/profiles/ProfileOptionTest.java
changeset 55382 30b1b7b4dd86
parent 53023 6879069d9d94
equal deleted inserted replaced
55381:7c9151c7dc40 55382:30b1b7b4dd86
     1  /*
     1  /*
     2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   150                     case JDK1_9:
   150                     case JDK1_9:
   151                     case JDK1_10:
   151                     case JDK1_10:
   152                     case JDK1_11:
   152                     case JDK1_11:
   153                     case JDK1_12:
   153                     case JDK1_12:
   154                     case JDK1_13:
   154                     case JDK1_13:
       
   155                     case JDK1_14:
   155                         if (p == Profile.DEFAULT)
   156                         if (p == Profile.DEFAULT)
   156                             break;
   157                             break;
   157                         if (ise == null)
   158                         if (ise == null)
   158                             error("IllegalStateException not thrown as expected");
   159                             error("IllegalStateException not thrown as expected");
   159                         else if (!ise.getMessage().contains("option -profile " +
   160                         else if (!ise.getMessage().contains("option -profile " +