GithubHelp home page GithubHelp logo

Comments (5)

xiemalin avatar xiemalin commented on June 22, 2024

javassist不支持泛型,这样会对上面的已提供的接口造成影响。如果其它jdk使用,可以考虑jprotobuf-android这个模块 http://repo1.maven.org/maven2/com/baidu/jprotobuf-android/

from jprotobuf.

yourwafer avatar yourwafer commented on June 22, 2024

你们使用的是ProtobufIDLProxy.createCodeByType分析传输对象,拼出源代码的方式,生成代理类,而我的意思是分析传输对象后,直接通过javassist生成代理类,这和支不支持泛型没关系吧。
因为我们的服务器可能会装openjdk,所以才碰到这个问题

from jprotobuf.

xiemalin avatar xiemalin commented on June 22, 2024

目前主要是Codec接口合适了泛型,这个已经被很多项目广泛使用了。能否告之一下你们目前具体使用的场景是什么? 如果只是定义pojo对象,然后生成protobuf序列化或反序化,这个你们直接使用jprotobuf-android这个模块即可,他支持跨jdk的

from jprotobuf.

yourwafer avatar yourwafer commented on June 22, 2024

请教你一下,v3目录是支持protobuf 3的对吧,但我使用2.6.1版本的转换工具,却转换不了proto 中文件,会提示解析不了syntax = "proto3",你那边怎么做到的

from jprotobuf.

xiemalin avatar xiemalin commented on June 22, 2024

不需要加 syntax = "proto3"这一句

from jprotobuf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.