Michael Pollmeier

Results 98 comments of Michael Pollmeier

@NemoTR the fix for `cpg.id(14).outV` is now merged. The compiler will now detect that it is an illegal traversal and not let it slip through, therefor avoiding the ClassCastException at...

probably related to this: some method fullnames are empty. E.g. for https://github.com/ShiftLeftSecurity/HelloShiftLeft: ``` cpg.method.internal.fullName("").code.l "public ModelAndView errorHtml(HttpServletRequest request)", "public ResponseEntity error(HttpServletRequest request)", "private HttpStatus getStatus(HttpServletRequest request)" ```

Similar case: `java.io.BufferedWriter.write(String)` is missing, which is being used [here](https://github.com/ShiftLeftSecurity/HelloShiftLeft/blob/master/src/main/java/io/shiftleft/data/DataBuilder.java#L36). Javadoc link: https://docs.oracle.com/javase/8/docs/api/java/io/BufferedWriter.html. Note that there are additional overloads of `write`, some of which are being inherited. Java2cpg seems to...

maybe these groupCounts are helpful to pinpoint further differences: ``` cpg.graph.nodes.groupCount(_.label).sorted // java2cpg: ("ANNOTATION", 97), ("ANNOTATION_LITERAL", 65), ("ANNOTATION_PARAMETER", 63), ("ANNOTATION_PARAMETER_ASSIGN", 63), ("ARRAY_INITIALIZER", 48), ("BINDING", 1020), ("BLOCK", 332), ("CALL", 1573), ("CONFIG_FILE",...

further potentially helpful debug info: typeDecls that only occur in java2cpg, not javasrc2cpg: ``` (cpgj2c.typeDecl.fullName.toSet &~ cpgjsrc2cpg.typeDecl.fullName.toSet).sorted "android.os.AsyncTask", "bottom_type", "byte", "char", "com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties", "float", "io.shiftleft.model.Constants$Type[]", "io.shiftleft.model.Customer[]", "io.shiftleft.model.Patient[]", "java.io.OutputStream", "java.io.Writer", "java.lang.AbstractMethodError", "java.lang.ArithmeticException",...

Any updates on when this this will be fixed? Concatenating files and writing them to a new file is the most basic thing a file library should do IMO. Is...

from the stack overflow question: `Unsupported property value type: java.util.LinkedHashMap` I don't have a working neptune setup, but a plain scala `List` might work. If not, here's the relevant sections...

I agree, it's annoying to get different behaviour for different DBs. One option to fix this (and it sounds like that's what you have in mind as well) would be...

The Orient driver (https://github.com/mpollmeier/orientdb-gremlin) defines the ID type as an ORecordId, and since the serialisation macro doesn't support type conversions there's not really a nice way around it. Another workaround...

Yup, in https://github.com/mpollmeier/gremlin-scala/blob/master/gremlin-scala/src/test/scala/gremlin/scala/MarshallableSpec.scala#L112 You'll need a separate marshaller instance for each case class, but you can reuse the parts... I started some work on the shapeless powered serialisation in this...