Results for “java sample application example script error failed site:bugs.java.com code”
bugs.java.com
Bug ID: JDK-7126754 Generics compilation failure casting List
EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Should compile. ACTUAL - Fails to compile withCUSTOMER SUBMITTED WORKAROUND : Perform the cast in a separate method, as in the following sample: import java.util.List; import java.util.Set
bugs.java.com
Bug ID: JDK-6919944 incorrect position given for duplicate annotation...
test/tools/javac/typeAnnotations/failures/common/arrayclass/DuplicateAnnotationValue.java:10: duplicate annotation member value value in A Object a = String @A(value = 2, value = 1) [].class; ^ 1 error. However, this is still not correct -- the correct place for the caret is at the beginning...
bugs.java.com
Bug ID: JDK-8025290 javac implicit versus explicit lambda compilation...
fails with: Test.java:11: error: incompatible types: cannot infer type-variable(s) T,U.type-variable: CAP#1 extends String from capture of ? extends String 1 error. but if the lambda is implicit: e -> e.trim(), it compiles just fine.
bugs.java.com
Bug ID: JDK-8081727 many tests failed due to "Can't find library"...
There's regression in the latest promoted jtreg4.1/b12, many tests failed with "Error. failed to clean up files after test", and the real issue is: "Can't find library". Here's one example