undefect. CWE-407 — 63 sites patched across 27 ecosystems
Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
This commit is contained in:
commit
0a580b313d
70422 changed files with 17213626 additions and 0 deletions
91
test/langtools/tools/doclint/ReferenceTest.java
Normal file
91
test/langtools/tools/doclint/ReferenceTest.java
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8004832 8020556 8002154 8200432 8177280 8284315
|
||||
* @summary Add new doclint package
|
||||
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
|
||||
* @build DocLintTester
|
||||
* @run main DocLintTester -Xmsgs:-reference ReferenceTest.java
|
||||
* @run main DocLintTester -ref ReferenceTest.out ReferenceTest.java
|
||||
*/
|
||||
|
||||
/** . */
|
||||
public class ReferenceTest {
|
||||
/**
|
||||
* .
|
||||
* @param x description
|
||||
*/
|
||||
public int invalid_param;
|
||||
|
||||
/**
|
||||
* .
|
||||
* @param x description
|
||||
*/
|
||||
public class InvalidParam { /** . */ private InvalidParam() { } }
|
||||
|
||||
/**
|
||||
* .
|
||||
* @param x description
|
||||
*/
|
||||
public void param_name_not_found(int a) { }
|
||||
|
||||
/**
|
||||
* .
|
||||
* @param <X> description
|
||||
*/
|
||||
public class typaram_name_not_found { /** . */ private typaram_name_not_found() { } }
|
||||
|
||||
/**
|
||||
* .
|
||||
* @see Object#tooStrong()
|
||||
*/
|
||||
public void ref_not_found() { }
|
||||
|
||||
/**
|
||||
* .
|
||||
* @return x description
|
||||
*/
|
||||
public int invalid_return;
|
||||
|
||||
/**
|
||||
* .
|
||||
* @return x description
|
||||
*/
|
||||
public void invalid_return();
|
||||
|
||||
/**
|
||||
* .
|
||||
* @throws Exception description
|
||||
*/
|
||||
public void exception_not_thrown() { }
|
||||
|
||||
/**
|
||||
* .
|
||||
* @param <T> throwable
|
||||
* @throws T description
|
||||
*/
|
||||
public <T extends Throwable> void valid_throws_generic() throws T { }
|
||||
|
||||
/**
|
||||
* {@link java.util.List<String>}
|
||||
* {@link java.util.List<String>#equals}
|
||||
* {@link not.Found<String>}
|
||||
* @see java.util.List<String>
|
||||
* @see java.util.List<String>#equals
|
||||
* @see not.Found<String>
|
||||
*/
|
||||
public void invalid_type_args() { }
|
||||
|
||||
/**
|
||||
* {@link java.lang.String[]}
|
||||
* {@link java.lang.String[]#equals}
|
||||
* {@link not.Found[]}
|
||||
* @see java.lang.String[]
|
||||
* @see java.lang.String[]#equals
|
||||
* @see not.Found[]
|
||||
*/
|
||||
public void invalid_array_types() { }
|
||||
|
||||
/** . */
|
||||
private ReferenceTest() { }
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue