History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-3355
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Alain Ravet
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

R.S. problem

Created: 18 Jul 05 16:51   Updated: 18 Jul 05 17:10
Component/s: Structural Search and Replace
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,408


 Description  « Hide
There is no way to replace/find in one go the 2 targets below:
--------------------------
To reproduce: try and replace
$ssn$ == null ? null : $ssn$.$nodeOrMore$
by
$ssn$.$nodeOrMore$

with as sole constraint that $ssn$ inherits from Serializable
Problem: only the 1st target is found.

public final class Foo
{

public static void main (String[] args) { SuperSuperNode ssn = new SuperSuperNode (); Node node = ssn == null ? null : ssn.node; <<-- target 1: IS FOUND Node node2 = ssn == null ? null : ssn.supernode.node; <--- target 2: is NOT found }

private static class Node {
}
public static class SuperNode { public Node node; }
public static class SuperSuperNode implements Serializable{ public SuperNode supernode; public Node node; }
}



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.