Affiliations
Projects
Talks & podcasts
WG21 papers
Blog posts
Other activity
- Merged PRFix slice2java Deprecation to Check Metadata, not Doc-Comments
This PR fixes #6752 (and is the successor PR to #6820). There are 2 separate ways to 'deprecate' something in Slice: with metadata, and with a doc-tag. These both exist to accomplish different things. Deprecating with metadata should cause…
Ice#6986 · by InsertCreativityHere - Merged PRPrevent preprocessor directives from being parsed inside of block comments.
This PR removes the last wildcard rules from our Slice scanner, and closes the last "overlapping rule" it presented. This bug caused preprocessor directives inside of block comments to be treated as actual preprocessor directives: / #line…
Ice#7048 · by InsertCreativityHere - Merged PRFix the Hole in the Slice Scanner
This PR fixes both #1987 (that there's a hole in the scanner) and #6950 (a crash that happens when you hit the hole). After this PR, the flex warning (src/Slice/Scanner.l:550: warning, -s option given but default rule can be matched) is…
Ice#7046 · by InsertCreativityHere - Merged PRFix Some Whitespace Being Ignored Inside of String Literals
This PR continues the scanner work, following on the heels of #6996. It fixes tabs and other non-space whitespace from silently dropped inside of string literals. The rule I adopted is that: string-literals accept all non-newline…
Ice#7031 · by InsertCreativityHere - Merged PRRemove Comment in `WSTransceiver` Code
We removed this comment in the backporting of this code (see #7023), it is good to also remove it from main/3.8 as well to keep them synchronized. Also, I just don't think it's a useful comment. It describes the old code (before we…
Ice#7036 · by InsertCreativityHere - Merged PRRemove Generation of 'Obsolete' Attribute from Server-Side Constructs
This PR is a backport of #6997 to 3.8, but only the patch-compatible parts: Dropping the generation of Obsolete attributes on server-side C# code. The rest of that PR was about _adding_ Obsolete to other constructs, which we decided isn't…
Ice#7027 · by InsertCreativityHere - Merged PRFix the Generation of 'Obsolete' Attributes in C# Code
This PR fixes #6812, and goes even further. It changes where we generate Obsolete in our generated C# code: We now map ["deprecated"] to Obsolete on the values generated for Slice constants (for both Ice and IceRpc) We stop mapping…
Ice#6997 · by InsertCreativityHere - Merged PRAllow Operations to Have the Same Name as their Enclosing Interfaces
This PR implements #6953, by removing our restriction that operations cannot have the same name as their enclosing interface. The only language this check was protecting was C++, so it gets an explicit call out in the changelog; we tell…
Ice#6995 · by InsertCreativityHere - Merged PRRemove the 'TypeMode' Enum from `slice2java`
This PR fixes #6992 by removing this enum. Right now, it's _only_ use is this: if (!type) { assert(mode == TypeModeReturn); return "void"; } asserting that we only emit void in a return-type context. IMO, this is not worth the 67 lines of…
Ice#7008 · by InsertCreativityHere - Merged PRDrop support for the `java:UserException` Metadata
This PR does what it says (fixing #6967 in the process), along with some drive-by reformatting of some obviously suboptimal Java code.
Ice#6994 · by InsertCreativityHere - Merged PRFixed Comments Being Scanned in Places They Shouldn't Be
The Slice scanner, at any point in time, can be in one of a handful of '_states_' (the official term is '_start conditions_'), which correspond to the kind of thing it's scanning. For example: SLICE, STRING_LITERAL, METADATA, etc. Each…
Ice#6996 · by InsertCreativityHere - Merged PRRemove 'Holder' From the List of Reserved Suffixes
This PR implements #6932. It drops 'Holder' as a reserved suffix, and drops the TypeModeOut enumerator from slice2java, which was never passed. There's more cleanup that can be done for slice2java that I noticed while writing this, but…
Ice#6993 · by InsertCreativityHere - RFC / trackingMap the `@deprecated` Doc-Comment Tag to a `Remarks` Tag in C#
Slice has 2 related mechanisms around deprecation, a metadata directive and a doc-comment tag. These are not interchangeable; they serve different purposes and should carry different text. This is elaborated upon by #3225. Because they are…
Ice#6989 · by InsertCreativityHere - Merged PRChange Java to Encode `null` as 'unset' for Optional Values
This PR changes Java's encoding of 'null' optionals to match what we do in every other language (except PHP). For example, C# and Swift only encode anything after explicitly checking the argument is non-null. public void writeProxy(int…
Ice#6911 · by InsertCreativityHere - Merged PRTargeted Warning Suppression in Java Generated Code
This PR tweaks and fixes lints in Java, now that they are reported as errors. There are 3 classes of lints it deals with: Deprecation java supports 2 ways to 'deprecate' something. The old style is with @deprecated in a doc-comment. The…
Ice#6886 · by InsertCreativityHere