Searched defs:expected (Results 201 - 221 of 221) sorted by relevance

123456789

/openjdk7/jdk/test/java/lang/management/ThreadMXBean/
H A DSynchronizationStatistics.java325 long expected = t.totalBlockedTimeMs(nowNano);
328 timeRangeCheck(blockedTime, expected, 5);
334 long expected = t.totalWaitTimeMs(nowNano);
337 timeRangeCheck(waitedTime, expected, 5);
340 private void timeRangeCheck(long time, long expected, int percent) argument
343 double diff = expected - time;
347 " expected = " + expected +
357 long range = (expected * percent) / 100;
365 " expected
[all...]
/openjdk7/jdk/test/java/util/Collection/
H A DMOAT.java994 static void equalNext(final Iterator<?> it, Object expected) { argument
997 equal(it.next(), expected);
/openjdk7/jdk/test/java/util/Locale/
H A DLocaleEnhanceTest.java82 * Ensure that Builder builds locales that have the expected
365 errln("expected exception on add to extension key set");
424 errln("expected exception when add to locale key set");
1249 String expected = (data.length == 1) ? data[0] : data[1];
1254 assertEquals("Language tag roundtrip by forLanguageTag with input: " + in, expected, out);
1261 assertEquals("Language tag roundtrip by Builder.setLanguageTag with input: " + in, expected, out);
1273 String expected = (data.length == 1) ? data[0] : data[1];
1277 assertEquals("Empty country field with non-empty script/extension with input: " + in, expected, out);
1299 private void checkCalendar(Locale loc, String expected) { argument
1301 assertEquals("Wrong calendar", expected, ca
1304 checkDigit(Locale loc, Character expected) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/compiler/
H A DXPathParser.java485 * Consume an expected token, throwing an exception if it
488 * @param expected The string to be expected.
492 private final void consumeExpected(String expected) argument
496 if (tokenIs(expected))
502 error(XPATHErrorResources.ER_EXPECTED_BUT_FOUND, new Object[]{ expected,
503 m_token }); //"Expected "+expected+", but found: "+m_token);
513 * Consume an expected token, throwing an exception if it
516 * @param expected the character to be expected
520 consumeExpected(char expected) argument
[all...]
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/
H A DParseException.java141 static ParseException badRepIDPrefix (Scanner scanner, String entry, String expected, String got) argument
143 return arg3 ("badRepIDPrefix", scanner, entry, expected, got);
322 static ParseException syntaxError (Scanner scanner, int expected, int got) argument
324 return arg2 ("syntax1", scanner, Token.toString (expected), Token.toString (got));
327 static ParseException syntaxError (Scanner scanner, String expected, String got) argument
329 return arg2 ("syntax1", scanner, expected, got);
332 static ParseException syntaxError (Scanner scanner, int[] expected, int got) argument
334 return syntaxError (scanner, expected, Token.toString (got));
337 static ParseException syntaxError (Scanner scanner, int[] expected, String got) argument
340 for (int i = 0; i < expected
[all...]
H A DParser.java578 SymtabEntry expected) throws IOException, ParseException
580 return scopedName( container, expected, true ) ;
583 SymtabEntry scopedName (SymtabEntry container, SymtabEntry expected, argument
627 // Make the entry the expected entry. The generators will
631 (entry = expected).name (name);
1930 int [] expected = {Token.Float, Token.Double};
2966 // Missing a semicolon is a common error. If a semicolon was expected,
577 scopedName(SymtabEntry container, SymtabEntry expected) argument
/openjdk7/jdk/test/java/util/NavigableMap/
H A DLockStep.java186 static void equalNext(final Iterator<?> it, Object expected) { argument
189 equal(it.next(), expected);
/openjdk7/jdk/test/java/util/regex/
H A DRegExTest.java158 private static void check(Matcher m, String expected) { argument
160 if (!m.group().equals(expected))
164 private static void check(Matcher m, String result, boolean expected) { argument
166 if (m.group().equals(result) != expected)
170 private static void check(Pattern p, String s, boolean expected) { argument
171 if (p.matcher(s).find() != expected)
175 private static void check(String p, String s, boolean expected) { argument
177 if (matcher.find() != expected)
181 private static void check(String p, char c, boolean expected) { argument
182 String propertyPattern = expected
190 check(String p, int codePoint, boolean expected) argument
199 check(String p, int flag, String input, String s, boolean expected) argument
468 check(String regex, String input, String[] expected) argument
3150 explainFailure(String pattern, String data, String expected, String actual) argument
3342 check(Pattern p, String s, String g, String expected) argument
3349 checkReplaceFirst(String p, String s, String r, String expected) argument
3357 checkReplaceAll(String p, String s, String r, String expected) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/invoke/util/
H A DWrapper.java371 private static ClassCastException newClassCastException(Class<?> actual, Class<?> expected) { argument
372 return new ClassCastException(actual + " is not compatible with " + expected);
469 T result = (T) x; // unchecked warning is expected here
488 T result = (T) wrap(x); // unchecked warning is expected here
510 Class<T> result = (Class<T>) type; // unchecked warning is expected here
/openjdk7/jdk/src/share/classes/java/lang/invoke/
H A DMethodHandleImpl.java894 private static boolean checkCallerClass(Class<?> expected, Class<?> expected2) { argument
898 if (actual != expected && actual != expected2)
899 throw new InternalError("found "+actual.getName()+", expected "+expected.getName()
900 +(expected == expected2 ? "" : ", or else "+expected2.getName()));
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/
H A DXMLSerializer.java593 // the version of childAsXXX where it produces @xsi:type if the expected type name
609 * @param expected
616 public final void childAsXsiType( Object child, String fieldName, JaxBeanInfo expected, boolean nillable) throws SAXException, IOException, XMLStreamException { argument
627 boolean asExpected = child.getClass()==expected.jaxbType;
628 JaxBeanInfo actual = expected;
647 if(actual==expected)
655 expected.jaxbType.getName(),
938 * This method is used by {@link MimeTypedTransducer} to set the expected MIME type
/openjdk7/jdk/test/java/lang/ProcessBuilder/
H A DBasic.java106 String expected,
109 check(got.equals(expected),
111 "Expected: \"" + expected + "\"\n" +
289 String expected = "standard input";
290 char[] buf = new char[expected.length()+1];
292 if (n != expected.length())
294 if (! new String(buf,0,n).equals(expected))
1127 String expected = Windows.is() ? "SystemRoot="+systemRoot+",": "";
1135 equal(result, expected);
1500 String expected
105 checkCommandOutput(ProcessBuilder pb, String expected, String failureMsg) argument
[all...]
/openjdk7/jdk/test/java/util/EnumSet/
H A DAllOf.java42 int expected) {
44 if (set.size() != expected)
45 throw new RuntimeException(set.size() +" != " + expected);
41 test(Class<T> enumClass, int expected) argument
/openjdk7/jdk/src/share/classes/sun/misc/
H A DUnsafe.java878 * holding <tt>expected</tt>.
882 Object expected,
887 * holding <tt>expected</tt>.
891 int expected,
896 * holding <tt>expected</tt>.
900 long expected,
881 compareAndSwapObject(Object o, long offset, Object expected, Object x) argument
890 compareAndSwapInt(Object o, long offset, int expected, int x) argument
899 compareAndSwapLong(Object o, long offset, long expected, long x) argument
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/
H A DGenerateOopMap.java1535 void checkType (CellTypeState expected, CellTypeState actual) { argument
1536 if (!expected.equalKind(actual)) {
1538 actual.toChar() + " expected: " +
1539 expected.toChar() + ")");
1545 CellTypeState expected = in[i];
1547 checkType(expected, actual);
1680 // We actually expected ref or pc, but we only report that we expected a ref. It does not
1683 r_or_p.toChar() + ", expected: {pr})");
1814 CellTypeState expected
[all...]
/openjdk7/jdk/src/share/classes/java/net/
H A DURI.java2832 private void failExpecting(String expected, int p) argument
2835 fail("Expected " + expected, p);
2838 private void failExpecting(String expected, String prior, int p) argument
2841 fail("Expected " + expected + " following " + prior, p);
3202 fail ("scope id expected");
3296 private int takeIPv4Address(int start, int n, String expected) argument
3301 failExpecting(expected, start);
/openjdk7/hotspot/src/share/vm/oops/
H A DgenerateOopMap.cpp1624 void GenerateOopMap::check_type(CellTypeState expected, CellTypeState actual) { argument
1625 if (!expected.equal_kind(actual)) {
1626 verify_error("wrong type on stack (found: %c expected: %c)", actual.to_char(), expected.to_char());
1632 CellTypeState expected =*in++; local
1634 check_type(expected, actual);
1801 CellTypeState expected = monitor_pop(); local
1802 if (!actual.is_lock_reference() || !expected.equal(actual)) {
1865 ? (bt == T_OBJECT) : true, "expected object type");
1880 // We actually expected re
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/comp/
H A DCheck.java2763 final Type expected; field in class:Check.ConversionWarner
2764 public ConversionWarner(DiagnosticPosition pos, String uncheckedKey, Type found, Type expected) { argument
2768 this.expected = expected;
2778 Check.this.warnUnchecked(pos(), "prob.found.req", diags.fragment(uncheckedKey), found, expected);
2794 public Warner castWarner(DiagnosticPosition pos, Type found, Type expected) { argument
2795 return new ConversionWarner(pos, "unchecked.cast.to.type", found, expected);
2798 public Warner convertWarner(DiagnosticPosition pos, Type found, Type expected) { argument
2799 return new ConversionWarner(pos, "unchecked.assign", found, expected);
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/
H A DHttpURLConnection.java2383 * The second request is (erroneously) expected to be GET
2446 * the expected number of bytes, probably 0
3138 long expected; field in class:HttpURLConnection.StreamingOutputStream
3147 * In the 2nd case, we make sure the expected number of
3152 expected = expectedLength;
3162 if (expected != -1L && written > expected) {
3177 if (expected != -1L && written > expected) {
3210 if (expected !
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/xs/
H A DXMLSchemaValidator.java1798 String expected = expectedStr(next);
1801 new Object[] { element.rawname, expected });
3215 String expected = expectedStr(fCurrentCM.whatCanGoHere(fCurrCMState));
3218 new Object[] { element.rawname, expected });
3295 private String expectedStr(Vector expected) { argument
3297 int size = expected.size();
3301 ret.append(expected.elementAt(i).toString());
/openjdk7/hotspot/src/share/vm/gc_implementation/g1/
H A DconcurrentMark.cpp815 // This is the start of the marking cycle, we're expected all
1200 // This is the end of the marking cycle, we're expected all
1423 // this region and set the corresponding bits in the expected region
1435 // We're not OK if expected marked bytes > actual marked bytes. It means
1440 "expected: " SIZE_FORMAT ", actual: " SIZE_FORMAT,
1446 // Verify the bit, for this region, in the actual and expected
1448 // We're not OK if the bit in the calculated expected region
1452 bool expected = _exp_region_bm->at(index); local
1454 if (expected && !actual) {
1457 "expected
[all...]

Completed in 145 milliseconds

123456789