-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
8
-
x86_64
-
linux
FULL PRODUCT VERSION :
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux jpc-System-Product-Name 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
This error, forgetting the brackets, will crash the compiler:
@Table(name = "customers", catalog = "pluto", uniqueConstraints = @UniqueConstraint(columnNames = { "run_id" }))
@NamedQueries(
@NamedQuery(name = "customer.findByIds", query = "select c from Customer c where c.id in :ids"),
@NamedQuery(name = "customer.findAllIds", query = "select c.id from Customer c order by c.clientName")
)
This correct version is ok:
@Table(name = "customers", catalog = "pluto", uniqueConstraints = @UniqueConstraint(columnNames = { "run_id" }))
@NamedQueries({
@NamedQuery(name = "customer.findByIds", query = "select c from Customer c where c.id in :ids"),
@NamedQuery(name = "customer.findAllIds", query = "select c.id from Customer c order by c.clientName")
})
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
compile
ACTUAL -
compiler crash
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux jpc-System-Product-Name 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
This error, forgetting the brackets, will crash the compiler:
@Table(name = "customers", catalog = "pluto", uniqueConstraints = @UniqueConstraint(columnNames = { "run_id" }))
@NamedQueries(
@NamedQuery(name = "customer.findByIds", query = "select c from Customer c where c.id in :ids"),
@NamedQuery(name = "customer.findAllIds", query = "select c.id from Customer c order by c.clientName")
)
This correct version is ok:
@Table(name = "customers", catalog = "pluto", uniqueConstraints = @UniqueConstraint(columnNames = { "run_id" }))
@NamedQueries({
@NamedQuery(name = "customer.findByIds", query = "select c from Customer c where c.id in :ids"),
@NamedQuery(name = "customer.findAllIds", query = "select c.id from Customer c order by c.clientName")
})
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
compile
ACTUAL -
compiler crash
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-8029161 javac crashing when processing broken annotations
- Closed
-
JDK-8155907 Null pointer from javac when compile uncompilable java code with annotations
- Closed