magicwerk

Results 10 issues of magicwerk

I try to use FST to serialize Java objects where not all contained instances are Serializable by using FSTConfiguration.getDefaultConfiguration().setForceSerializable(true) However this does not seem to work for classes containing lambdas:...

The following snippet shows that CtConstructor.getAvailableParameterAnnotations() returns a wrong number of arguments for inner class with annotations. Output: Class OkWithoutParamAnnotation: paramCount=2, annotatedParamCount=2 CtClass ShowBugParameterAnnotationsInnerClass$OkWithoutParamAnnotation: paramCount=2, annotatedParamCount=2 Class ErrorWithParamAnnotation: paramCount=2, annotatedParamCount=2...

If the test app is run, only the the types of the first two field can be resolved. It seems that symbol resolving does not exploit the information contained in...

The attached test case shows how the activation of lexical preseving creates an endless loop where the application hangs forever. Version used: 3.24.4 Output: old: public class Base { }...

Bug report
Lexical Preservation
Workaround provided

The attached test case shows how the activation of lexical preseving looses output. Version used: 3.24.4 Output: lexicalPreserving=false: List list = new ArrayList(); lexicalPreserving=true: List list = new ArrayList(); `...

needs documentation
Workaround provided

The attached test case shows how the activation of lexical preseving looses output. Version used: 3.24.4 Output: lexicalPreserving=false: "literal".equals(var) Exception in thread "main" java.lang.IllegalArgumentException: fromIndex(5) > toIndex(2) at java.util.SubList.(AbstractList.java:624) at...

Bug report
Lexical Preservation

JUnit initializes extensions in the order they are declared in @ExtendWith. So in the test below, initialization should be done in order SetupExtension, MockitoExtension. This works fine, unless the annotation...

My test uses Mockito mocks so I want to use MockitoExtension supporting this. I also need another extension SetupExtension which I must be able to configure in the test method,...

When linting a TypeScript file, the rules fails with TypeError: Cannot read property 'getText' of undefined I could fix the problem for my source file by making the following changes...