You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

A.java 802B

1234567891011121314151617181920212223242526272829
  1. /*******************************************************************************
  2. * Copyright (c) 2010 Contributors
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v 2.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  7. *
  8. * Contributors:
  9. * Andy Clement - Repro test case
  10. * Abraham Nevado
  11. *******************************************************************************/
  12. class AtomicAction {
  13. int status() { return 1; }
  14. int commit(int n) { return 1; }
  15. }
  16. public class A {
  17. public static void main(String []argv) throws Exception {
  18. A a = new A();
  19. a.m();
  20. }
  21. public void m() throws Exception{
  22. Thread.sleep(5*1000);
  23. }
  24. }