A lot of my classes are not reverse engineered because of the following parse error:
[23:38:55] [Error] Unable to read file …, Parse error at line 120, column 45. Encountered: ::
Is it possible that method references are not supported ?
A lot of my classes are not reverse engineered because of the following parse error:
[23:38:55] [Error] Unable to read file …, Parse error at line 120, column 45. Encountered: ::
Is it possible that method references are not supported ?
Hi Mario,
Thanks for using Visual Paradigm.
Would you provide similar code for our engineering to diagnose the issue?
Hi Mercus,
*** CODE ***
import java.util.HashSet;
import java.util.Set;
public class ClassWithMethodReference {
private Set integerSet = new HashSet<>();
public ClassWithMethodReference() {
integerSet.add( 1.0 );
integerSet.add( 2.0 );
}
public void print( double i ) {
System.out.println( i );
}
public void event() {
integerSet.stream().map( Double.class::cast ).forEach( this::print );
}
public static void main( String[] args ) {
ClassWithMethodReference classWithMethodReference = new ClassWithMethodReference();
classWithMethodReference.event();
}
}
*** CODE ***
=> [14:05:58] [Error] Unable to read …ClassWithMethodReference.java, Parse error at line 24, column 27. Encountered: ::
Apparently it’s the cast that causes problems.
Hi Mario,
Thank you for your information. The issue has been fixed and we will provide a hotfix for you soon.
Hi Mario,
I am glad to inform you that the issue you reported is fixed. You can now update to the latest patch build to obtain the fix. For instructions, please read:
Feel free to let us know if you have any further comment.
Best regards,
Jick Yeung
Hi Jick,
Is this patch available for all version of Visual Paradigm ? We’re still using 15.2.
Maybe I did something wrong, but locally the issue doesn’t seem to be solved.
Hi Mario,
Let me confirm with our team first. I will come back to you asap.
Thank you.