Skip to content

Commit

Permalink
years and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweij committed Mar 20, 2024
1 parent 93beec2 commit dfa22af
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -26,7 +26,7 @@
* @bug 8296244
* @enablePreview
* @summary Implement Subject.current and Subject.callAs using scoped values.
* Need @enablePreview to use StructuredTaskScope.
* Need enablePreview to use StructuredTaskScope.
* @run main/othervm -Djava.security.manager=allow CallAsWithScopedValue false
* @run main/othervm -Djava.security.manager=disallow CallAsWithScopedValue true
*/
Expand All @@ -52,7 +52,7 @@ public static void main(String[] args) throws Exception {
// Always observable in the same thread
Subject.callAs(subject, () -> check(0, Subject.current(), "Duke"));

// Observable in the same thread in ACC mode, but not in the SV mode
// Observable in a new platform thread in ACC mode, but not in the SV mode
Subject.callAs(subject, () -> {
Thread.ofPlatform().start(() -> check(1, Subject.current(), usv ? null : "Duke")).join();
return null;
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/javax/security/auth/Subject/Compat.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/javax/security/auth/Subject/CurrentSubject.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/javax/security/auth/Subject/FromACC.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/javax/security/auth/Subject/UnsupportedSV.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down

0 comments on commit dfa22af

Please sign in to comment.