Changeset 5455
- Timestamp:
- Mar 17, 2020, 1:44:31 PM (2 years ago)
- Location:
- jomc-ri/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
jomc-ri/trunk/pom.xml
r5402 r5455 35 35 <groupId>org.jomc</groupId> 36 36 <artifactId>jomc-pom</artifactId> 37 <version> 1.6</version>37 <version>2.0.0-SNAPSHOT</version> 38 38 </parent> 39 39 <modelVersion>4.0.0</modelVersion> … … 155 155 <groupId>org.jomc</groupId> 156 156 <artifactId>jomc-util</artifactId> 157 <version> 1.10</version>157 <version>2.0.0-SNAPSHOT</version> 158 158 <scope>compile</scope> 159 159 </dependency> … … 173 173 <groupId>org.jomc</groupId> 174 174 <artifactId>jomc-jls</artifactId> 175 <version>1 .7.0</version>175 <version>11.7.0-SNAPSHOT</version> 176 176 <scope>compile</scope> 177 177 </dependency> … … 202 202 </site> 203 203 </distributionManagement> 204 <properties> 205 <jomc.module.name>org.jomc.ri</jomc.module.name> 206 </properties> 204 207 <profiles> 205 208 <profile> … … 218 221 </dependencies> 219 222 </profile> 223 <profile> 224 <id>jdk11</id> 225 <activation> 226 <jdk>11</jdk> 227 </activation> 228 <dependencies> 229 <dependency> 230 <groupId>jakarta.annotation</groupId> 231 <artifactId>jakarta.annotation-api</artifactId> 232 <version>1.3.5</version> 233 <scope>compile</scope> 234 <optional>true</optional> 235 </dependency> 236 <!-- dependency> 237 <groupId>jakarta.activation</groupId> 238 <artifactId>jakarta.activation-api</artifactId> 239 <version>1.2.2</version> 240 <scope>compile</scope> 241 </dependency --> 242 <dependency> 243 <groupId>jakarta.xml.bind</groupId> 244 <artifactId>jakarta.xml.bind-api</artifactId> 245 <version>2.3.3</version> 246 <scope>compile</scope> 247 </dependency> 248 <dependency> 249 <groupId>org.glassfish.jaxb</groupId> 250 <artifactId>jaxb-runtime</artifactId> 251 <version>2.3.2</version> 252 <scope>runtime</scope> 253 </dependency> 254 <dependency> 255 <!-- Needed for javax.rmi.PortableRemoteObject only. --> 256 <groupId>org.glassfish.corba</groupId> 257 <artifactId>glassfish-corba-omgapi</artifactId> 258 <version>4.2.1</version> 259 <scope>provided</scope> 260 </dependency> 261 </dependencies> 262 </profile> 220 263 </profiles> 221 264 </project> -
jomc-ri/trunk/src/main/java/org/jomc/ri/DefaultLocator.java
r5409 r5455 186 186 if ( !this.isLocationSupported( location ) ) 187 187 { 188 throw new IOException( getUnsupportedUri SchemeMessage( Locale.getDefault(), location.getScheme() ) );188 throw new IOException( getUnsupportedUriMessage( Locale.getDefault(), location.toASCIIString() ) ); 189 189 } 190 190 … … 314 314 } 315 315 /** 316 * Gets the text of the {@code <Unsupported URI SchemeMessage>} message.316 * Gets the text of the {@code <Unsupported URI Message>} message. 317 317 * <p><dl> 318 318 * <dt><b>Languages:</b></dt> … … 322 322 * </dl></p> 323 323 * @param locale The locale of the message to return. 324 * @param schemeInfo Format argument.325 * @return The text of the {@code <Unsupported URI SchemeMessage>} message for {@code locale}.324 * @param uriInfo Format argument. 325 * @return The text of the {@code <Unsupported URI Message>} message for {@code locale}. 326 326 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 327 327 */ 328 328 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"}) 329 329 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 2.0.0-SNAPSHOT", comments = "See http://www.jomc.org/jomc-tools/2.0.0-SNAPSHOT" ) 330 private static String getUnsupportedUri SchemeMessage( final java.util.Locale locale, final java.lang.String schemeInfo )330 private static String getUnsupportedUriMessage( final java.util.Locale locale, final java.lang.String uriInfo ) 331 331 { 332 332 java.io.BufferedReader reader = null; … … 334 334 try 335 335 { 336 final String message = java.text.MessageFormat.format( java.util.ResourceBundle.getBundle( "org.jomc.ri.DefaultLocator", locale ).getString( "Unsupported URI Scheme Message" ), schemeInfo, (Object) null );336 final String message = java.text.MessageFormat.format( java.util.ResourceBundle.getBundle( "org.jomc.ri.DefaultLocator", locale ).getString( "Unsupported URI Message" ), uriInfo, (Object) null ); 337 337 final java.lang.StringBuilder builder = new java.lang.StringBuilder( message.length() ); 338 338 reader = new java.io.BufferedReader( new java.io.StringReader( message ) ); -
jomc-ri/trunk/src/main/resources/META-INF/jomc.xml
r5369 r5455 463 463 </authors> 464 464 <messages> 465 <message name="Unsupported URI SchemeMessage">466 <template defaultLanguage="en"> 467 <text language="en">URI scheme''{0}'' is not supported.</text>468 <text language="de">Keine Unterstützung für URI Schema''{0}''.</text>469 </template> 470 <arguments> 471 <argument index="0" name=" SchemeInfo"/>465 <message name="Unsupported URI Message"> 466 <template defaultLanguage="en"> 467 <text language="en">URI ''{0}'' is not supported.</text> 468 <text language="de">Keine Unterstützung für URI ''{0}''.</text> 469 </template> 470 <arguments> 471 <argument index="0" name="URI Info"/> 472 472 </arguments> 473 473 </message> -
jomc-ri/trunk/src/test/resources/META-INF/jomc.xml
r5038 r5455 42 42 43 43 <specifications> 44 <!-- *********************************************************************************************************** --> 45 <specification identifier="java.util.Locale" 46 class="java.util.Locale" 47 version="1.1"> 48 <!-- 49 Specification got added during working on 2.0.0. Recent JDKs no longer 50 provide version information. For files relying on the former behaviour, 51 this specification is added here to provide the version manually. 52 --> 53 </specification> 44 54 <!-- *********************************************************************************************************** --> 45 55 <specification identifier="${project.name} ⁑ Tests ⁑ Test Specification"
Note: See TracChangeset
for help on using the changeset viewer.