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.

Bug 252144 - Combined pattern fails to match
Summary: Combined pattern fails to match
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-28 16:23 UTC by misterm
Modified: 2016-07-07 07:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2015-04-28 16:23:40 UTC
The following pattern works:

$mod$
@org.hibernate.annotations.ForeignKey(name = $name)
@javax.persistence.JoinColumn($args$)
$type $var
=>
$mod$
$type $var
;;

while this doesn't:

$mod$
@org.hibernate.annotations.ForeignKey(name = $name)
@javax.persistence.JoinColumn($args$)
$type $var
=>
$mod$
@javax.persistence.JoinColumn($args$)
$type $var
;;

I really need it to work because I want to write a general migration from o.h.a.ForeignKey to the javax.persistence equivalent, which needs to be added to @JoinColumn as foreignKey=@j.p.ForeignKey(...)

Product Version = NetBeans IDE Dev (Build 20150427-7bc72e402ee2)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.8.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Comment 1 Svata Dedic 2015-06-02 07:54:47 UTC
Could you supply a sample simple project for testing ? I know I am lazy :) sorry, but you save me the time remembering my Hibernate days. Thanks.
Comment 2 Martin Balin 2016-07-07 07:17:10 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss