This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 8.2 (Build 201609300101) Operating System = Windows 10 version 10.0 running on amd64 Java; VM; Vendor = 1.8.0_152 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.152-b16 Reproducibility: Happens every time STEPS: Build a criteriabuilder query and try to use CriteriaQuery methods: lessThan/OrEqualTo, greaterThan/OrEqual query.where(cb.lessThanOrEqualTo(root.get(ProductoPrecioVenta_.desde), fecha)); ACTUAL: IDE claims a syntax error: no suitable method found for lessThanOrEqualTo(Path<Date>,Date) EXPECTED: ... WORKAROUND: declare a variable and use it as parameter Path<Date> path = root.get(ProductoPrecioVenta_.desde); query.where(cb.lessThanOrEqualTo(path, fecha));
Created attachment 165442 [details] IDE log