Details
-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b52
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085343 | emb-9 | Unassigned | P2 | Resolved | Fixed | team |
Description
To reproduce, use the two attached files as a jtreg test: place them in the same directory and use jtreg to run ParamAnnotationsRead.java. The test will fail with:
---
.../ParamAnnotationsRead.java:6: error: cannot access Foo
import p.ParamAnnotationsWrite.Foo;
^
bad class file: .../p/ParamAnnotationsWrite$Foo.class
bad RuntimeInvisibleParameterAnnotations attribute: Foo(int)
Please remove or make sure it appears in the correct subdirectory of the classpath.
1 error
result: Failed. Compilation failed: Compilation failed
---
Tested on custom build of jdk9/dev and jdk8u/jdk8u-dev, with langtools tips:
jdk9/dev/langtools:
$ hg tip
changeset: 2739:c956c25f9334
tag: tip
parent: 2738:f7ce2cfa4cdb
parent: 2737:9d2192f36e53
user: chegar
date: Wed Dec 03 19:28:40 2014 +0000
summary: Merge
jdk8u/jdk8u-dev/langtools:
$ hg tip
changeset: 2614:a12a9932f649
tag: tip
user: jlahoda
date: Mon Sep 22 14:55:14 2014 +0200
summary: 8057794: Compiler Error when obtaining .class property
Attachments
Issue Links
- backported by
-
JDK-8085343 javac produces classfiles it cannot read
- Resolved
- blocks
-
JDK-8054717 SJavac should track changes in the public apis of classpath classes!
- Closed
- duplicates
-
JDK-8071444 Annotation of argument of enum constructor causes failure of compilation
- Closed
- relates to
-
JDK-8029012 parameter_index for type annotation not updated after outer.this added
- Resolved
-
JDK-8024694 javac always expects signature attribute for enum constructors
- Resolved
-
JDK-8067039 Revert changes to annotation attribute generation
- Closed
-
JDK-8065132 Parameter annotations not updated when synthetic parameters are prepended
- Closed